dal

package
v0.0.0-...-a602f81 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataSource

type DataSource interface {
	DataBeginTime() (*time.Time, error)
	DataEndTime() (*time.Time, error)
	GetDataPoints(from time.Time, to time.Time) ([]objects.DataPoint, error)
	CacheStats() *session.CacheStats
	DailySessions(time.Time, time.Time) (map[time.Time][]session.Session, error)
}

func NewDataSource

func NewDataSource(backend string, bo objects.BackendOptions) (DataSource, error)

type WritableDataSource

type WritableDataSource interface {
	DataSource
	AddDataPoint(objects.DataPoint) error
	AddDataPoints([]objects.DataPoint) error
	AddSession(session.Session) error
	AddSessions([]session.Session) error
}

func NewWritableDataSource

func NewWritableDataSource(backend string, bo objects.BackendOptions) (WritableDataSource, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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