Documentation ¶
Index ¶
- func NewAppDB(id string) api.AppDB
- type MongoAppDB
- type MongoDataSource
- func (s *MongoDataSource) CreateAppDB(t *api.Thing) api.AppDB
- func (m *MongoDataSource) DeleteThing(dev api.Thing)
- func (m *MongoDataSource) GetEvents(limit int) []api.Event
- func (m *MongoDataSource) GetEventsCount() (count int)
- func (m *MongoDataSource) GetEventsCountForThing(t *api.Thing) (count int)
- func (m *MongoDataSource) GetThingCount() (count int)
- func (m *MongoDataSource) GetThingEvents(limit int, id string) []api.Event
- func (m *MongoDataSource) GetThings() []api.Thing
- func (m *MongoDataSource) PutEvent(evt *api.Event)
- func (m *MongoDataSource) PutThing(t *api.Thing) api.Thing
- func (m *MongoDataSource) SaveState(dev *api.Thing, state map[string]interface{})
- func (m *MongoDataSource) SaveThing(dev api.Thing)
- func (d *MongoDataSource) SetContainer(o api.Container)
- func (d *MongoDataSource) SetEnvironment(o api.Environment)
- func (s *MongoDataSource) ValidateWiring()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MongoAppDB ¶
type MongoAppDB struct {
// contains filtered or unexported fields
}
func (*MongoAppDB) Delete ¶
func (m *MongoAppDB) Delete(string)
func (*MongoAppDB) Get ¶
func (m *MongoAppDB) Get(string) interface{}
func (*MongoAppDB) Purge ¶
func (m *MongoAppDB) Purge()
func (*MongoAppDB) Put ¶
func (m *MongoAppDB) Put(string, interface{})
type MongoDataSource ¶
type MongoDataSource struct {
// contains filtered or unexported fields
}
func NewMongoDataSource ¶
func NewMongoDataSource() *MongoDataSource
func (*MongoDataSource) CreateAppDB ¶
func (s *MongoDataSource) CreateAppDB(t *api.Thing) api.AppDB
func (*MongoDataSource) DeleteThing ¶
func (m *MongoDataSource) DeleteThing(dev api.Thing)
func (*MongoDataSource) GetEventsCount ¶
func (m *MongoDataSource) GetEventsCount() (count int)
func (*MongoDataSource) GetEventsCountForThing ¶
func (m *MongoDataSource) GetEventsCountForThing(t *api.Thing) (count int)
func (*MongoDataSource) GetThingCount ¶
func (m *MongoDataSource) GetThingCount() (count int)
func (*MongoDataSource) GetThingEvents ¶
func (m *MongoDataSource) GetThingEvents(limit int, id string) []api.Event
func (*MongoDataSource) GetThings ¶
func (m *MongoDataSource) GetThings() []api.Thing
func (*MongoDataSource) PutEvent ¶
func (m *MongoDataSource) PutEvent(evt *api.Event)
func (*MongoDataSource) SaveState ¶
func (m *MongoDataSource) SaveState(dev *api.Thing, state map[string]interface{})
func (*MongoDataSource) SaveThing ¶
func (m *MongoDataSource) SaveThing(dev api.Thing)
func (*MongoDataSource) SetContainer ¶
func (d *MongoDataSource) SetContainer(o api.Container)
func (*MongoDataSource) SetEnvironment ¶
func (d *MongoDataSource) SetEnvironment(o api.Environment)
func (*MongoDataSource) ValidateWiring ¶
func (s *MongoDataSource) ValidateWiring()
Click to show internal directories.
Click to hide internal directories.