Versions in this module Expand all Collapse all v0 v0.2.0 Jan 11, 2019 Changes in this version + var ErrInvalidData = errors.New("Invalid data unmarshalled") + var ErrInvalidDefinition = errors.New("DataStore definition is invalid") + var ErrTypeMismatch = errors.New("Type mismatch in data and definition") + type DataStore struct + Data map[string]interface{} + Definition DataStoreDefinition + func NewDataStore(definition DataStoreDefinition) DataStore + func (datastore *DataStore) GetBSON() (interface{}, error) + func (datastore *DataStore) MarshalJSON() ([]byte, error) + func (datastore *DataStore) SetBSON(raw bson.Raw) error + func (datastore *DataStore) UnmarshalJSON(b []byte) error + func (datastore *DataStore) Validate() error + type DataStoreDefinition struct + Fields []DataStoreDefinition + Name string + Type string + Validations string