memory

package
v1.0.0-rc10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	// contains filtered or unexported fields
}

func New

func New() *Memory

func (*Memory) AddLog

func (m *Memory) AddLog(e log.Entry) error

func (*Memory) Close

func (m *Memory) Close() error

func (*Memory) CountEntries

func (m *Memory) CountEntries(id string) (int, error)

func (*Memory) DeleteEntries

func (m *Memory) DeleteEntries(id string) error

func (*Memory) DeleteEntry

func (m *Memory) DeleteEntry(id string, eid string) error

func (*Memory) DeleteGenerator

func (m *Memory) DeleteGenerator(id string) error

func (*Memory) DeleteSource

func (m *Memory) DeleteSource(id string) error

func (*Memory) DeleteTemplate

func (m *Memory) DeleteTemplate(id string) error

func (*Memory) GetEntries

func (m *Memory) GetEntries(id string) ([]snd.Entry, error)

func (*Memory) GetEntry

func (m *Memory) GetEntry(id string, eid string) (snd.Entry, error)

func (*Memory) GetGenerator

func (m *Memory) GetGenerator(id string) (snd.Generator, error)

func (*Memory) GetGenerators

func (m *Memory) GetGenerators() ([]snd.Generator, error)

func (*Memory) GetLogs

func (m *Memory) GetLogs(hours int) ([]log.Entry, error)

func (*Memory) GetSettings

func (m *Memory) GetSettings() (snd.Settings, error)

func (*Memory) GetSource

func (m *Memory) GetSource(id string) (snd.DataSource, error)

func (*Memory) GetSources

func (m *Memory) GetSources() ([]database.DataSourceEntry, error)

func (*Memory) GetTemplate

func (m *Memory) GetTemplate(id string) (snd.Template, error)

func (*Memory) GetTemplates

func (m *Memory) GetTemplates() ([]database.TemplateEntry, error)

func (*Memory) SaveEntries

func (m *Memory) SaveEntries(id string, entry []snd.Entry) error

func (*Memory) SaveEntry

func (m *Memory) SaveEntry(id string, entry snd.Entry) error

func (*Memory) SaveGenerator

func (m *Memory) SaveGenerator(generator snd.Generator) error

func (*Memory) SaveSettings

func (m *Memory) SaveSettings(settings snd.Settings) error

func (*Memory) SaveSource

func (m *Memory) SaveSource(ds snd.DataSource) error

func (*Memory) SaveTemplate

func (m *Memory) SaveTemplate(template snd.Template) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL