store

package
v0.0.0-...-8289b80 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveMongoCollectionName

func ResolveMongoCollectionName(ent EntityType) string

Types

type MongoStore

type MongoStore struct {
	// contains filtered or unexported fields
}

func NewMongoStore

func NewMongoStore(hosts string, db string) *MongoStore

func (*MongoStore) Delete

func (m *MongoStore) Delete(ent EntityType, id string) (err error)

func (*MongoStore) Init

func (m *MongoStore) Init()

func (*MongoStore) Insert

func (m *MongoStore) Insert(rp ResourcePath, payload SensorThing) error

func (*MongoStore) Patch

func (m *MongoStore) Patch(payload SensorThing) (err error)

func (*MongoStore) Query

func (m *MongoStore) Query(rp ResourcePath, opts QueryOptions) (interface{}, error)

func (*MongoStore) Shutdown

func (m *MongoStore) Shutdown()

func (*MongoStore) Update

func (m *MongoStore) Update(payload SensorThing) (err error)

Jump to

Keyboard shortcuts

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