oapi

package
v0.0.0-...-8c125ef Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package oapi provides primitives to interact with the openapi HTTP API.

Code generated by github.com/deepmap/oapi-codegen/v2 version v2.1.0 DO NOT EDIT.

Index

Constants

View Source
const (
	JWTAuthScopes = "JWTAuth.Scopes"
)

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 NewDeleteKeyRequest

func NewDeleteKeyRequest(server string, keyID KeyID) (*http.Request, error)

NewDeleteKeyRequest generates requests for DeleteKey

func NewGenerateKeyRequest

func NewGenerateKeyRequest(server string, body GenerateKeyJSONRequestBody) (*http.Request, error)

NewGenerateKeyRequest calls the generic GenerateKey builder with application/json body

func NewGenerateKeyRequestWithBody

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

NewGenerateKeyRequestWithBody generates requests for GenerateKey with any type of body

func NewGetCollectionHistoryRequest

func NewGetCollectionHistoryRequest(server string, params *GetCollectionHistoryParams) (*http.Request, error)

NewGetCollectionHistoryRequest generates requests for GetCollectionHistory

func NewGetConsumptionHistoryByAccountRequest

func NewGetConsumptionHistoryByAccountRequest(server string, params *GetConsumptionHistoryByAccountParams) (*http.Request, error)

NewGetConsumptionHistoryByAccountRequest generates requests for GetConsumptionHistoryByAccount

func NewGetConsumptionHistoryByKeyRequest

func NewGetConsumptionHistoryByKeyRequest(server string, keyID KeyID, params *GetConsumptionHistoryByKeyParams) (*http.Request, error)

NewGetConsumptionHistoryByKeyRequest generates requests for GetConsumptionHistoryByKey

func NewGetDepositHistoryRequest

func NewGetDepositHistoryRequest(server string, params *GetDepositHistoryParams) (*http.Request, error)

NewGetDepositHistoryRequest generates requests for GetDepositHistory

func NewGetKeyRequest

func NewGetKeyRequest(server string, keyID KeyID) (*http.Request, error)

NewGetKeyRequest generates requests for GetKey

func NewGetKeysRequest

func NewGetKeysRequest(server string) (*http.Request, error)

NewGetKeysRequest generates requests for GetKeys

func NewGetPendingRequestWithdrawRequest

func NewGetPendingRequestWithdrawRequest(server string) (*http.Request, error)

NewGetPendingRequestWithdrawRequest generates requests for GetPendingRequestWithdraw

func NewGetRUStatusRequest

func NewGetRUStatusRequest(server string) (*http.Request, error)

NewGetRUStatusRequest generates requests for GetRUStatus

func NewGetWithdrawalHistoryRequest

func NewGetWithdrawalHistoryRequest(server string, params *GetWithdrawalHistoryParams) (*http.Request, error)

NewGetWithdrawalHistoryRequest generates requests for GetWithdrawalHistory

func NewHealthCheckRequest

func NewHealthCheckRequest(server string, params *HealthCheckParams) (*http.Request, error)

NewHealthCheckRequest generates requests for HealthCheck

func NewRotateKeyRequest

func NewRotateKeyRequest(server string, keyID KeyID) (*http.Request, error)

NewRotateKeyRequest generates requests for RotateKey

func NewSIWEGetNonceRequest

func NewSIWEGetNonceRequest(server string) (*http.Request, error)

NewSIWEGetNonceRequest generates requests for SIWEGetNonce

func NewSIWEGetSessionRequest

func NewSIWEGetSessionRequest(server string) (*http.Request, error)

NewSIWEGetSessionRequest generates requests for SIWEGetSession

func NewSIWELogoutRequest

func NewSIWELogoutRequest(server string) (*http.Request, error)

NewSIWELogoutRequest generates requests for SIWELogout

func NewSIWEVerifyRequest

func NewSIWEVerifyRequest(server string, body SIWEVerifyJSONRequestBody) (*http.Request, error)

NewSIWEVerifyRequest calls the generic SIWEVerify builder with application/json body

func NewSIWEVerifyRequestWithBody

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

NewSIWEVerifyRequestWithBody generates requests for SIWEVerify with any type of body

func NewSetPendingRequestWithdrawRequest

func NewSetPendingRequestWithdrawRequest(server string, params *SetPendingRequestWithdrawParams) (*http.Request, error)

NewSetPendingRequestWithdrawRequest generates requests for SetPendingRequestWithdraw

func NewUpdateKeyInfoRequest

func NewUpdateKeyInfoRequest(server string, keyID KeyID, body UpdateKeyInfoJSONRequestBody) (*http.Request, error)

NewUpdateKeyInfoRequest calls the generic UpdateKeyInfo builder with application/json body

func NewUpdateKeyInfoRequestWithBody

func NewUpdateKeyInfoRequestWithBody(server string, keyID KeyID, contentType string, body io.Reader) (*http.Request, error)

NewUpdateKeyInfoRequestWithBody generates requests for UpdateKeyInfo 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.

func RegisterHandlers

func RegisterHandlers(router EchoRouter, si ServerInterface)

RegisterHandlers adds each server route to the EchoRouter.

func RegisterHandlersWithBaseURL

func RegisterHandlersWithBaseURL(router EchoRouter, si ServerInterface, baseURL string)

Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.

Types

type Amount

type Amount = float32

Amount defines model for amount.

type BadRequestRes

type BadRequestRes struct {
	Msg *string `json:"msg"`
}

BadRequestRes defines model for BadRequestRes.

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) DeleteKey

