statestore

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

README

Generated Clients

DO NOT change the generated client code. To regenerate run from inside this directory, to generate the Statestore client code:

oapi-codegen -generate types,client,spec -package statestore ../../statestore-api/http-1/statestore.yaml > statestore.gen.go

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSwagger

func GetSwagger() (swagger *openapi3.T, err error)

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

func NewDeleteStateRequest(server string, statestore string, key string) (*http.Request, error)

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

func NewPutTransactionSetStateRequestWithBody

func NewPutTransactionSetStateRequestWithBody(server string, statestore string, contentType string, body io.Reader) (*http.Request, error)

NewPutTransactionSetStateRequestWithBody generates requests for PutTransactionSetState with any type of body

func PathToRawSpec

func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)

Constructs a synthetic filesystem for resolving external references when loading openapi specifications.

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 (c *Client) DeleteState(ctx context.Context, statestore string, key string, reqEditors ...RequestEditorFn) (*http.Response, error)

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 (c *Client) PostBulkGetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostStoreState

func (c *Client) PostStoreState(ctx context.Context, statestore string, body PostStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostStoreStateWithBody

func (c *Client) PostStoreStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostTransactionSetState

func (c *Client) PostTransactionSetState(ctx context.Context, statestore string, body PostTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PostTransactionSetStateWithBody

func (c *Client) PostTransactionSetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutBulkGetState

func (c *Client) PutBulkGetState(ctx context.Context, statestore string, body PutBulkGetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutBulkGetStateWithBody

func (c *Client) PutBulkGetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutStoreState

func (c *Client) PutStoreState(ctx context.Context, statestore string, body PutStoreStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutStoreStateWithBody

func (c *Client) PutStoreStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutTransactionSetState

func (c *Client) PutTransactionSetState(ctx context.Context, statestore string, body PutTransactionSetStateJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) PutTransactionSetStateWithBody

func (c *Client) PutTransactionSetStateWithBody(ctx context.Context, statestore string, contentType string, body io.Reader, 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

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

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

type DeleteStateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

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

type PostStoreStateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

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

type PutStoreStateResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

Status returns HTTPResponse.Status

func (PutTransactionSetStateResponse) StatusCode

func (r PutTransactionSetStateResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL