storm

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: 8 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

View Source
const (
	BucketBase       = "BASE"
	BucketTemplates  = "TEMPLATES"
	BucketGenerators = "GENERATORS"
	BucketSources    = "DATA_SOURCES"
	BucketEntries    = "ENTRIES"

	KeySettings = "SETTINGS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Storm

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

func New

func New(file string) (*Storm, error)

func (*Storm) AddLog

func (s *Storm) AddLog(e log.Entry) error

func (*Storm) Close added in v0.5.0

func (s *Storm) Close() error

func (*Storm) CountEntries

func (s *Storm) CountEntries(id string) (int, error)

func (*Storm) DB

func (s *Storm) DB() *storm.DB

func (*Storm) DeleteEntries

func (s *Storm) DeleteEntries(id string) error

func (*Storm) DeleteEntry

func (s *Storm) DeleteEntry(id string, eid string) error

func (*Storm) DeleteGenerator added in v0.5.0

func (s *Storm) DeleteGenerator(id string) error

func (*Storm) DeleteKey added in v1.0.1

func (s *Storm) DeleteKey(key string) error

func (*Storm) DeleteSource

func (s *Storm) DeleteSource(id string) error

func (*Storm) DeleteTemplate

func (s *Storm) DeleteTemplate(id string) error

func (*Storm) GetEntries

func (s *Storm) GetEntries(id string) ([]snd.Entry, error)

func (*Storm) GetEntry

func (s *Storm) GetEntry(id string, eid string) (snd.Entry, error)

func (*Storm) GetGenerator added in v0.5.0

func (s *Storm) GetGenerator(id string) (snd.Generator, error)

func (*Storm) GetGenerators added in v0.5.0

func (s *Storm) GetGenerators() ([]snd.Generator, error)

func (*Storm) GetKey added in v1.0.1

func (s *Storm) GetKey(key string) (string, error)

func (*Storm) GetKeysPrefix added in v1.0.1

func (s *Storm) GetKeysPrefix(prefix string) ([]string, error)

func (*Storm) GetLogs

func (s *Storm) GetLogs(hours int) ([]log.Entry, error)

func (*Storm) GetSettings

func (s *Storm) GetSettings() (snd.Settings, error)

func (*Storm) GetSource

func (s *Storm) GetSource(id string) (snd.DataSource, error)

func (*Storm) GetSources

func (s *Storm) GetSources() ([]database.DataSourceEntry, error)

func (*Storm) GetTemplate

func (s *Storm) GetTemplate(id string) (snd.Template, error)

func (*Storm) GetTemplates

func (s *Storm) GetTemplates() ([]database.TemplateEntry, error)

func (*Storm) SaveEntry

func (s *Storm) SaveEntry(id string, entry snd.Entry) error

func (*Storm) SaveGenerator added in v0.5.0

func (s *Storm) SaveGenerator(generator snd.Generator) error

func (*Storm) SaveSettings

func (s *Storm) SaveSettings(settings snd.Settings) error

func (*Storm) SaveSource

func (s *Storm) SaveSource(ds snd.DataSource) error

func (*Storm) SaveTemplate

func (s *Storm) SaveTemplate(template snd.Template) error

func (*Storm) SetKey added in v1.0.1

func (s *Storm) SetKey(key, value string) error

Jump to

Keyboard shortcuts

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