Documentation ¶
Index ¶
- func UseDataStore(ds datalayer.DataStore) configFunc
- type Config
- func (cf *Config) CreateCollection(ctx context.Context, name string, schema, metadata map[string]interface{}) error
- func (cf *Config) GetCollections(ctx context.Context) (collections []datalayer.CollectionVM, err error)
- func (cf *Config) GetItem(ctx context.Context, collectionName, itemID string) (item map[string]interface{}, err error)
- func (cf *Config) GetItems(ctx context.Context, collectionName string, queryMeta datalayer.QueryMeta) (items []map[string]interface{}, respInfo datalayer.ItemsResponseInfo, ...)
- func (cf *Config) GetSchema(ctx context.Context, collectionName string) (schema map[string]interface{}, err error)
- func (cf *Config) SaveItem(ctx context.Context, collectionName string, item map[string]interface{}) error
- type Manager
- type ValidationErrors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UseDataStore ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) CreateCollection ¶
func (*Config) GetCollections ¶
type Manager ¶
type Manager interface { CreateCollection(ctx context.Context, name string, schema, metadata map[string]interface{}) error GetCollections(ctx context.Context) (collections []datalayer.CollectionVM, err error) GetSchema(ctx context.Context, collectionName string) (map[string]interface{}, error) SaveItem(ctx context.Context, collectionName string, item map[string]interface{}) error GetItem(ctx context.Context, collectionName, itemID string) (item map[string]interface{}, err error) GetItems(ctx context.Context, collectionName string, queryMeta datalayer.QueryMeta) (items []map[string]interface{}, respInfo datalayer.ItemsResponseInfo, err error) }
type ValidationErrors ¶
type ValidationErrors []gojsonschema.ResultError
func (ValidationErrors) Error ¶
func (v ValidationErrors) Error() string
func (ValidationErrors) ValidationErrors ¶
func (v ValidationErrors) ValidationErrors() []gojsonschema.ResultError
Click to show internal directories.
Click to hide internal directories.