Documentation ¶
Index ¶
- type ListTransformerFunc
- type Store
- func (s *Store) ByID(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)
- func (s *Store) Context() types.StorageContext
- func (s *Store) Create(apiContext *types.APIContext, schema *types.Schema, ...) (map[string]interface{}, error)
- func (s *Store) Delete(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)
- func (s *Store) List(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) ([]map[string]interface{}, error)
- func (s *Store) Update(apiContext *types.APIContext, schema *types.Schema, ...) (map[string]interface{}, error)
- func (s *Store) Watch(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) (chan map[string]interface{}, error)
- type StreamTransformerFunc
- type TransformerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListTransformerFunc ¶
type ListTransformerFunc func(apiContext *types.APIContext, schema *types.Schema, data []map[string]interface{}, opt *types.QueryOptions) ([]map[string]interface{}, error)
type Store ¶
type Store struct { Store types.Store Transformer TransformerFunc ListTransformer ListTransformerFunc StreamTransformer StreamTransformerFunc }
func (*Store) Context ¶
func (s *Store) Context() types.StorageContext
func (*Store) List ¶
func (s *Store) List(apiContext *types.APIContext, schema *types.Schema, opt *types.QueryOptions) ([]map[string]interface{}, error)
type StreamTransformerFunc ¶
type StreamTransformerFunc func(apiContext *types.APIContext, schema *types.Schema, data chan map[string]interface{}, opt *types.QueryOptions) (chan map[string]interface{}, error)
type TransformerFunc ¶
type TransformerFunc func(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}, opt *types.QueryOptions) (map[string]interface{}, error)
Click to show internal directories.
Click to hide internal directories.