Documentation ¶
Overview ¶
Package statestore provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func NewDeleteStateRequest(server string, statestore string, key string) (*http.Request, error)
- func NewGetStateRequest(server string, statestore string, key string, params *GetStateParams) (*http.Request, error)
- func NewPostBulkGetStateRequest(server string, statestore string, body PostBulkGetStateJSONRequestBody) (*http.Request, error)
- func NewPostBulkGetStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostStoreStateRequest(server string, statestore string, body PostStoreStateJSONRequestBody) (*http.Request, error)
- func NewPostStoreStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
- func NewPostTransactionSetStateRequest(server string, statestore string, body PostTransactionSetStateJSONRequestBody) (*http.Request, error)
- func NewPostTransactionSetStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutBulkGetStateRequest(server string, statestore string, body PutBulkGetStateJSONRequestBody) (*http.Request, error)
- func NewPutBulkGetStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutStoreStateRequest(server string, statestore string, body PutStoreStateJSONRequestBody) (*http.Request, error)
- func NewPutStoreStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
- func NewPutTransactionSetStateRequest(server string, statestore string, body PutTransactionSetStateJSONRequestBody) (*http.Request, error)
- func NewPutTransactionSetStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- type Client
- func (c *Client) DeleteState(ctx context.Context, statestore string, key string, ...) (*http.Response, error)
- func (c *Client) GetState(ctx context.Context, statestore string, key string, params *GetStateParams, ...) (*http.Response, error)
- func (c *Client) PostBulkGetState(ctx context.Context, statestore string, body PostBulkGetStateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostBulkGetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostStoreState(ctx context.Context, statestore string, body PostStoreStateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PostStoreStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PostTransactionSetState(ctx context.Context, statestore string, ...) (*http.Response, error)
- func (c *Client) PostTransactionSetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutBulkGetState(ctx context.Context, statestore string, body PutBulkGetStateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutBulkGetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutStoreState(ctx context.Context, statestore string, body PutStoreStateJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PutStoreStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) PutTransactionSetState(ctx context.Context, statestore string, ...) (*http.Response, error)
- func (c *Client) PutTransactionSetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) DeleteStateWithResponse(ctx context.Context, statestore string, key string, ...) (*DeleteStateResponse, error)
- func (c *ClientWithResponses) GetStateWithResponse(ctx context.Context, statestore string, key string, params *GetStateParams, ...) (*GetStateResponse, error)
- func (c *ClientWithResponses) PostBulkGetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*PostBulkGetStateResponse, error)
- func (c *ClientWithResponses) PostBulkGetStateWithResponse(ctx context.Context, statestore string, body PostBulkGetStateJSONRequestBody, ...) (*PostBulkGetStateResponse, error)
- func (c *ClientWithResponses) PostStoreStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*PostStoreStateResponse, error)
- func (c *ClientWithResponses) PostStoreStateWithResponse(ctx context.Context, statestore string, body PostStoreStateJSONRequestBody, ...) (*PostStoreStateResponse, error)
- func (c *ClientWithResponses) PostTransactionSetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*PostTransactionSetStateResponse, error)
- func (c *ClientWithResponses) PostTransactionSetStateWithResponse(ctx context.Context, statestore string, ...) (*PostTransactionSetStateResponse, error)
- func (c *ClientWithResponses) PutBulkGetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*PutBulkGetStateResponse, error)
- func (c *ClientWithResponses) PutBulkGetStateWithResponse(ctx context.Context, statestore string, body PutBulkGetStateJSONRequestBody, ...) (*PutBulkGetStateResponse, error)
- func (c *ClientWithResponses) PutStoreStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*PutStoreStateResponse, error)
- func (c *ClientWithResponses) PutStoreStateWithResponse(ctx context.Context, statestore string, body PutStoreStateJSONRequestBody, ...) (*PutStoreStateResponse, error)
- func (c *ClientWithResponses) PutTransactionSetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, ...) (*PutTransactionSetStateResponse, error)
- func (c *ClientWithResponses) PutTransactionSetStateWithResponse(ctx context.Context, statestore string, ...) (*PutTransactionSetStateResponse, error)
- type ClientWithResponsesInterface
- type DeleteStateResponse
- type GetStateParams
- type GetStateParamsConsistency
- type GetStateResponse
- type HttpRequestDoer
- type PostBulkGetStateJSONRequestBody
- type PostBulkGetStateResponse
- type PostStoreStateJSONRequestBody
- type PostStoreStateResponse
- type PostTransactionSetStateJSONRequestBody
- type PostTransactionSetStateResponse
- type PutBulkGetStateJSONRequestBody
- type PutBulkGetStateResponse
- type PutStoreStateJSONRequestBody
- type PutStoreStateResponse
- type PutTransactionSetStateJSONRequestBody
- type PutTransactionSetStateResponse
- type RequestEditorFn
- type StateGetResponse
- type StateRequest
- type StateRequestArray
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func NewDeleteStateRequest ¶
NewDeleteStateRequest generates requests for DeleteState
func NewGetStateRequest ¶
func NewGetStateRequest(server string, statestore string, key string, params *GetStateParams) (*http.Request, error)
NewGetStateRequest generates requests for GetState
func NewPostBulkGetStateRequest ¶
func NewPostBulkGetStateRequest(server string, statestore string, body PostBulkGetStateJSONRequestBody) (*http.Request, error)
NewPostBulkGetStateRequest calls the generic PostBulkGetState builder with application/json body
func NewPostBulkGetStateRequestWithBody ¶
func NewPostBulkGetStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
NewPostBulkGetStateRequestWithBody generates requests for PostBulkGetState with any type of body
func NewPostStoreStateRequest ¶
func NewPostStoreStateRequest(server string, statestore string, body PostStoreStateJSONRequestBody) (*http.Request, error)
NewPostStoreStateRequest calls the generic PostStoreState builder with application/json body
func NewPostStoreStateRequestWithBody ¶
func NewPostStoreStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
NewPostStoreStateRequestWithBody generates requests for PostStoreState with any type of body
func NewPostTransactionSetStateRequest ¶
func NewPostTransactionSetStateRequest(server string, statestore string, body PostTransactionSetStateJSONRequestBody) (*http.Request, error)
NewPostTransactionSetStateRequest calls the generic PostTransactionSetState builder with application/json body
func NewPostTransactionSetStateRequestWithBody ¶
func NewPostTransactionSetStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
NewPostTransactionSetStateRequestWithBody generates requests for PostTransactionSetState with any type of body
func NewPutBulkGetStateRequest ¶
func NewPutBulkGetStateRequest(server string, statestore string, body PutBulkGetStateJSONRequestBody) (*http.Request, error)
NewPutBulkGetStateRequest calls the generic PutBulkGetState builder with application/json body
func NewPutBulkGetStateRequestWithBody ¶
func NewPutBulkGetStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
NewPutBulkGetStateRequestWithBody generates requests for PutBulkGetState with any type of body
func NewPutStoreStateRequest ¶
func NewPutStoreStateRequest(server string, statestore string, body PutStoreStateJSONRequestBody) (*http.Request, error)
NewPutStoreStateRequest calls the generic PutStoreState builder with application/json body
func NewPutStoreStateRequestWithBody ¶
func NewPutStoreStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)
NewPutStoreStateRequestWithBody generates requests for PutStoreState with any type of body
func NewPutTransactionSetStateRequest ¶
func NewPutTransactionSetStateRequest(server string, statestore string, body PutTransactionSetStateJSONRequestBody) (*http.Request, error)
NewPutTransactionSetStateRequest calls the generic PutTransactionSetState builder with application/json body
Types ¶
type Client ¶
type Client struct { // The endpoint of the server conforming to this interface, with scheme, // https://api.deepmap.com for example. This can contain a path relative // to the server, such as https://api.deepmap.com/dev-test, and all the // paths in the swagger spec will be appended to the server. Server string // Doer for performing requests, typically a *http.Client with any // customized settings, such as certificate chains. Client HttpRequestDoer // A list of callbacks for modifying requests which are generated before sending over // the network. RequestEditors []RequestEditorFn }
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) DeleteState ¶
func (*Client) GetState ¶
func (c *Client) GetState(ctx context.Context, statestore string, key string, params *GetStateParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostBulkGetState ¶
func (c *Client) PostBulkGetState(ctx context.Context, statestore string, body PostBulkGetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostBulkGetStateWithBody ¶
func (*Client) PostStoreState ¶
func (c *Client) PostStoreState(ctx context.Context, statestore string, body PostStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostStoreStateWithBody ¶
func (*Client) PostTransactionSetState ¶
func (c *Client) PostTransactionSetState(ctx context.Context, statestore string, body PostTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PostTransactionSetStateWithBody ¶
func (*Client) PutBulkGetState ¶
func (c *Client) PutBulkGetState(ctx context.Context, statestore string, body PutBulkGetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutBulkGetStateWithBody ¶
func (*Client) PutStoreState ¶
func (c *Client) PutStoreState(ctx context.Context, statestore string, body PutStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PutStoreStateWithBody ¶
func (*Client) PutTransactionSetState ¶
func (c *Client) PutTransactionSetState(ctx context.Context, statestore string, body PutTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface { // PostStoreState request with any body PostStoreStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostStoreState(ctx context.Context, statestore string, body PostStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PutStoreState request with any body PutStoreStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutStoreState(ctx context.Context, statestore string, body PutStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostBulkGetState request with any body PostBulkGetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostBulkGetState(ctx context.Context, statestore string, body PostBulkGetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PutBulkGetState request with any body PutBulkGetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutBulkGetState(ctx context.Context, statestore string, body PutBulkGetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PostTransactionSetState request with any body PostTransactionSetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PostTransactionSetState(ctx context.Context, statestore string, body PostTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // PutTransactionSetState request with any body PutTransactionSetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error) PutTransactionSetState(ctx context.Context, statestore string, body PutTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) // DeleteState request DeleteState(ctx context.Context, statestore string, key string, reqEditors ...RequestEditorFn) (*http.Response, error) // GetState request GetState(ctx context.Context, statestore string, key string, params *GetStateParams, reqEditors ...RequestEditorFn) (*http.Response, error) }
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) DeleteStateWithResponse ¶
func (c *ClientWithResponses) DeleteStateWithResponse(ctx context.Context, statestore string, key string, reqEditors ...RequestEditorFn) (*DeleteStateResponse, error)
DeleteStateWithResponse request returning *DeleteStateResponse
func (*ClientWithResponses) GetStateWithResponse ¶
func (c *ClientWithResponses) GetStateWithResponse(ctx context.Context, statestore string, key string, params *GetStateParams, reqEditors ...RequestEditorFn) (*GetStateResponse, error)
GetStateWithResponse request returning *GetStateResponse
func (*ClientWithResponses) PostBulkGetStateWithBodyWithResponse ¶
func (c *ClientWithResponses) PostBulkGetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBulkGetStateResponse, error)
PostBulkGetStateWithBodyWithResponse request with arbitrary body returning *PostBulkGetStateResponse
func (*ClientWithResponses) PostBulkGetStateWithResponse ¶
func (c *ClientWithResponses) PostBulkGetStateWithResponse(ctx context.Context, statestore string, body PostBulkGetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostBulkGetStateResponse, error)
func (*ClientWithResponses) PostStoreStateWithBodyWithResponse ¶
func (c *ClientWithResponses) PostStoreStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStoreStateResponse, error)
PostStoreStateWithBodyWithResponse request with arbitrary body returning *PostStoreStateResponse
func (*ClientWithResponses) PostStoreStateWithResponse ¶
func (c *ClientWithResponses) PostStoreStateWithResponse(ctx context.Context, statestore string, body PostStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostStoreStateResponse, error)
func (*ClientWithResponses) PostTransactionSetStateWithBodyWithResponse ¶
func (c *ClientWithResponses) PostTransactionSetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostTransactionSetStateResponse, error)
PostTransactionSetStateWithBodyWithResponse request with arbitrary body returning *PostTransactionSetStateResponse
func (*ClientWithResponses) PostTransactionSetStateWithResponse ¶
func (c *ClientWithResponses) PostTransactionSetStateWithResponse(ctx context.Context, statestore string, body PostTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostTransactionSetStateResponse, error)
func (*ClientWithResponses) PutBulkGetStateWithBodyWithResponse ¶
func (c *ClientWithResponses) PutBulkGetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutBulkGetStateResponse, error)
PutBulkGetStateWithBodyWithResponse request with arbitrary body returning *PutBulkGetStateResponse
func (*ClientWithResponses) PutBulkGetStateWithResponse ¶
func (c *ClientWithResponses) PutBulkGetStateWithResponse(ctx context.Context, statestore string, body PutBulkGetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PutBulkGetStateResponse, error)
func (*ClientWithResponses) PutStoreStateWithBodyWithResponse ¶
func (c *ClientWithResponses) PutStoreStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutStoreStateResponse, error)
PutStoreStateWithBodyWithResponse request with arbitrary body returning *PutStoreStateResponse
func (*ClientWithResponses) PutStoreStateWithResponse ¶
func (c *ClientWithResponses) PutStoreStateWithResponse(ctx context.Context, statestore string, body PutStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PutStoreStateResponse, error)
func (*ClientWithResponses) PutTransactionSetStateWithBodyWithResponse ¶
func (c *ClientWithResponses) PutTransactionSetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutTransactionSetStateResponse, error)
PutTransactionSetStateWithBodyWithResponse request with arbitrary body returning *PutTransactionSetStateResponse
func (*ClientWithResponses) PutTransactionSetStateWithResponse ¶
func (c *ClientWithResponses) PutTransactionSetStateWithResponse(ctx context.Context, statestore string, body PutTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PutTransactionSetStateResponse, error)
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface { // PostStoreState request with any body PostStoreStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostStoreStateResponse, error) PostStoreStateWithResponse(ctx context.Context, statestore string, body PostStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostStoreStateResponse, error) // PutStoreState request with any body PutStoreStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutStoreStateResponse, error) PutStoreStateWithResponse(ctx context.Context, statestore string, body PutStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PutStoreStateResponse, error) // PostBulkGetState request with any body PostBulkGetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostBulkGetStateResponse, error) PostBulkGetStateWithResponse(ctx context.Context, statestore string, body PostBulkGetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostBulkGetStateResponse, error) // PutBulkGetState request with any body PutBulkGetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutBulkGetStateResponse, error) PutBulkGetStateWithResponse(ctx context.Context, statestore string, body PutBulkGetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PutBulkGetStateResponse, error) // PostTransactionSetState request with any body PostTransactionSetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PostTransactionSetStateResponse, error) PostTransactionSetStateWithResponse(ctx context.Context, statestore string, body PostTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PostTransactionSetStateResponse, error) // PutTransactionSetState request with any body PutTransactionSetStateWithBodyWithResponse(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PutTransactionSetStateResponse, error) PutTransactionSetStateWithResponse(ctx context.Context, statestore string, body PutTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*PutTransactionSetStateResponse, error) // DeleteState request DeleteStateWithResponse(ctx context.Context, statestore string, key string, reqEditors ...RequestEditorFn) (*DeleteStateResponse, error) // GetState request GetStateWithResponse(ctx context.Context, statestore string, key string, params *GetStateParams, reqEditors ...RequestEditorFn) (*GetStateResponse, error) }
ClientWithResponsesInterface is the interface specification for the client with responses above.
type DeleteStateResponse ¶
func ParseDeleteStateResponse ¶
func ParseDeleteStateResponse(rsp *http.Response) (*DeleteStateResponse, error)
ParseDeleteStateResponse parses an HTTP response from a DeleteStateWithResponse call
func (DeleteStateResponse) Status ¶
func (r DeleteStateResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteStateResponse) StatusCode ¶
func (r DeleteStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetStateParams ¶
type GetStateParams struct { // Consistency read consistency mode Consistency *GetStateParamsConsistency `form:"consistency,omitempty" json:"consistency,omitempty"` // Metadata metadata as query parameters to the state store Metadata *map[string]interface{} `form:"metadata,omitempty" json:"metadata,omitempty"` }
GetStateParams defines parameters for GetState.
type GetStateParamsConsistency ¶
type GetStateParamsConsistency string
GetStateParamsConsistency defines parameters for GetState.
const ( Eventual GetStateParamsConsistency = "eventual" Strong GetStateParamsConsistency = "strong" )
Defines values for GetStateParamsConsistency.
type GetStateResponse ¶
type GetStateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *StateGetResponse }
func ParseGetStateResponse ¶
func ParseGetStateResponse(rsp *http.Response) (*GetStateResponse, error)
ParseGetStateResponse parses an HTTP response from a GetStateWithResponse call
func (GetStateResponse) Status ¶
func (r GetStateResponse) Status() string
Status returns HTTPResponse.Status
func (GetStateResponse) StatusCode ¶
func (r GetStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type PostBulkGetStateJSONRequestBody ¶
type PostBulkGetStateJSONRequestBody = StateRequestArray
PostBulkGetStateJSONRequestBody defines body for PostBulkGetState for application/json ContentType.
type PostBulkGetStateResponse ¶
type PostBulkGetStateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *StateGetResponse }
func ParsePostBulkGetStateResponse ¶
func ParsePostBulkGetStateResponse(rsp *http.Response) (*PostBulkGetStateResponse, error)
ParsePostBulkGetStateResponse parses an HTTP response from a PostBulkGetStateWithResponse call
func (PostBulkGetStateResponse) Status ¶
func (r PostBulkGetStateResponse) Status() string
Status returns HTTPResponse.Status
func (PostBulkGetStateResponse) StatusCode ¶
func (r PostBulkGetStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostStoreStateJSONRequestBody ¶
type PostStoreStateJSONRequestBody = StateRequestArray
PostStoreStateJSONRequestBody defines body for PostStoreState for application/json ContentType.
type PostStoreStateResponse ¶
func ParsePostStoreStateResponse ¶
func ParsePostStoreStateResponse(rsp *http.Response) (*PostStoreStateResponse, error)
ParsePostStoreStateResponse parses an HTTP response from a PostStoreStateWithResponse call
func (PostStoreStateResponse) Status ¶
func (r PostStoreStateResponse) Status() string
Status returns HTTPResponse.Status
func (PostStoreStateResponse) StatusCode ¶
func (r PostStoreStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PostTransactionSetStateJSONRequestBody ¶
type PostTransactionSetStateJSONRequestBody = StateRequestArray
PostTransactionSetStateJSONRequestBody defines body for PostTransactionSetState for application/json ContentType.
type PostTransactionSetStateResponse ¶
type PostTransactionSetStateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *StateGetResponse }
func ParsePostTransactionSetStateResponse ¶
func ParsePostTransactionSetStateResponse(rsp *http.Response) (*PostTransactionSetStateResponse, error)
ParsePostTransactionSetStateResponse parses an HTTP response from a PostTransactionSetStateWithResponse call
func (PostTransactionSetStateResponse) Status ¶
func (r PostTransactionSetStateResponse) Status() string
Status returns HTTPResponse.Status
func (PostTransactionSetStateResponse) StatusCode ¶
func (r PostTransactionSetStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutBulkGetStateJSONRequestBody ¶
type PutBulkGetStateJSONRequestBody = StateRequestArray
PutBulkGetStateJSONRequestBody defines body for PutBulkGetState for application/json ContentType.
type PutBulkGetStateResponse ¶
type PutBulkGetStateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *StateGetResponse }
func ParsePutBulkGetStateResponse ¶
func ParsePutBulkGetStateResponse(rsp *http.Response) (*PutBulkGetStateResponse, error)
ParsePutBulkGetStateResponse parses an HTTP response from a PutBulkGetStateWithResponse call
func (PutBulkGetStateResponse) Status ¶
func (r PutBulkGetStateResponse) Status() string
Status returns HTTPResponse.Status
func (PutBulkGetStateResponse) StatusCode ¶
func (r PutBulkGetStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutStoreStateJSONRequestBody ¶
type PutStoreStateJSONRequestBody = StateRequestArray
PutStoreStateJSONRequestBody defines body for PutStoreState for application/json ContentType.
type PutStoreStateResponse ¶
func ParsePutStoreStateResponse ¶
func ParsePutStoreStateResponse(rsp *http.Response) (*PutStoreStateResponse, error)
ParsePutStoreStateResponse parses an HTTP response from a PutStoreStateWithResponse call
func (PutStoreStateResponse) Status ¶
func (r PutStoreStateResponse) Status() string
Status returns HTTPResponse.Status
func (PutStoreStateResponse) StatusCode ¶
func (r PutStoreStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type PutTransactionSetStateJSONRequestBody ¶
type PutTransactionSetStateJSONRequestBody = StateRequestArray
PutTransactionSetStateJSONRequestBody defines body for PutTransactionSetState for application/json ContentType.
type PutTransactionSetStateResponse ¶
type PutTransactionSetStateResponse struct { Body []byte HTTPResponse *http.Response JSON200 *StateGetResponse }
func ParsePutTransactionSetStateResponse ¶
func ParsePutTransactionSetStateResponse(rsp *http.Response) (*PutTransactionSetStateResponse, error)
ParsePutTransactionSetStateResponse parses an HTTP response from a PutTransactionSetStateWithResponse call
func (PutTransactionSetStateResponse) Status ¶
func (r PutTransactionSetStateResponse) Status() string
Status returns HTTPResponse.Status
func (PutTransactionSetStateResponse) StatusCode ¶
func (r PutTransactionSetStateResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type StateGetResponse ¶
type StateGetResponse = map[string]interface{}
StateGetResponse defines model for StateGetResponse.
type StateRequest ¶
type StateRequest struct { // Etag state ETag Etag *string `json:"etag,omitempty"` // Key state key Key string `json:"key"` // Metadata additional key-value pairs to be passed to the state store Metadata *map[string]interface{} `json:"metadata,omitempty"` // Options state operation options, see state operation options Options *string `json:"options,omitempty"` // Value state value, which can be any byte array Value string `json:"value"` }
StateRequest defines model for StateRequest.
type StateRequestArray ¶
type StateRequestArray = []StateRequest
StateRequestArray defines model for StateRequestArray.