Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CollectionVM ¶
type DBConfig ¶
type DBConfig struct { DriverType string `mapstructure:"driver_type"` // eg mongodb, etc ConnectionString string `mapstructure:"connection_string"` DatabaseName string `mapstructure:"database_name"` SchemaCollectionName string `mapstructure:"schema_collection_name"` // where schemas will be stored. }
type DataStore ¶
type DataStore interface { Connect(dbConfig DBConfig) (datastore DataStore, err error) CreateCollection(ctx context.Context, name string, schema, metadata map[string]interface{}) error GetCollections(ctx context.Context) (collections []CollectionVM, err error) GetSchema(ctx context.Context, collectionName string) (map[string]interface{}, error) SaveItem(ctx context.Context, collectionName, itemID 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 QueryMeta) (items []map[string]interface{}, respInfo ItemsResponseInfo, err error) }
type ItemsResponseInfo ¶
type ItemsResponseInfo struct{}
Click to show internal directories.
Click to hide internal directories.