LocalDb

package
v2.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InfluxBatchNumbLinss

func InfluxBatchNumbLinss(batch string) int

Types

type Config

type Config interface {
	Enabled() bool
	Path() string
}

type DisabledLocalDb

type DisabledLocalDb struct{}

func (DisabledLocalDb) Enabled

func (d DisabledLocalDb) Enabled() bool

func (*DisabledLocalDb) InfluxAggregateBacklog

func (d *DisabledLocalDb) InfluxAggregateBacklog(client string, batchSize uint) error

func (*DisabledLocalDb) InfluxBacklogAdd

func (d *DisabledLocalDb) InfluxBacklogAdd(client, batch string) error

func (*DisabledLocalDb) InfluxBacklogDelete

func (d *DisabledLocalDb) InfluxBacklogDelete(id int) error

func (*DisabledLocalDb) InfluxBacklogGet

func (d *DisabledLocalDb) InfluxBacklogGet(client string) (id int, batch string, err error)

func (*DisabledLocalDb) InfluxBacklogSize

func (d *DisabledLocalDb) InfluxBacklogSize(client string) (numbBatches, numbLines uint, err error)

func (DisabledLocalDb) Shutdown

func (d DisabledLocalDb) Shutdown()

type LocalDb

type LocalDb interface {
	Enabled() bool
	Shutdown()
	InfluxBacklogAdd(client, batch string) error
	InfluxBacklogSize(client string) (numbBatches, numbLines uint, err error)
	InfluxBacklogGet(client string) (id int, batch string, err error)
	InfluxBacklogDelete(id int) error
	InfluxAggregateBacklog(client string, batchSize uint) error
}

func Run

func Run(config Config) LocalDb

type SqliteLocalDb

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

func (SqliteLocalDb) Enabled

func (d SqliteLocalDb) Enabled() bool

func (*SqliteLocalDb) InfluxAggregateBacklog

func (d *SqliteLocalDb) InfluxAggregateBacklog(client string, batchSize uint) error

func (*SqliteLocalDb) InfluxBacklogAdd

func (d *SqliteLocalDb) InfluxBacklogAdd(client, batch string) error

func (*SqliteLocalDb) InfluxBacklogDelete

func (d *SqliteLocalDb) InfluxBacklogDelete(id int) error

func (*SqliteLocalDb) InfluxBacklogGet

func (d *SqliteLocalDb) InfluxBacklogGet(client string) (id int, batch string, err error)

func (*SqliteLocalDb) InfluxBacklogSize

func (d *SqliteLocalDb) InfluxBacklogSize(client string) (numbBatches, numbLines uint, err error)

func (SqliteLocalDb) Shutdown

func (d SqliteLocalDb) Shutdown()

Jump to

Keyboard shortcuts

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