Documentation ¶
Index ¶
- type Boltstore
- func (db *Boltstore) All() ([]teian.Suggestion, error)
- func (db *Boltstore) CheckQuota(username string, n teian.Quota) (teian.Quota, error)
- func (db *Boltstore) CleanQuota() error
- func (db *Boltstore) Close()
- func (db *Boltstore) Create(username string, sugg *teian.Suggestion) error
- func (db *Boltstore) Delete(username string, id uint64) error
- func (db *Boltstore) OfUser(username string) ([]teian.Suggestion, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boltstore ¶ added in v1.2.1
func NewSuggestionStore ¶
NewSuggestionStore opens the bolt database file and returns an implementation of teian.SuggestionStore. The bolt database file will be created if it does not exist.
func (*Boltstore) CheckQuota ¶ added in v1.2.1
func (*Boltstore) CleanQuota ¶ added in v1.2.1
func (*Boltstore) Close ¶ added in v1.2.1
func (db *Boltstore) Close()
Close releases all database resources.
func (*Boltstore) Create ¶ added in v1.2.1
func (db *Boltstore) Create(username string, sugg *teian.Suggestion) error
Click to show internal directories.
Click to hide internal directories.