memory

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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) DeleteKey

func (m *Memory) DeleteKey(key 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) GetKey

func (m *Memory) GetKey(key string) (string, error)

func (*Memory) GetKeysPrefix

func (m *Memory) GetKeysPrefix(prefix string) ([]string, 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

func (*Memory) SetKey

func (m *Memory) SetKey(key string, value string) error

Jump to

Keyboard shortcuts

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