source

package
v0.0.0-...-ec45d75 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2014 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAppDB

func NewAppDB(id string) api.AppDB

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) GetEvents

func (m *MongoDataSource) GetEvents(limit int) []api.Event

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) PutThing

func (m *MongoDataSource) PutThing(t *api.Thing) api.Thing

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()

Jump to

Keyboard shortcuts

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