Documentation ¶
Index ¶
- func Wrap(store types.Store) types.Store
- type StoreWrapper
- func (s *StoreWrapper) ByID(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)
- func (s *StoreWrapper) Context() types.StorageContext
- func (s *StoreWrapper) Create(apiContext *types.APIContext, schema *types.Schema, ...) (map[string]interface{}, error)
- func (s *StoreWrapper) Delete(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)
- func (s *StoreWrapper) List(apiContext *types.APIContext, schema *types.Schema, opts *types.QueryOptions) ([]map[string]interface{}, error)
- func (s *StoreWrapper) Update(apiContext *types.APIContext, schema *types.Schema, ...) (map[string]interface{}, error)
- func (s *StoreWrapper) 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 ¶
Types ¶
type StoreWrapper ¶
type StoreWrapper struct {
// contains filtered or unexported fields
}
func (*StoreWrapper) ByID ¶
func (s *StoreWrapper) ByID(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)
func (*StoreWrapper) Context ¶
func (s *StoreWrapper) Context() types.StorageContext
func (*StoreWrapper) Create ¶
func (s *StoreWrapper) Create(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}) (map[string]interface{}, error)
func (*StoreWrapper) Delete ¶
func (s *StoreWrapper) Delete(apiContext *types.APIContext, schema *types.Schema, id string) (map[string]interface{}, error)
func (*StoreWrapper) List ¶
func (s *StoreWrapper) List(apiContext *types.APIContext, schema *types.Schema, opts *types.QueryOptions) ([]map[string]interface{}, error)
func (*StoreWrapper) Update ¶
func (s *StoreWrapper) Update(apiContext *types.APIContext, schema *types.Schema, data map[string]interface{}, id string) (map[string]interface{}, error)
func (*StoreWrapper) Watch ¶
func (s *StoreWrapper) 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.