Versions in this module Expand all Collapse all v0 v0.2.0 Aug 11, 2015 Changes in this version + type Alias string + type AnotherModel struct + Bar string + Foo float64 + func NewAnotherModel() *AnotherModel + type AnotherModelQuery struct + func (q *AnotherModelQuery) FindById(ids ...bson.ObjectId) + type AnotherModelResultSet struct + func (r *AnotherModelResultSet) All() ([]*AnotherModel, error) + func (r *AnotherModelResultSet) Next() (*AnotherModel, error) + func (r *AnotherModelResultSet) One() (*AnotherModel, error) + type AnotherModelStore struct + Foo bool + func NewAnotherModelStore(db *mgo.Database, foo bool) *AnotherModelStore + func (s *AnotherModelStore) Find(query *AnotherModelQuery) (*AnotherModelResultSet, error) + func (s *AnotherModelStore) FindOne(query *AnotherModelQuery) (*AnotherModel, error) + func (s *AnotherModelStore) Insert(doc *AnotherModel) error + func (s *AnotherModelStore) MustFind(query *AnotherModelQuery) *AnotherModelResultSet + func (s *AnotherModelStore) MustFindOne(query *AnotherModelQuery) *AnotherModel + func (s *AnotherModelStore) New() (doc *AnotherModel) + func (s *AnotherModelStore) Query() *AnotherModelQuery + func (s *AnotherModelStore) Save(doc *AnotherModel) (updated bool, err error) + func (s *AnotherModelStore) Update(doc *AnotherModel) error + type AnotherType struct + X int + Y int + type MyModel struct + AliasOfString Alias + Bytes []byte + InlineStruct struct{ ... } + Int int + MapsOfString map[string]string + Nested SomeType + NestedRef *SomeType + NestedSlice []*SomeType + Slice []string + SliceAlias SliceAlias + String string + Time time.Time + func (m *MyModel) IrrelevantFunction() + type MyModelQuery struct + func (q *MyModelQuery) FindById(ids ...bson.ObjectId) + type MyModelResultSet struct + func (r *MyModelResultSet) All() ([]*MyModel, error) + func (r *MyModelResultSet) Next() (*MyModel, error) + func (r *MyModelResultSet) One() (*MyModel, error) + type MyModelStore struct + func NewMyModelStore(db *mgo.Database) *MyModelStore + func (s *MyModelStore) Find(query *MyModelQuery) (*MyModelResultSet, error) + func (s *MyModelStore) FindOne(query *MyModelQuery) (*MyModel, error) + func (s *MyModelStore) Insert(doc *MyModel) error + func (s *MyModelStore) MustFind(query *MyModelQuery) *MyModelResultSet + func (s *MyModelStore) MustFindOne(query *MyModelQuery) *MyModel + func (s *MyModelStore) New() (doc *MyModel) + func (s *MyModelStore) Query() *MyModelQuery + func (s *MyModelStore) Save(doc *MyModel) (updated bool, err error) + func (s *MyModelStore) Update(doc *MyModel) error + type SliceAlias []string + type SomeType struct + Another AnotherType + X int + Y int v0.1.0 Nov 13, 2015 Changes in this version + var Schema = schema + type EventsFixture struct + Checks map[string]bool + MustFailAfter error + MustFailBefore error + type EventsFixtureQuery struct + func (q *EventsFixtureQuery) FindById(ids ...bson.ObjectId) *EventsFixtureQuery + type EventsFixtureResultSet struct + func (r *EventsFixtureResultSet) All() ([]*EventsFixture, error) + func (r *EventsFixtureResultSet) ForEach(f func(*EventsFixture) error) error + func (r *EventsFixtureResultSet) Get() (*EventsFixture, error) + func (r *EventsFixtureResultSet) Next() (returned bool) + func (r *EventsFixtureResultSet) One() (*EventsFixture, error) + type EventsFixtureStore struct + func NewEventsFixtureStore(db *mgo.Database) *EventsFixtureStore + func (s *EventsFixtureStore) AfterInsert(doc *EventsFixture) error + func (s *EventsFixtureStore) AfterUpdate(doc *EventsFixture) error + func (s *EventsFixtureStore) BeforeInsert(doc *EventsFixture) error + func (s *EventsFixtureStore) BeforeUpdate(doc *EventsFixture) error + func (s *EventsFixtureStore) Find(query *EventsFixtureQuery) (*EventsFixtureResultSet, error) + func (s *EventsFixtureStore) FindOne(query *EventsFixtureQuery) (*EventsFixture, error) + func (s *EventsFixtureStore) Insert(doc *EventsFixture) error + func (s *EventsFixtureStore) MustFind(query *EventsFixtureQuery) *EventsFixtureResultSet + func (s *EventsFixtureStore) MustFindOne(query *EventsFixtureQuery) *EventsFixture + func (s *EventsFixtureStore) New() (doc *EventsFixture) + func (s *EventsFixtureStore) Query() *EventsFixtureQuery + func (s *EventsFixtureStore) Save(doc *EventsFixture) (updated bool, err error) + func (s *EventsFixtureStore) Update(doc *EventsFixture) error + type EventsSaveFixture struct + Checks map[string]bool + MustFailAfter error + MustFailBefore error + type EventsSaveFixtureQuery struct + func (q *EventsSaveFixtureQuery) FindById(ids ...bson.ObjectId) *EventsSaveFixtureQuery + type EventsSaveFixtureResultSet struct + func (r *EventsSaveFixtureResultSet) All() ([]*EventsSaveFixture, error) + func (r *EventsSaveFixtureResultSet) ForEach(f func(*EventsSaveFixture) error) error + func (r *EventsSaveFixtureResultSet) Get() (*EventsSaveFixture, error) + func (r *EventsSaveFixtureResultSet) Next() (returned bool) + func (r *EventsSaveFixtureResultSet) One() (*EventsSaveFixture, error) + type EventsSaveFixtureStore struct + func NewEventsSaveFixtureStore(db *mgo.Database) *EventsSaveFixtureStore + func (s *EventsSaveFixtureStore) AfterSave(doc *EventsSaveFixture) error + func (s *EventsSaveFixtureStore) BeforeSave(doc *EventsSaveFixture) error + func (s *EventsSaveFixtureStore) Find(query *EventsSaveFixtureQuery) (*EventsSaveFixtureResultSet, error) + func (s *EventsSaveFixtureStore) FindOne(query *EventsSaveFixtureQuery) (*EventsSaveFixture, error) + func (s *EventsSaveFixtureStore) Insert(doc *EventsSaveFixture) error + func (s *EventsSaveFixtureStore) MustFind(query *EventsSaveFixtureQuery) *EventsSaveFixtureResultSet + func (s *EventsSaveFixtureStore) MustFindOne(query *EventsSaveFixtureQuery) *EventsSaveFixture + func (s *EventsSaveFixtureStore) New() (doc *EventsSaveFixture) + func (s *EventsSaveFixtureStore) Query() *EventsSaveFixtureQuery + func (s *EventsSaveFixtureStore) Save(doc *EventsSaveFixture) (updated bool, err error) + func (s *EventsSaveFixtureStore) Update(doc *EventsSaveFixture) error + type MultiKeySortFixture struct + End time.Time + Name string + Start time.Time + type MultiKeySortFixtureQuery struct + func (q *MultiKeySortFixtureQuery) FindById(ids ...bson.ObjectId) *MultiKeySortFixtureQuery + type MultiKeySortFixtureResultSet struct + func (r *MultiKeySortFixtureResultSet) All() ([]*MultiKeySortFixture, error) + func (r *MultiKeySortFixtureResultSet) ForEach(f func(*MultiKeySortFixture) error) error + func (r *MultiKeySortFixtureResultSet) Get() (*MultiKeySortFixture, error) + func (r *MultiKeySortFixtureResultSet) Next() (returned bool) + func (r *MultiKeySortFixtureResultSet) One() (*MultiKeySortFixture, error) + type MultiKeySortFixtureStore struct + func NewMultiKeySortFixtureStore(db *mgo.Database) *MultiKeySortFixtureStore + func (s *MultiKeySortFixtureStore) Find(query *MultiKeySortFixtureQuery) (*MultiKeySortFixtureResultSet, error) + func (s *MultiKeySortFixtureStore) FindOne(query *MultiKeySortFixtureQuery) (*MultiKeySortFixture, error) + func (s *MultiKeySortFixtureStore) Insert(doc *MultiKeySortFixture) error + func (s *MultiKeySortFixtureStore) MustFind(query *MultiKeySortFixtureQuery) *MultiKeySortFixtureResultSet + func (s *MultiKeySortFixtureStore) MustFindOne(query *MultiKeySortFixtureQuery) *MultiKeySortFixture + func (s *MultiKeySortFixtureStore) New() (doc *MultiKeySortFixture) + func (s *MultiKeySortFixtureStore) Query() *MultiKeySortFixtureQuery + func (s *MultiKeySortFixtureStore) Save(doc *MultiKeySortFixture) (updated bool, err error) + func (s *MultiKeySortFixtureStore) Update(doc *MultiKeySortFixture) error + type QueryFixture struct + Foo string + type QueryFixtureQuery struct + func (q *QueryFixtureQuery) FindById(ids ...bson.ObjectId) *QueryFixtureQuery + type QueryFixtureResultSet struct + func (r *QueryFixtureResultSet) All() ([]*QueryFixture, error) + func (r *QueryFixtureResultSet) ForEach(f func(*QueryFixture) error) error + func (r *QueryFixtureResultSet) Get() (*QueryFixture, error) + func (r *QueryFixtureResultSet) Next() (returned bool) + func (r *QueryFixtureResultSet) One() (*QueryFixture, error) + type QueryFixtureStore struct + func NewQueryFixtureStore(db *mgo.Database) *QueryFixtureStore + func (s *QueryFixtureStore) Find(query *QueryFixtureQuery) (*QueryFixtureResultSet, error) + func (s *QueryFixtureStore) FindOne(query *QueryFixtureQuery) (*QueryFixture, error) + func (s *QueryFixtureStore) Insert(doc *QueryFixture) error + func (s *QueryFixtureStore) MustFind(query *QueryFixtureQuery) *QueryFixtureResultSet + func (s *QueryFixtureStore) MustFindOne(query *QueryFixtureQuery) *QueryFixture + func (s *QueryFixtureStore) New(f string) (doc *QueryFixture) + func (s *QueryFixtureStore) Query() *QueryFixtureQuery + func (s *QueryFixtureStore) Save(doc *QueryFixture) (updated bool, err error) + func (s *QueryFixtureStore) Update(doc *QueryFixture) error + type ResultSetFixture struct + Foo string + type ResultSetFixtureQuery struct + func (q *ResultSetFixtureQuery) FindById(ids ...bson.ObjectId) *ResultSetFixtureQuery + type ResultSetFixtureResultSet struct + func (r *ResultSetFixtureResultSet) All() ([]*ResultSetFixture, error) + func (r *ResultSetFixtureResultSet) ForEach(f func(*ResultSetFixture) error) error + func (r *ResultSetFixtureResultSet) Get() (*ResultSetFixture, error) + func (r *ResultSetFixtureResultSet) Next() (returned bool) + func (r *ResultSetFixtureResultSet) One() (*ResultSetFixture, error) + type ResultSetFixtureStore struct + func NewResultSetFixtureStore(db *mgo.Database) *ResultSetFixtureStore + func (s *ResultSetFixtureStore) Find(query *ResultSetFixtureQuery) (*ResultSetFixtureResultSet, error) + func (s *ResultSetFixtureStore) FindOne(query *ResultSetFixtureQuery) (*ResultSetFixture, error) + func (s *ResultSetFixtureStore) Insert(doc *ResultSetFixture) error + func (s *ResultSetFixtureStore) MustFind(query *ResultSetFixtureQuery) *ResultSetFixtureResultSet + func (s *ResultSetFixtureStore) MustFindOne(query *ResultSetFixtureQuery) *ResultSetFixture + func (s *ResultSetFixtureStore) New(f string) (doc *ResultSetFixture) + func (s *ResultSetFixtureStore) Query() *ResultSetFixtureQuery + func (s *ResultSetFixtureStore) Save(doc *ResultSetFixture) (updated bool, err error) + func (s *ResultSetFixtureStore) Update(doc *ResultSetFixture) error + type ResultSetInitFixture struct + Foo string + func (r *ResultSetInitFixture) Init(doc storable.DocumentBase) error + type ResultSetInitFixtureQuery struct + func (q *ResultSetInitFixtureQuery) FindById(ids ...bson.ObjectId) *ResultSetInitFixtureQuery + type ResultSetInitFixtureResultSet struct + func (r *ResultSetInitFixtureResultSet) All() ([]*ResultSetInitFixture, error) + func (r *ResultSetInitFixtureResultSet) ForEach(f func(*ResultSetInitFixture) error) error + func (r *ResultSetInitFixtureResultSet) Get() (*ResultSetInitFixture, error) + func (r *ResultSetInitFixtureResultSet) Next() (returned bool) + func (r *ResultSetInitFixtureResultSet) One() (*ResultSetInitFixture, error) + type ResultSetInitFixtureStore struct + func NewResultSetInitFixtureStore(db *mgo.Database) *ResultSetInitFixtureStore + func (s *ResultSetInitFixtureStore) Find(query *ResultSetInitFixtureQuery) (*ResultSetInitFixtureResultSet, error) + func (s *ResultSetInitFixtureStore) FindOne(query *ResultSetInitFixtureQuery) (*ResultSetInitFixture, error) + func (s *ResultSetInitFixtureStore) Insert(doc *ResultSetInitFixture) error + func (s *ResultSetInitFixtureStore) MustFind(query *ResultSetInitFixtureQuery) *ResultSetInitFixtureResultSet + func (s *ResultSetInitFixtureStore) MustFindOne(query *ResultSetInitFixtureQuery) *ResultSetInitFixture + func (s *ResultSetInitFixtureStore) New() (doc *ResultSetInitFixture) + func (s *ResultSetInitFixtureStore) Query() *ResultSetInitFixtureQuery + func (s *ResultSetInitFixtureStore) Save(doc *ResultSetInitFixture) (updated bool, err error) + func (s *ResultSetInitFixtureStore) Update(doc *ResultSetInitFixture) error + type SchemaFixture struct + Inline struct{ ... } + Int int + MapOfInterface map[string]interface{} + MapOfSomeType map[string]struct{ ... } + MapOfString map[string]string + Nested *SchemaFixture + String string + type SchemaFixtureQuery struct + func (q *SchemaFixtureQuery) FindById(ids ...bson.ObjectId) *SchemaFixtureQuery + type SchemaFixtureResultSet struct + func (r *SchemaFixtureResultSet) All() ([]*SchemaFixture, error) + func (r *SchemaFixtureResultSet) ForEach(f func(*SchemaFixture) error) error + func (r *SchemaFixtureResultSet) Get() (*SchemaFixture, error) + func (r *SchemaFixtureResultSet) Next() (returned bool) + func (r *SchemaFixtureResultSet) One() (*SchemaFixture, error) + type SchemaFixtureStore struct + func NewSchemaFixtureStore(db *mgo.Database) *SchemaFixtureStore + func (s *SchemaFixtureStore) Find(query *SchemaFixtureQuery) (*SchemaFixtureResultSet, error) + func (s *SchemaFixtureStore) FindOne(query *SchemaFixtureQuery) (*SchemaFixture, error) + func (s *SchemaFixtureStore) Insert(doc *SchemaFixture) error + func (s *SchemaFixtureStore) MustFind(query *SchemaFixtureQuery) *SchemaFixtureResultSet + func (s *SchemaFixtureStore) MustFindOne(query *SchemaFixtureQuery) *SchemaFixture + func (s *SchemaFixtureStore) New() (doc *SchemaFixture) + func (s *SchemaFixtureStore) Query() *SchemaFixtureQuery + func (s *SchemaFixtureStore) Save(doc *SchemaFixture) (updated bool, err error) + func (s *SchemaFixtureStore) Update(doc *SchemaFixture) error + type StoreFixture struct + Foo string + type StoreFixtureQuery struct + func (q *StoreFixtureQuery) FindById(ids ...bson.ObjectId) *StoreFixtureQuery + type StoreFixtureResultSet struct + func (r *StoreFixtureResultSet) All() ([]*StoreFixture, error) + func (r *StoreFixtureResultSet) ForEach(f func(*StoreFixture) error) error + func (r *StoreFixtureResultSet) Get() (*StoreFixture, error) + func (r *StoreFixtureResultSet) Next() (returned bool) + func (r *StoreFixtureResultSet) One() (*StoreFixture, error) + type StoreFixtureStore struct + func NewStoreFixtureStore(db *mgo.Database) *StoreFixtureStore + func (s *StoreFixtureStore) Find(query *StoreFixtureQuery) (*StoreFixtureResultSet, error) + func (s *StoreFixtureStore) FindOne(query *StoreFixtureQuery) (*StoreFixture, error) + func (s *StoreFixtureStore) Insert(doc *StoreFixture) error + func (s *StoreFixtureStore) MustFind(query *StoreFixtureQuery) *StoreFixtureResultSet + func (s *StoreFixtureStore) MustFindOne(query *StoreFixtureQuery) *StoreFixture + func (s *StoreFixtureStore) New() (doc *StoreFixture) + func (s *StoreFixtureStore) Query() *StoreFixtureQuery + func (s *StoreFixtureStore) Save(doc *StoreFixture) (updated bool, err error) + func (s *StoreFixtureStore) Update(doc *StoreFixture) error + type StoreWithConstructFixture struct + Foo string + type StoreWithConstructFixtureQuery struct + func (q *StoreWithConstructFixtureQuery) FindById(ids ...bson.ObjectId) *StoreWithConstructFixtureQuery + type StoreWithConstructFixtureResultSet struct + func (r *StoreWithConstructFixtureResultSet) All() ([]*StoreWithConstructFixture, error) + func (r *StoreWithConstructFixtureResultSet) ForEach(f func(*StoreWithConstructFixture) error) error + func (r *StoreWithConstructFixtureResultSet) Get() (*StoreWithConstructFixture, error) + func (r *StoreWithConstructFixtureResultSet) Next() (returned bool) + func (r *StoreWithConstructFixtureResultSet) One() (*StoreWithConstructFixture, error) + type StoreWithConstructFixtureStore struct + func NewStoreWithConstructFixtureStore(db *mgo.Database) *StoreWithConstructFixtureStore + func (s *StoreWithConstructFixtureStore) Find(query *StoreWithConstructFixtureQuery) (*StoreWithConstructFixtureResultSet, error) + func (s *StoreWithConstructFixtureStore) FindOne(query *StoreWithConstructFixtureQuery) (*StoreWithConstructFixture, error) + func (s *StoreWithConstructFixtureStore) Insert(doc *StoreWithConstructFixture) error + func (s *StoreWithConstructFixtureStore) MustFind(query *StoreWithConstructFixtureQuery) *StoreWithConstructFixtureResultSet + func (s *StoreWithConstructFixtureStore) MustFindOne(query *StoreWithConstructFixtureQuery) *StoreWithConstructFixture + func (s *StoreWithConstructFixtureStore) New(f string) (doc *StoreWithConstructFixture) + func (s *StoreWithConstructFixtureStore) Query() *StoreWithConstructFixtureQuery + func (s *StoreWithConstructFixtureStore) Save(doc *StoreWithConstructFixture) (updated bool, err error) + func (s *StoreWithConstructFixtureStore) Update(doc *StoreWithConstructFixture) error + type StoreWithNewFixture struct + Bar string + Foo string + type StoreWithNewFixtureQuery struct + func (q *StoreWithNewFixtureQuery) FindById(ids ...bson.ObjectId) *StoreWithNewFixtureQuery + type StoreWithNewFixtureResultSet struct + func (r *StoreWithNewFixtureResultSet) All() ([]*StoreWithNewFixture, error) + func (r *StoreWithNewFixtureResultSet) ForEach(f func(*StoreWithNewFixture) error) error + func (r *StoreWithNewFixtureResultSet) Get() (*StoreWithNewFixture, error) + func (r *StoreWithNewFixtureResultSet) Next() (returned bool) + func (r *StoreWithNewFixtureResultSet) One() (*StoreWithNewFixture, error) + type StoreWithNewFixtureStore struct + func NewStoreWithNewFixtureStore(db *mgo.Database) *StoreWithNewFixtureStore + func (s *StoreWithNewFixtureStore) Find(query *StoreWithNewFixtureQuery) (*StoreWithNewFixtureResultSet, error) + func (s *StoreWithNewFixtureStore) FindOne(query *StoreWithNewFixtureQuery) (*StoreWithNewFixture, error) + func (s *StoreWithNewFixtureStore) Insert(doc *StoreWithNewFixture) error + func (s *StoreWithNewFixtureStore) MustFind(query *StoreWithNewFixtureQuery) *StoreWithNewFixtureResultSet + func (s *StoreWithNewFixtureStore) MustFindOne(query *StoreWithNewFixtureQuery) *StoreWithNewFixture + func (s *StoreWithNewFixtureStore) New(f, b string) *StoreWithNewFixture + func (s *StoreWithNewFixtureStore) Query() *StoreWithNewFixtureQuery + func (s *StoreWithNewFixtureStore) Save(doc *StoreWithNewFixture) (updated bool, err error) + func (s *StoreWithNewFixtureStore) Update(doc *StoreWithNewFixture) error Other modules containing this package gopkg.in/tyba/storable.v1