Documentation
¶
Overview ¶
Package store implements the SIOT data store and processes messages. Currently data is stored in Genji and Influxdb. Direct DB access is not provided and all write data goes through NATS, thus making it easy to observe any data changes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DbSqlite ¶ added in v0.5.0
type DbSqlite struct {
// contains filtered or unexported fields
}
DbSqlite represents a SQLite data store
func NewSqliteDb ¶ added in v0.5.0
NewSqliteDb creates a new Sqlite data store
type NewTokener ¶ added in v0.0.45
NewTokener provides a new authentication token.
type Params ¶ added in v0.3.0
type Params struct {
File string
AuthToken string
Server string
Key NewTokener
Nc *nats.Conn
// ID for the instance -- it is only used when initializing the store.
// ID must be unique. If ID is not set, then a UUID is generated.
ID string
}
Params are used to configure a store
type Store ¶ added in v0.3.0
type Store struct {
// contains filtered or unexported fields
}
Store implements the SIOT NATS api
func (*Store) Start ¶ added in v0.3.0
Start connects to NATS server and set up handlers for things we are interested in
func (*Store) StartMetrics ¶ added in v0.3.0
StartMetrics for various handling operations. Metrics are sent to the node ID given FIXME, this can probably move to the node package for device nodes