Documentation ¶
Index ¶
- Constants
- func DestroyAPI(api *API)
- type API
- func (api *API) DeleteState(storeName string, key string, queryParams map[string]string) error
- func (api *API) GetState(storeName string, key string, queryParams map[string]string) (string, string, error)
- func (api *API) GetStateBulk(storeName string, queryParams map[string]string, request GetStateBulkRequest) ([]GetStateBulkItem, error)
- func (api *API) SaveState(storeName string, request []SaveStateRequest) error
- func (api *API) Transaction(storeName string, request TransactionRequest) error
- type GetStateBulkItem
- type GetStateBulkRequest
- type SaveStateRequest
- type TransactionOperation
- type TransactionOperationRequest
- type TransactionRequest
Constants ¶
View Source
const ( TransactionUpsert = "upsert" TransactionDelete = "delete" )
Variables ¶
This section is empty.
Functions ¶
func DestroyAPI ¶
func DestroyAPI(api *API)
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func (*API) DeleteState ¶
func (*API) GetStateBulk ¶
func (api *API) GetStateBulk(storeName string, queryParams map[string]string, request GetStateBulkRequest) ([]GetStateBulkItem, error)
func (*API) SaveState ¶
func (api *API) SaveState(storeName string, request []SaveStateRequest) error
func (*API) Transaction ¶
func (api *API) Transaction(storeName string, request TransactionRequest) error
type GetStateBulkItem ¶
type GetStateBulkRequest ¶
type SaveStateRequest ¶
type TransactionOperation ¶
type TransactionOperation struct { Operation string `json:"operation"` Request TransactionOperationRequest `json:"request"` }
type TransactionRequest ¶
type TransactionRequest struct { Operations []TransactionOperation `json:"operations"` MetaData map[string]string `json:"metadata,omitempty"` }
Click to show internal directories.
Click to hide internal directories.