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)
Click to show internal directories.
Click to hide internal directories.