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