Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultDBPath = ".e-dnevnik.db" // default BadgerDB folder DefaultTTL = time.Hour * 9000 // a bit more than 1 year TTL DefaultDiscardRatio = 0.5 // recommended discard ratio from Badger docs )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Edb ¶
type Edb struct {
// contains filtered or unexported fields
}
Edb holds e-dnevnik structure including Bardger struct.
func (*Edb) CheckAndFlag ¶
CheckAndFlag checks presence of a SHA256(bucket, subBucket, []target) in a KV database, returning if it has been found or not, flagging it for the next time and returning error if encountered.
Click to show internal directories.
Click to hide internal directories.