Compact the bolt database on shutdown to reclaim the space freed by deleted entries
17 lines
356 B
Go
17 lines
356 B
Go
package ch
|
|
|
|
import "gitea.narnian.us/lordwelch/comic-hasher/log"
|
|
|
|
type CHDB interface {
|
|
PathHashed(path string) bool
|
|
PathDownloaded(path string) bool
|
|
AddPath(path string)
|
|
// CheckURL return true if the url is known to be a bad url
|
|
CheckURL(url string) bool
|
|
AddURL(url string)
|
|
Close() error
|
|
Compact() error
|
|
}
|
|
|
|
var CHDBLogger = log.NewLogger("chdb")
|