Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidData = errors.New("Invalid data unmarshalled")
View Source
var ErrInvalidDefinition = errors.New("DataStore definition is invalid")
View Source
var ErrTypeMismatch = errors.New("Type mismatch in data and definition")
Functions ¶
This section is empty.
Types ¶
type DataStore ¶
type DataStore struct { Definition DataStoreDefinition Data map[string]interface{} }
func NewDataStore ¶
func NewDataStore(definition DataStoreDefinition) DataStore
func (*DataStore) MarshalJSON ¶
func (*DataStore) UnmarshalJSON ¶
type DataStoreDefinition ¶
type DataStoreDefinition struct { Name string `json:"name"` Type string `json:"type"` Validations string `json:"validations"` Fields []DataStoreDefinition `json:"fields"` }
Click to show internal directories.
Click to hide internal directories.