Documentation ¶
Index ¶
- Constants
- type Badger
- func (b *Badger) AddLog(e log.Entry) error
- func (b *Badger) Close() error
- func (b *Badger) CountEntries(id string) (int, error)
- func (b *Badger) DeleteEntries(id string) error
- func (b *Badger) DeleteEntry(id string, eid string) error
- func (b *Badger) DeleteGenerator(id string) error
- func (b *Badger) DeleteKey(key string) error
- func (b *Badger) DeleteSource(id string) error
- func (b *Badger) DeleteTemplate(id string) error
- func (b *Badger) GetEntries(id string) ([]snd.Entry, error)
- func (b *Badger) GetEntry(id string, eid string) (snd.Entry, error)
- func (b *Badger) GetGenerator(id string) (snd.Generator, error)
- func (b *Badger) GetGenerators() ([]snd.Generator, error)
- func (b *Badger) GetKey(key string) (string, error)
- func (b *Badger) GetKeysPrefix(prefix string) ([]string, error)
- func (b *Badger) GetLogs(hours int) ([]log.Entry, error)
- func (b *Badger) GetSettings() (snd.Settings, error)
- func (b *Badger) GetSource(id string) (snd.DataSource, error)
- func (b *Badger) GetSources() ([]database.DataSourceEntry, error)
- func (b *Badger) GetTemplate(id string) (snd.Template, error)
- func (b *Badger) GetTemplates() ([]database.TemplateEntry, error)
- func (b *Badger) SaveEntries(id string, entries []snd.Entry) error
- func (b *Badger) SaveEntry(id string, entry snd.Entry) error
- func (b *Badger) SaveGenerator(generator snd.Generator) error
- func (b *Badger) SaveSettings(settings snd.Settings) error
- func (b *Badger) SaveSource(ds snd.DataSource) error
- func (b *Badger) SaveTemplate(template snd.Template) error
- func (b *Badger) SetKey(key string, value string) error
- func (b *Badger) Sync() error
Constants ¶
View Source
const ( SettingsKey = "SETTINGS" EntryConnector = "##ENT_" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Badger ¶
type Badger struct {
// contains filtered or unexported fields
}
func (*Badger) DeleteEntries ¶
func (*Badger) DeleteGenerator ¶
func (*Badger) DeleteSource ¶
func (*Badger) DeleteTemplate ¶
func (*Badger) GetSources ¶
func (b *Badger) GetSources() ([]database.DataSourceEntry, error)
func (*Badger) GetTemplates ¶
func (b *Badger) GetTemplates() ([]database.TemplateEntry, error)
func (*Badger) SaveSource ¶
func (b *Badger) SaveSource(ds snd.DataSource) error
Click to show internal directories.
Click to hide internal directories.