cloud

package
v1.0.0-rc14 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckKey

func CheckKey(baseUrl string, key string) error

Types

type Cloud

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

func New

func New(baseUrl string, key string, localDb database.Database) *Cloud

func (*Cloud) AddLog

func (c *Cloud) AddLog(e log.Entry) error

func (*Cloud) Close

func (c *Cloud) Close() error

func (*Cloud) CopyFromLocal

func (c *Cloud) CopyFromLocal() error

func (*Cloud) CopyToLocal

func (c *Cloud) CopyToLocal() error

func (*Cloud) CountEntries

func (c *Cloud) CountEntries(id string) (int, error)

func (*Cloud) DeleteEntries

func (c *Cloud) DeleteEntries(id string) error

func (*Cloud) DeleteEntry

func (c *Cloud) DeleteEntry(id string, eid string) error

func (*Cloud) DeleteGenerator

func (c *Cloud) DeleteGenerator(id string) error

func (*Cloud) DeleteSource

func (c *Cloud) DeleteSource(id string) error

func (*Cloud) DeleteTemplate

func (c *Cloud) DeleteTemplate(id string) error

func (*Cloud) GetEntries

func (c *Cloud) GetEntries(id string) ([]snd.Entry, error)

func (*Cloud) GetEntry

func (c *Cloud) GetEntry(id string, eid string) (snd.Entry, error)

func (*Cloud) GetGenerator

func (c *Cloud) GetGenerator(id string) (snd.Generator, error)

func (*Cloud) GetGenerators

func (c *Cloud) GetGenerators() ([]snd.Generator, error)

func (*Cloud) GetKey

func (c *Cloud) GetKey(key string) (string, error)

func (*Cloud) GetLogs

func (c *Cloud) GetLogs(hours int) ([]log.Entry, error)

func (*Cloud) GetSettings

func (c *Cloud) GetSettings() (snd.Settings, error)

func (*Cloud) GetSource

func (c *Cloud) GetSource(id string) (snd.DataSource, error)

func (*Cloud) GetSources

func (c *Cloud) GetSources() ([]database.DataSourceEntry, error)

func (*Cloud) GetTemplate

func (c *Cloud) GetTemplate(id string) (snd.Template, error)

func (*Cloud) GetTemplates

func (c *Cloud) GetTemplates() ([]database.TemplateEntry, error)

func (*Cloud) SaveEntries

func (c *Cloud) SaveEntries(id string, entries []snd.Entry) error

func (*Cloud) SaveEntry

func (c *Cloud) SaveEntry(id string, entry snd.Entry) error

func (*Cloud) SaveGenerator

func (c *Cloud) SaveGenerator(generator snd.Generator) error

func (*Cloud) SaveSettings

func (c *Cloud) SaveSettings(settings snd.Settings) error

func (*Cloud) SaveSource

func (c *Cloud) SaveSource(ds snd.DataSource) error

func (*Cloud) SaveTemplate

func (c *Cloud) SaveTemplate(template snd.Template) error

func (*Cloud) SetKey

func (c *Cloud) SetKey(key string, value string) error

Jump to

Keyboard shortcuts

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