func (c *Client) DeleteKey(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GenerateKey

func (c *Client) GenerateKey(ctx context.Context, body GenerateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GenerateKeyWithBody

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

func (*Client) GetCollectionHistory

func (c *Client) GetCollectionHistory(ctx context.Context, params *GetCollectionHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsumptionHistoryByAccount

func (c *Client) GetConsumptionHistoryByAccount(ctx context.Context, params *GetConsumptionHistoryByAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetConsumptionHistoryByKey

func (c *Client) GetConsumptionHistoryByKey(ctx context.Context, keyID KeyID, params *GetConsumptionHistoryByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetDepositHistory

func (c *Client) GetDepositHistory(ctx context.Context, params *GetDepositHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetKey

func (c *Client) GetKey(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetKeys

func (c *Client) GetKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetPendingRequestWithdraw

func (c *Client) GetPendingRequestWithdraw(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetRUStatus

func (c *Client) GetRUStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetWithdrawalHistory

func (c *Client) GetWithdrawalHistory(ctx context.Context, params *GetWithdrawalHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) HealthCheck

func (c *Client) HealthCheck(ctx context.Context, params *HealthCheckParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) RotateKey

func (c *Client) RotateKey(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SIWEGetNonce

func (c *Client) SIWEGetNonce(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SIWEGetSession

func (c *Client) SIWEGetSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SIWELogout

func (c *Client) SIWELogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SIWEVerify

func (c *Client) SIWEVerify(ctx context.Context, body SIWEVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) SIWEVerifyWithBody

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

func (*Client) SetPendingRequestWithdraw

func (c *Client) SetPendingRequestWithdraw(ctx context.Context, params *SetPendingRequestWithdrawParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateKeyInfo

func (c *Client) UpdateKeyInfo(ctx context.Context, keyID KeyID, body UpdateKeyInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateKeyInfoWithBody

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

type ClientInterface

type ClientInterface interface {
	// HealthCheck request
	HealthCheck(ctx context.Context, params *HealthCheckParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetCollectionHistory request
	GetCollectionHistory(ctx context.Context, params *GetCollectionHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConsumptionHistoryByAccount request
	GetConsumptionHistoryByAccount(ctx context.Context, params *GetConsumptionHistoryByAccountParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetConsumptionHistoryByKey request
	GetConsumptionHistoryByKey(ctx context.Context, keyID KeyID, params *GetConsumptionHistoryByKeyParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetDepositHistory request
	GetDepositHistory(ctx context.Context, params *GetDepositHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetWithdrawalHistory request
	GetWithdrawalHistory(ctx context.Context, params *GetWithdrawalHistoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GenerateKeyWithBody request with any body
	GenerateKeyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	GenerateKey(ctx context.Context, body GenerateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteKey request
	DeleteKey(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetKey request
	GetKey(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// RotateKey request
	RotateKey(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateKeyInfoWithBody request with any body
	UpdateKeyInfoWithBody(ctx context.Context, keyID KeyID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateKeyInfo(ctx context.Context, keyID KeyID, body UpdateKeyInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetKeys request
	GetKeys(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetPendingRequestWithdraw request
	GetPendingRequestWithdraw(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SetPendingRequestWithdraw request
	SetPendingRequestWithdraw(ctx context.Context, params *SetPendingRequestWithdrawParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetRUStatus request
	GetRUStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SIWELogout request
	SIWELogout(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SIWEGetNonce request
	SIWEGetNonce(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SIWEGetSession request
	SIWEGetSession(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

	// SIWEVerifyWithBody request with any body
	SIWEVerifyWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	SIWEVerify(ctx context.Context, body SIWEVerifyJSONRequestBody, 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) DeleteKeyWithResponse

func (c *ClientWithResponses) DeleteKeyWithResponse(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*DeleteKeyResponse, error)

DeleteKeyWithResponse request returning *DeleteKeyResponse

func (*ClientWithResponses) GenerateKeyWithBodyWithResponse

func (c *ClientWithResponses) GenerateKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateKeyResponse, error)

GenerateKeyWithBodyWithResponse request with arbitrary body returning *GenerateKeyResponse

func (*ClientWithResponses) GenerateKeyWithResponse

func (c *ClientWithResponses) GenerateKeyWithResponse(ctx context.Context, body GenerateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateKeyResponse, error)

func (*ClientWithResponses) GetCollectionHistoryWithResponse

func (c *ClientWithResponses) GetCollectionHistoryWithResponse(ctx context.Context, params *GetCollectionHistoryParams, reqEditors ...RequestEditorFn) (*GetCollectionHistoryResponse, error)

GetCollectionHistoryWithResponse request returning *GetCollectionHistoryResponse

func (*ClientWithResponses) GetConsumptionHistoryByAccountWithResponse

func (c *ClientWithResponses) GetConsumptionHistoryByAccountWithResponse(ctx context.Context, params *GetConsumptionHistoryByAccountParams, reqEditors ...RequestEditorFn) (*GetConsumptionHistoryByAccountResponse, error)

GetConsumptionHistoryByAccountWithResponse request returning *GetConsumptionHistoryByAccountResponse

func (*ClientWithResponses) GetConsumptionHistoryByKeyWithResponse

func (c *ClientWithResponses) GetConsumptionHistoryByKeyWithResponse(ctx context.Context, keyID KeyID, params *GetConsumptionHistoryByKeyParams, reqEditors ...RequestEditorFn) (*GetConsumptionHistoryByKeyResponse, error)

GetConsumptionHistoryByKeyWithResponse request returning *GetConsumptionHistoryByKeyResponse

func (*ClientWithResponses) GetDepositHistoryWithResponse

func (c *ClientWithResponses) GetDepositHistoryWithResponse(ctx context.Context, params *GetDepositHistoryParams, reqEditors ...RequestEditorFn) (*GetDepositHistoryResponse, error)

GetDepositHistoryWithResponse request returning *GetDepositHistoryResponse

func (*ClientWithResponses) GetKeyWithResponse

func (c *ClientWithResponses) GetKeyWithResponse(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*GetKeyResponse, error)

GetKeyWithResponse request returning *GetKeyResponse

func (*ClientWithResponses) GetKeysWithResponse

func (c *ClientWithResponses) GetKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetKeysResponse, error)

GetKeysWithResponse request returning *GetKeysResponse

func (*ClientWithResponses) GetPendingRequestWithdrawWithResponse

func (c *ClientWithResponses) GetPendingRequestWithdrawWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPendingRequestWithdrawResponse, error)

GetPendingRequestWithdrawWithResponse request returning *GetPendingRequestWithdrawResponse

func (*ClientWithResponses) GetRUStatusWithResponse

func (c *ClientWithResponses) GetRUStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRUStatusResponse, error)

GetRUStatusWithResponse request returning *GetRUStatusResponse

func (*ClientWithResponses) GetWithdrawalHistoryWithResponse

func (c *ClientWithResponses) GetWithdrawalHistoryWithResponse(ctx context.Context, params *GetWithdrawalHistoryParams, reqEditors ...RequestEditorFn) (*GetWithdrawalHistoryResponse, error)

GetWithdrawalHistoryWithResponse request returning *GetWithdrawalHistoryResponse

func (*ClientWithResponses) HealthCheckWithResponse

func (c *ClientWithResponses) HealthCheckWithResponse(ctx context.Context, params *HealthCheckParams, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

HealthCheckWithResponse request returning *HealthCheckResponse

func (*ClientWithResponses) RotateKeyWithResponse

func (c *ClientWithResponses) RotateKeyWithResponse(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*RotateKeyResponse, error)

RotateKeyWithResponse request returning *RotateKeyResponse

func (*ClientWithResponses) SIWEGetNonceWithResponse

func (c *ClientWithResponses) SIWEGetNonceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SIWEGetNonceResponse, error)

SIWEGetNonceWithResponse request returning *SIWEGetNonceResponse

func (*ClientWithResponses) SIWEGetSessionWithResponse

func (c *ClientWithResponses) SIWEGetSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SIWEGetSessionResponse, error)

SIWEGetSessionWithResponse request returning *SIWEGetSessionResponse

func (*ClientWithResponses) SIWELogoutWithResponse

func (c *ClientWithResponses) SIWELogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SIWELogoutResponse, error)

SIWELogoutWithResponse request returning *SIWELogoutResponse

func (*ClientWithResponses) SIWEVerifyWithBodyWithResponse

func (c *ClientWithResponses) SIWEVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SIWEVerifyResponse, error)

SIWEVerifyWithBodyWithResponse request with arbitrary body returning *SIWEVerifyResponse

func (*ClientWithResponses) SIWEVerifyWithResponse

func (c *ClientWithResponses) SIWEVerifyWithResponse(ctx context.Context, body SIWEVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*SIWEVerifyResponse, error)

func (*ClientWithResponses) SetPendingRequestWithdrawWithResponse

func (c *ClientWithResponses) SetPendingRequestWithdrawWithResponse(ctx context.Context, params *SetPendingRequestWithdrawParams, reqEditors ...RequestEditorFn) (*SetPendingRequestWithdrawResponse, error)

SetPendingRequestWithdrawWithResponse request returning *SetPendingRequestWithdrawResponse

func (*ClientWithResponses) UpdateKeyInfoWithBodyWithResponse

func (c *ClientWithResponses) UpdateKeyInfoWithBodyWithResponse(ctx context.Context, keyID KeyID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateKeyInfoResponse, error)

UpdateKeyInfoWithBodyWithResponse request with arbitrary body returning *UpdateKeyInfoResponse

func (*ClientWithResponses) UpdateKeyInfoWithResponse

func (c *ClientWithResponses) UpdateKeyInfoWithResponse(ctx context.Context, keyID KeyID, body UpdateKeyInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateKeyInfoResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// HealthCheckWithResponse request
	HealthCheckWithResponse(ctx context.Context, params *HealthCheckParams, reqEditors ...RequestEditorFn) (*HealthCheckResponse, error)

	// GetCollectionHistoryWithResponse request
	GetCollectionHistoryWithResponse(ctx context.Context, params *GetCollectionHistoryParams, reqEditors ...RequestEditorFn) (*GetCollectionHistoryResponse, error)

	// GetConsumptionHistoryByAccountWithResponse request
	GetConsumptionHistoryByAccountWithResponse(ctx context.Context, params *GetConsumptionHistoryByAccountParams, reqEditors ...RequestEditorFn) (*GetConsumptionHistoryByAccountResponse, error)

	// GetConsumptionHistoryByKeyWithResponse request
	GetConsumptionHistoryByKeyWithResponse(ctx context.Context, keyID KeyID, params *GetConsumptionHistoryByKeyParams, reqEditors ...RequestEditorFn) (*GetConsumptionHistoryByKeyResponse, error)

	// GetDepositHistoryWithResponse request
	GetDepositHistoryWithResponse(ctx context.Context, params *GetDepositHistoryParams, reqEditors ...RequestEditorFn) (*GetDepositHistoryResponse, error)

	// GetWithdrawalHistoryWithResponse request
	GetWithdrawalHistoryWithResponse(ctx context.Context, params *GetWithdrawalHistoryParams, reqEditors ...RequestEditorFn) (*GetWithdrawalHistoryResponse, error)

	// GenerateKeyWithBodyWithResponse request with any body
	GenerateKeyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*GenerateKeyResponse, error)

	GenerateKeyWithResponse(ctx context.Context, body GenerateKeyJSONRequestBody, reqEditors ...RequestEditorFn) (*GenerateKeyResponse, error)

	// DeleteKeyWithResponse request
	DeleteKeyWithResponse(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*DeleteKeyResponse, error)

	// GetKeyWithResponse request
	GetKeyWithResponse(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*GetKeyResponse, error)

	// RotateKeyWithResponse request
	RotateKeyWithResponse(ctx context.Context, keyID KeyID, reqEditors ...RequestEditorFn) (*RotateKeyResponse, error)

	// UpdateKeyInfoWithBodyWithResponse request with any body
	UpdateKeyInfoWithBodyWithResponse(ctx context.Context, keyID KeyID, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateKeyInfoResponse, error)

	UpdateKeyInfoWithResponse(ctx context.Context, keyID KeyID, body UpdateKeyInfoJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateKeyInfoResponse, error)

	// GetKeysWithResponse request
	GetKeysWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetKeysResponse, error)

	// GetPendingRequestWithdrawWithResponse request
	GetPendingRequestWithdrawWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetPendingRequestWithdrawResponse, error)

	// SetPendingRequestWithdrawWithResponse request
	SetPendingRequestWithdrawWithResponse(ctx context.Context, params *SetPendingRequestWithdrawParams, reqEditors ...RequestEditorFn) (*SetPendingRequestWithdrawResponse, error)

	// GetRUStatusWithResponse request
	GetRUStatusWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetRUStatusResponse, error)

	// SIWELogoutWithResponse request
	SIWELogoutWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SIWELogoutResponse, error)

	// SIWEGetNonceWithResponse request
	SIWEGetNonceWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SIWEGetNonceResponse, error)

	// SIWEGetSessionWithResponse request
	SIWEGetSessionWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*SIWEGetSessionResponse, error)

	// SIWEVerifyWithBodyWithResponse request with any body
	SIWEVerifyWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*SIWEVerifyResponse, error)

	SIWEVerifyWithResponse(ctx context.Context, body SIWEVerifyJSONRequestBody, reqEditors ...RequestEditorFn) (*SIWEVerifyResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CollectionHistoryResponse

type CollectionHistoryResponse struct {
	Count       *uint               `json:"count,omitempty"`
	List        *[]CollectionRecord `json:"list,omitempty"`
	PageCurrent *int64              `json:"page_current,omitempty"`
	PageMax     *int64              `json:"page_max,omitempty"`
}

CollectionHistoryResponse defines model for CollectionHistoryResponse.

type CollectionRecord

type CollectionRecord struct {
	Amount *float32 `json:"amount,omitempty"`

	// BlockTimestamp Date of the record's block timestamp, in milliseconds.
	BlockTimestamp *int64  `json:"block_timestamp,omitempty"`
	Index          *int    `json:"index,omitempty"`
	TxHash         *string `json:"tx_hash,omitempty"`
}

CollectionRecord defines model for CollectionRecord.

type ConsumptionLogByKey

type ConsumptionLogByKey struct {
	// ApiCalls Total number of API calls made
	ApiCalls *int64 `json:"api_calls,omitempty"`

	// ConsumptionDate Date of which the consumption is calculated for. timestamp in milliseconds.
	ConsumptionDate *int64 `json:"consumption_date,omitempty"`

	// KeyName Key Name
	KeyName *string `json:"key_name,omitempty"`

	// RuUsed Total RU used
	RuUsed *int64 `json:"ru_used,omitempty"`
}

ConsumptionLogByKey defines model for ConsumptionLogByKey.

type ConsumptionLogResponse

type ConsumptionLogResponse struct {
	History *[]ConsumptionLogByKey `json:"history,omitempty"`

	// Since Date of which the consumption period starts. timestamp in milliseconds.
	Since *int64 `json:"since,omitempty"`

	// Until Date of which the consumption period ends. timestamp in milliseconds.
	Until *int64 `json:"until,omitempty"`
}

ConsumptionLogResponse defines model for ConsumptionLogResponse.

type DeleteKeyResponse

type DeleteKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON401      *BadRequestRes
	JSON404      *BadRequestRes
}

func ParseDeleteKeyResponse

func ParseDeleteKeyResponse(rsp *http.Response) (*DeleteKeyResponse, error)

ParseDeleteKeyResponse parses an HTTP response from a DeleteKeyWithResponse call

func (DeleteKeyResponse) Status

func (r DeleteKeyResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteKeyResponse) StatusCode

func (r DeleteKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DepositHistoryResponse

type DepositHistoryResponse struct {
	Count       *uint            `json:"count,omitempty"`
	List        *[]DepositRecord `json:"list,omitempty"`
	PageCurrent *int64           `json:"page_current,omitempty"`
	PageMax     *int64           `json:"page_max,omitempty"`
}

DepositHistoryResponse defines model for DepositHistoryResponse.

type DepositRecord

type DepositRecord struct {
	Amount *float32 `json:"amount,omitempty"`

	// BlockTimestamp Date of the record's block timestamp, in milliseconds.
	BlockTimestamp *int64  `json:"block_timestamp,omitempty"`
	Index          *int    `json:"index,omitempty"`
	TxHash         *string `json:"tx_hash,omitempty"`
}

DepositRecord defines model for DepositRecord.

type EchoRouter

type EchoRouter interface {
	CONNECT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	HEAD(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	OPTIONS(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PATCH(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	TRACE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration

type GenerateKeyJSONRequestBody

type GenerateKeyJSONRequestBody = KeyInfoBody

GenerateKeyJSONRequestBody defines body for GenerateKey for application/json ContentType.

type GenerateKeyResponse

type GenerateKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Key
	JSON400      *BadRequestRes
	JSON401      *BadRequestRes
}

func ParseGenerateKeyResponse

func ParseGenerateKeyResponse(rsp *http.Response) (*GenerateKeyResponse, error)

ParseGenerateKeyResponse parses an HTTP response from a GenerateKeyWithResponse call

func (GenerateKeyResponse) Status

func (r GenerateKeyResponse) Status() string

Status returns HTTPResponse.Status

func (GenerateKeyResponse) StatusCode

func (r GenerateKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetCollectionHistoryParams

type GetCollectionHistoryParams struct {
	// Page The page number
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Limit Limit the number of items per page
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

GetCollectionHistoryParams defines parameters for GetCollectionHistory.

type GetCollectionHistoryResponse

type GetCollectionHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *CollectionHistoryResponse
	JSON401      *BadRequestRes
	JSON500      *BadRequestRes
}

func ParseGetCollectionHistoryResponse

func ParseGetCollectionHistoryResponse(rsp *http.Response) (*GetCollectionHistoryResponse, error)

ParseGetCollectionHistoryResponse parses an HTTP response from a GetCollectionHistoryWithResponse call

func (GetCollectionHistoryResponse) Status

Status returns HTTPResponse.Status

func (GetCollectionHistoryResponse) StatusCode

func (r GetCollectionHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetConsumptionHistoryByAccountParams

type GetConsumptionHistoryByAccountParams struct {
	// Since Since timestamp (milliseconds)
	Since *Since `form:"since,omitempty" json:"since,omitempty"`

	// Until Until timestamp (milliseconds)
	Until *Until `form:"until,omitempty" json:"until,omitempty"`

	// Merge Whether to merge collection stats
	Merge *Merge `form:"merge,omitempty" json:"merge,omitempty"`
}

GetConsumptionHistoryByAccountParams defines parameters for GetConsumptionHistoryByAccount.

type GetConsumptionHistoryByAccountResponse

type GetConsumptionHistoryByAccountResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ConsumptionLogResponse
	JSON400      *BadRequestRes
	JSON401      *BadRequestRes
}

func ParseGetConsumptionHistoryByAccountResponse

func ParseGetConsumptionHistoryByAccountResponse(rsp *http.Response) (*GetConsumptionHistoryByAccountResponse, error)

ParseGetConsumptionHistoryByAccountResponse parses an HTTP response from a GetConsumptionHistoryByAccountWithResponse call

func (GetConsumptionHistoryByAccountResponse) Status

Status returns HTTPResponse.Status

func (GetConsumptionHistoryByAccountResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type GetConsumptionHistoryByKeyParams

type GetConsumptionHistoryByKeyParams struct {
	// Since Since timestamp (milliseconds)
	Since *Since `form:"since,omitempty" json:"since,omitempty"`

	// Until Until timestamp (milliseconds)
	Until *Until `form:"until,omitempty" json:"until,omitempty"`

	// Merge Whether to merge collection stats
	Merge *Merge `form:"merge,omitempty" json:"merge,omitempty"`
}

GetConsumptionHistoryByKeyParams defines parameters for GetConsumptionHistoryByKey.

type GetConsumptionHistoryByKeyResponse

type GetConsumptionHistoryByKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ConsumptionLogResponse
	JSON400      *BadRequestRes
	JSON401      *BadRequestRes
}

func ParseGetConsumptionHistoryByKeyResponse

func ParseGetConsumptionHistoryByKeyResponse(rsp *http.Response) (*GetConsumptionHistoryByKeyResponse, error)

ParseGetConsumptionHistoryByKeyResponse parses an HTTP response from a GetConsumptionHistoryByKeyWithResponse call

func (GetConsumptionHistoryByKeyResponse) Status

Status returns HTTPResponse.Status

func (GetConsumptionHistoryByKeyResponse) StatusCode

func (r GetConsumptionHistoryByKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDepositHistoryParams

type GetDepositHistoryParams struct {
	// Page The page number
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Limit Limit the number of items per page
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

GetDepositHistoryParams defines parameters for GetDepositHistory.

type GetDepositHistoryResponse

type GetDepositHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *DepositHistoryResponse
	JSON401      *BadRequestRes
	JSON500      *BadRequestRes
}

func ParseGetDepositHistoryResponse

func ParseGetDepositHistoryResponse(rsp *http.Response) (*GetDepositHistoryResponse, error)

ParseGetDepositHistoryResponse parses an HTTP response from a GetDepositHistoryWithResponse call

func (GetDepositHistoryResponse) Status

func (r GetDepositHistoryResponse) Status() string

Status returns HTTPResponse.Status

func (GetDepositHistoryResponse) StatusCode

func (r GetDepositHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetKeyResponse

type GetKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Key
	JSON400      *BadRequestRes
	JSON401      *BadRequestRes
	JSON404      *BadRequestRes
}

func ParseGetKeyResponse

func ParseGetKeyResponse(rsp *http.Response) (*GetKeyResponse, error)

ParseGetKeyResponse parses an HTTP response from a GetKeyWithResponse call

func (GetKeyResponse) Status

func (r GetKeyResponse) Status() string

Status returns HTTPResponse.Status

func (GetKeyResponse) StatusCode

func (r GetKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetKeysResponse

type GetKeysResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Keys
	JSON400      *BadRequestRes
	JSON401      *BadRequestRes
}

func ParseGetKeysResponse

func ParseGetKeysResponse(rsp *http.Response) (*GetKeysResponse, error)

ParseGetKeysResponse parses an HTTP response from a GetKeysWithResponse call

func (GetKeysResponse) Status

func (r GetKeysResponse) Status() string

Status returns HTTPResponse.Status

func (GetKeysResponse) StatusCode

func (r GetKeysResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPendingRequestWithdrawResponse

type GetPendingRequestWithdrawResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *GetRequestWithdrawResponse
	JSON401      *BadRequestRes
	JSON500      *BadRequestRes
}

func ParseGetPendingRequestWithdrawResponse

func ParseGetPendingRequestWithdrawResponse(rsp *http.Response) (*GetPendingRequestWithdrawResponse, error)

ParseGetPendingRequestWithdrawResponse parses an HTTP response from a GetPendingRequestWithdrawWithResponse call

func (GetPendingRequestWithdrawResponse) Status

Status returns HTTPResponse.Status

func (GetPendingRequestWithdrawResponse) StatusCode

func (r GetPendingRequestWithdrawResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRUStatusResponse

type GetRUStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *RUStatus
	JSON400      *BadRequestRes
	JSON401      *BadRequestRes
}

func ParseGetRUStatusResponse

func ParseGetRUStatusResponse(rsp *http.Response) (*GetRUStatusResponse, error)

ParseGetRUStatusResponse parses an HTTP response from a GetRUStatusWithResponse call

func (GetRUStatusResponse) Status

func (r GetRUStatusResponse) Status() string

Status returns HTTPResponse.Status

func (GetRUStatusResponse) StatusCode

func (r GetRUStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetRequestWithdrawResponse

type GetRequestWithdrawResponse struct {
	Amount *float32 `json:"amount,omitempty"`
}

GetRequestWithdrawResponse defines model for GetRequestWithdrawResponse.

type GetWithdrawalHistoryParams

type GetWithdrawalHistoryParams struct {
	// Page The page number
	Page *Page `form:"page,omitempty" json:"page,omitempty"`

	// Limit Limit the number of items per page
	Limit *Limit `form:"limit,omitempty" json:"limit,omitempty"`
}

GetWithdrawalHistoryParams defines parameters for GetWithdrawalHistory.

type GetWithdrawalHistoryResponse

type GetWithdrawalHistoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *WithdrawalHistoryResponse
	JSON401      *BadRequestRes
	JSON500      *BadRequestRes
}

func ParseGetWithdrawalHistoryResponse

func ParseGetWithdrawalHistoryResponse(rsp *http.Response) (*GetWithdrawalHistoryResponse, error)

ParseGetWithdrawalHistoryResponse parses an HTTP response from a GetWithdrawalHistoryWithResponse call

func (GetWithdrawalHistoryResponse) Status

Status returns HTTPResponse.Status

func (GetWithdrawalHistoryResponse) StatusCode

func (r GetWithdrawalHistoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HealthCheckParams

type HealthCheckParams struct {
	Type *HealthCheckParamsType `form:"type,omitempty" json:"type,omitempty"`
}

HealthCheckParams defines parameters for HealthCheck.

type HealthCheckParamsType

type HealthCheckParamsType string

HealthCheckParamsType defines parameters for HealthCheck.

const (
	Liveness  HealthCheckParamsType = "liveness"
	Readiness HealthCheckParamsType = "readiness"
)

Defines values for HealthCheckParamsType.

type HealthCheckResponse

type HealthCheckResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequestRes
	JSON404      *BadRequestRes
}

func ParseHealthCheckResponse

func ParseHealthCheckResponse(rsp *http.Response) (*HealthCheckResponse, error)

ParseHealthCheckResponse parses an HTTP response from a HealthCheckWithResponse call

func (HealthCheckResponse) Status

func (r HealthCheckResponse) Status() string

Status returns HTTPResponse.Status

func (HealthCheckResponse) StatusCode

func (r HealthCheckResponse) 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 Key

type Key struct {
	// ApiCallsCurrent API calls count during this round
	ApiCallsCurrent *int64 `json:"api_calls_current,omitempty"`

	// ApiCallsTotal API calls count since this key's creation
	ApiCallsTotal *int64  `json:"api_calls_total,omitempty"`
	Id            *string `json:"id,omitempty"`
	Key           *string `json:"key,omitempty"`
	Name          *string `json:"name,omitempty"`

	// RuUsedCurrent RU used during this round
	RuUsedCurrent *int64 `json:"ru_used_current,omitempty"`

	// RuUsedTotal RU used since this key's creation
	RuUsedTotal *int64 `json:"ru_used_total,omitempty"`
}

Key defines model for Key.

type KeyID

type KeyID = string

KeyID defines model for keyID.

type KeyInfoBody

type KeyInfoBody struct {
	Name *string `json:"name,omitempty"`
}

KeyInfoBody defines model for KeyInfoBody.

type Keys

type Keys = []Key

Keys defines model for Keys.

type Limit

type Limit = uint

Limit defines model for limit.

type Merge

type Merge = bool

Merge defines model for merge.

type Page

type Page = int64

Page defines model for page.

type RUStatus

type RUStatus struct {
	// ApiCallsCurrent API calls count during this round
	ApiCallsCurrent *int64 `json:"api_calls_current,omitempty"`

	// ApiCallsTotal API calls count since this key's creation
	ApiCallsTotal *int64 `json:"api_calls_total,omitempty"`

	// RuLimit Current RU limit
	RuLimit *int64 `json:"ru_limit,omitempty"`

	// RuUsedCurrent RU used during this round
	RuUsedCurrent *int64 `json:"ru_used_current,omitempty"`

	// RuUsedTotal RU used since this key's creation
	RuUsedTotal *int64 `json:"ru_used_total,omitempty"`
}

RUStatus defines model for RUStatus.

type RequestEditorFn

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

RequestEditorFn is the function signature for the RequestEditor callback function

type RotateKeyResponse

type RotateKeyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Key
	JSON401      *BadRequestRes
	JSON404      *BadRequestRes
}

func ParseRotateKeyResponse

func ParseRotateKeyResponse(rsp *http.Response) (*RotateKeyResponse, error)

ParseRotateKeyResponse parses an HTTP response from a RotateKeyWithResponse call

func (RotateKeyResponse) Status

func (r RotateKeyResponse) Status() string

Status returns HTTPResponse.Status

func (RotateKeyResponse) StatusCode

func (r RotateKeyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SIWEGetNonceResponse

type SIWEGetNonceResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON500      *BadRequestRes
}

func ParseSIWEGetNonceResponse

func ParseSIWEGetNonceResponse(rsp *http.Response) (*SIWEGetNonceResponse, error)

ParseSIWEGetNonceResponse parses an HTTP response from a SIWEGetNonceWithResponse call

func (SIWEGetNonceResponse) Status

func (r SIWEGetNonceResponse) Status() string

Status returns HTTPResponse.Status

func (SIWEGetNonceResponse) StatusCode

func (r SIWEGetNonceResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SIWEGetSessionResponse

type SIWEGetSessionResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *SIWESessionResponse
	JSON500      *BadRequestRes
}

func ParseSIWEGetSessionResponse

func ParseSIWEGetSessionResponse(rsp *http.Response) (*SIWEGetSessionResponse, error)

ParseSIWEGetSessionResponse parses an HTTP response from a SIWEGetSessionWithResponse call

func (SIWEGetSessionResponse) Status

func (r SIWEGetSessionResponse) Status() string

Status returns HTTPResponse.Status

func (SIWEGetSessionResponse) StatusCode

func (r SIWEGetSessionResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SIWELogoutResponse

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

func ParseSIWELogoutResponse

func ParseSIWELogoutResponse(rsp *http.Response) (*SIWELogoutResponse, error)

ParseSIWELogoutResponse parses an HTTP response from a SIWELogoutWithResponse call

func (SIWELogoutResponse) Status

func (r SIWELogoutResponse) Status() string

Status returns HTTPResponse.Status

func (SIWELogoutResponse) StatusCode

func (r SIWELogoutResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SIWESessionResponse

type SIWESessionResponse struct {
	Address *string `json:"address,omitempty"`
	ChainId *int    `json:"chainId,omitempty"`
}

SIWESessionResponse defines model for SIWESessionResponse.

type SIWEVerifyBody

type SIWEVerifyBody struct {
	Message   *string `json:"message"`
	Signature *string `json:"signature"`
}

SIWEVerifyBody defines model for SIWEVerifyBody.

type SIWEVerifyJSONRequestBody

type SIWEVerifyJSONRequestBody = SIWEVerifyBody

SIWEVerifyJSONRequestBody defines body for SIWEVerify for application/json ContentType.

type SIWEVerifyResponse

type SIWEVerifyResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequestRes
	JSON401      *BadRequestRes
	JSON500      *BadRequestRes
}

func ParseSIWEVerifyResponse

func ParseSIWEVerifyResponse(rsp *http.Response) (*SIWEVerifyResponse, error)

ParseSIWEVerifyResponse parses an HTTP response from a SIWEVerifyWithResponse call

func (SIWEVerifyResponse) Status

func (r SIWEVerifyResponse) Status() string

Status returns HTTPResponse.Status

func (SIWEVerifyResponse) StatusCode

func (r SIWEVerifyResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ServerInterface

type ServerInterface interface {
	// health check
	// (GET /health)
	HealthCheck(ctx echo.Context, params HealthCheckParams) error
	// Get collection history
	// (GET /history/collection)
	GetCollectionHistory(ctx echo.Context, params GetCollectionHistoryParams) error
	// Get consumption history of a specific account
	// (GET /history/consumption)
	GetConsumptionHistoryByAccount(ctx echo.Context, params GetConsumptionHistoryByAccountParams) error
	// Get consumption history of a specific key
	// (GET /history/consumption/{keyID})
	GetConsumptionHistoryByKey(ctx echo.Context, keyID KeyID, params GetConsumptionHistoryByKeyParams) error
	// Get deposit history
	// (GET /history/deposit)
	GetDepositHistory(ctx echo.Context, params GetDepositHistoryParams) error
	// Get withdrawal history
	// (GET /history/withdrawal)
	GetWithdrawalHistory(ctx echo.Context, params GetWithdrawalHistoryParams) error
	// Generate an API Key
	// (POST /key)
	GenerateKey(ctx echo.Context) error
	// Delete an API Key
	// (DELETE /key/{keyID})
	DeleteKey(ctx echo.Context, keyID KeyID) error
	// Get an API Key' info
	// (GET /key/{keyID})
	GetKey(ctx echo.Context, keyID KeyID) error
	// Reassign the API Key's secret
	// (PATCH /key/{keyID})
	RotateKey(ctx echo.Context, keyID KeyID) error
	// Update an API Key's info
	// (PUT /key/{keyID})
	UpdateKeyInfo(ctx echo.Context, keyID KeyID) error
	// List API Keys of current account
	// (GET /keys)
	GetKeys(ctx echo.Context) error
	// Get current withdraw request
	// (GET /request/withdraw)
	GetPendingRequestWithdraw(ctx echo.Context) error
	// Request withdraw tokens at the end of this epoch
	// (POST /request/withdraw)
	SetPendingRequestWithdraw(ctx echo.Context, params SetPendingRequestWithdrawParams) error
	// Get account usage
	// (GET /ru/status)
	GetRUStatus(ctx echo.Context) error
	// SIWE logout
	// (GET /users/siwe/logout)
	SIWELogout(ctx echo.Context) error
	// Get SIWE nonce
	// (GET /users/siwe/nonce)
	SIWEGetNonce(ctx echo.Context) error
	// Get SIWE session
	// (GET /users/siwe/session)
	SIWEGetSession(ctx echo.Context) error
	// Verify SIWE (login)
	// (POST /users/siwe/verify)
	SIWEVerify(ctx echo.Context) error
}

ServerInterface represents all server handlers.

type ServerInterfaceWrapper

type ServerInterfaceWrapper struct {
	Handler ServerInterface
}

ServerInterfaceWrapper converts echo contexts to parameters.

func (*ServerInterfaceWrapper) DeleteKey

func (w *ServerInterfaceWrapper) DeleteKey(ctx echo.Context) error

DeleteKey converts echo context to params.

func (*ServerInterfaceWrapper) GenerateKey

func (w *ServerInterfaceWrapper) GenerateKey(ctx echo.Context) error

GenerateKey converts echo context to params.

func (*ServerInterfaceWrapper) GetCollectionHistory

func (w *ServerInterfaceWrapper) GetCollectionHistory(ctx echo.Context) error

GetCollectionHistory converts echo context to params.

func (*ServerInterfaceWrapper) GetConsumptionHistoryByAccount

func (w *ServerInterfaceWrapper) GetConsumptionHistoryByAccount(ctx echo.Context) error

GetConsumptionHistoryByAccount converts echo context to params.

func (*ServerInterfaceWrapper) GetConsumptionHistoryByKey

func (w *ServerInterfaceWrapper) GetConsumptionHistoryByKey(ctx echo.Context) error

GetConsumptionHistoryByKey converts echo context to params.

func (*ServerInterfaceWrapper) GetDepositHistory

func (w *ServerInterfaceWrapper) GetDepositHistory(ctx echo.Context) error

GetDepositHistory converts echo context to params.

func (*ServerInterfaceWrapper) GetKey

func (w *ServerInterfaceWrapper) GetKey(ctx echo.Context) error

GetKey converts echo context to params.

func (*ServerInterfaceWrapper) GetKeys

func (w *ServerInterfaceWrapper) GetKeys(ctx echo.Context) error

GetKeys converts echo context to params.

func (*ServerInterfaceWrapper) GetPendingRequestWithdraw

func (w *ServerInterfaceWrapper) GetPendingRequestWithdraw(ctx echo.Context) error

GetPendingRequestWithdraw converts echo context to params.

func (*ServerInterfaceWrapper) GetRUStatus

func (w *ServerInterfaceWrapper) GetRUStatus(ctx echo.Context) error

GetRUStatus converts echo context to params.

func (*ServerInterfaceWrapper) GetWithdrawalHistory

func (w *ServerInterfaceWrapper) GetWithdrawalHistory(ctx echo.Context) error

GetWithdrawalHistory converts echo context to params.

func (*ServerInterfaceWrapper) HealthCheck

func (w *ServerInterfaceWrapper) HealthCheck(ctx echo.Context) error

HealthCheck converts echo context to params.

func (*ServerInterfaceWrapper) RotateKey

func (w *ServerInterfaceWrapper) RotateKey(ctx echo.Context) error

RotateKey converts echo context to params.

func (*ServerInterfaceWrapper) SIWEGetNonce

func (w *ServerInterfaceWrapper) SIWEGetNonce(ctx echo.Context) error

SIWEGetNonce converts echo context to params.

func (*ServerInterfaceWrapper) SIWEGetSession

func (w *ServerInterfaceWrapper) SIWEGetSession(ctx echo.Context) error

SIWEGetSession converts echo context to params.

func (*ServerInterfaceWrapper) SIWELogout

func (w *ServerInterfaceWrapper) SIWELogout(ctx echo.Context) error

SIWELogout converts echo context to params.

func (*ServerInterfaceWrapper) SIWEVerify

func (w *ServerInterfaceWrapper) SIWEVerify(ctx echo.Context) error

SIWEVerify converts echo context to params.

func (*ServerInterfaceWrapper) SetPendingRequestWithdraw

func (w *ServerInterfaceWrapper) SetPendingRequestWithdraw(ctx echo.Context) error

SetPendingRequestWithdraw converts echo context to params.

func (*ServerInterfaceWrapper) UpdateKeyInfo

func (w *ServerInterfaceWrapper) UpdateKeyInfo(ctx echo.Context) error

UpdateKeyInfo converts echo context to params.

type SetPendingRequestWithdrawParams

type SetPendingRequestWithdrawParams struct {
	// Amount Amount of tokens
	Amount Amount `form:"amount" json:"amount"`
}

SetPendingRequestWithdrawParams defines parameters for SetPendingRequestWithdraw.

type SetPendingRequestWithdrawResponse

type SetPendingRequestWithdrawResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *BadRequestRes
	JSON401      *BadRequestRes
	JSON500      *BadRequestRes
}

func ParseSetPendingRequestWithdrawResponse

func ParseSetPendingRequestWithdrawResponse(rsp *http.Response) (*SetPendingRequestWithdrawResponse, error)

ParseSetPendingRequestWithdrawResponse parses an HTTP response from a SetPendingRequestWithdrawWithResponse call

func (SetPendingRequestWithdrawResponse) Status

Status returns HTTPResponse.Status

func (SetPendingRequestWithdrawResponse) StatusCode

func (r SetPendingRequestWithdrawResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Since

type Since = int64

Since defines model for since.

type Until

type Until = int64

Until defines model for until.

type UpdateKeyInfoJSONRequestBody

type UpdateKeyInfoJSONRequestBody = KeyInfoBody

UpdateKeyInfoJSONRequestBody defines body for UpdateKeyInfo for application/json ContentType.

type UpdateKeyInfoResponse

type UpdateKeyInfoResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Key
	JSON401      *BadRequestRes
	JSON404      *BadRequestRes
}

func ParseUpdateKeyInfoResponse

func ParseUpdateKeyInfoResponse(rsp *http.Response) (*UpdateKeyInfoResponse, error)

ParseUpdateKeyInfoResponse parses an HTTP response from a UpdateKeyInfoWithResponse call

func (UpdateKeyInfoResponse) Status

func (r UpdateKeyInfoResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateKeyInfoResponse) StatusCode

func (r UpdateKeyInfoResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UsersGetNonceResult

type UsersGetNonceResult struct {
	Nonce *string `json:"nonce"`
}

UsersGetNonceResult defines model for UsersGetNonceResult.

type WithdrawalHistoryResponse

type WithdrawalHistoryResponse struct {
	Count       *uint               `json:"count,omitempty"`
	List        *[]WithdrawalRecord `json:"list,omitempty"`
	PageCurrent *int64              `json:"page_current,omitempty"`
	PageMax     *int64              `json:"page_max,omitempty"`
}

WithdrawalHistoryResponse defines model for WithdrawalHistoryResponse.

type WithdrawalRecord

type WithdrawalRecord struct {
	Amount *float32 `json:"amount,omitempty"`

	// BlockTimestamp Date of the record's block timestamp, in milliseconds.
	BlockTimestamp *int64   `json:"block_timestamp,omitempty"`
	Fee            *float32 `json:"fee,omitempty"`
	Index          *int     `json:"index,omitempty"`
	TxHash         *string  `json:"tx_hash,omitempty"`

	// User Token been withdrew to which address
	User *string `json:"user,omitempty"`
}

WithdrawalRecord defines model for WithdrawalRecord.

Jump to

Keyboard shortcuts

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