quicknode

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

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

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

Index

Constants

View Source
const (
	Api_keyScopes     = "api_key.Scopes"
	Bearer_authScopes = "bearer_auth.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 NewArchiveEndpointRequest added in v0.5.2

func NewArchiveEndpointRequest(server string, id string) (*http.Request, error)

NewArchiveEndpointRequest generates requests for ArchiveEndpoint

func NewChainsRequest added in v0.5.2

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

NewChainsRequest generates requests for Chains

func NewCreateAuthenticationTokenRequest added in v0.5.2

func NewCreateAuthenticationTokenRequest(server string, id string) (*http.Request, error)

NewCreateAuthenticationTokenRequest generates requests for CreateAuthenticationToken

func NewCreateDomainMaskRequest added in v0.5.2

func NewCreateDomainMaskRequest(server string, id string, body CreateDomainMaskJSONRequestBody) (*http.Request, error)

NewCreateDomainMaskRequest calls the generic CreateDomainMask builder with application/json body

func NewCreateDomainMaskRequestWithBody added in v0.5.2

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

NewCreateDomainMaskRequestWithBody generates requests for CreateDomainMask with any type of body

func NewCreateEndpointRequest added in v0.5.2

func NewCreateEndpointRequest(server string, body CreateEndpointJSONRequestBody) (*http.Request, error)

NewCreateEndpointRequest calls the generic CreateEndpoint builder with application/json body

func NewCreateEndpointRequestWithBody added in v0.5.2

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

NewCreateEndpointRequestWithBody generates requests for CreateEndpoint with any type of body

func NewCreateIpRequest added in v0.5.2

func NewCreateIpRequest(server string, id string, body CreateIpJSONRequestBody) (*http.Request, error)

NewCreateIpRequest calls the generic CreateIp builder with application/json body

func NewCreateIpRequestWithBody added in v0.5.2

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

NewCreateIpRequestWithBody generates requests for CreateIp with any type of body

func NewCreateJwtRequest added in v0.5.2

func NewCreateJwtRequest(server string, id string, body CreateJwtJSONRequestBody) (*http.Request, error)

NewCreateJwtRequest calls the generic CreateJwt builder with application/json body

func NewCreateJwtRequestWithBody added in v0.5.2

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

NewCreateJwtRequestWithBody generates requests for CreateJwt with any type of body

func NewCreateMethodRateLimitRequest added in v0.5.2

func NewCreateMethodRateLimitRequest(server string, id string, body CreateMethodRateLimitJSONRequestBody) (*http.Request, error)

NewCreateMethodRateLimitRequest calls the generic CreateMethodRateLimit builder with application/json body

func NewCreateMethodRateLimitRequestWithBody added in v0.5.2

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

NewCreateMethodRateLimitRequestWithBody generates requests for CreateMethodRateLimit with any type of body

func NewCreateReferrerRequest added in v0.5.2

func NewCreateReferrerRequest(server string, id string, body CreateReferrerJSONRequestBody) (*http.Request, error)

NewCreateReferrerRequest calls the generic CreateReferrer builder with application/json body

func NewCreateReferrerRequestWithBody added in v0.5.2

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

NewCreateReferrerRequestWithBody generates requests for CreateReferrer with any type of body

func NewDeleteDomainMaskRequest added in v0.5.2

func NewDeleteDomainMaskRequest(server string, id string, domainMaskId string) (*http.Request, error)

NewDeleteDomainMaskRequest generates requests for DeleteDomainMask

func NewDeleteIpRequest added in v0.5.2

func NewDeleteIpRequest(server string, id string, ipId string) (*http.Request, error)

NewDeleteIpRequest generates requests for DeleteIp

func NewDeleteJwtRequest added in v0.5.2

func NewDeleteJwtRequest(server string, id string, jwtId string) (*http.Request, error)

NewDeleteJwtRequest generates requests for DeleteJwt

func NewDeleteMethodRateLimitRequest added in v0.5.2

func NewDeleteMethodRateLimitRequest(server string, id string, methodRateLimitId string) (*http.Request, error)

NewDeleteMethodRateLimitRequest generates requests for DeleteMethodRateLimit

func NewDeleteReferrerRequest added in v0.5.2

func NewDeleteReferrerRequest(server string, id string, referrerId string) (*http.Request, error)

NewDeleteReferrerRequest generates requests for DeleteReferrer

func NewDeleteTokenRequest added in v0.5.2

func NewDeleteTokenRequest(server string, id string, tokenId string) (*http.Request, error)

NewDeleteTokenRequest generates requests for DeleteToken

func NewFetchEndpointMetricRequest added in v0.5.2

func NewFetchEndpointMetricRequest(server string, id string, params *FetchEndpointMetricParams) (*http.Request, error)

NewFetchEndpointMetricRequest generates requests for FetchEndpointMetric

func NewGetMethodRateLimitsRequest added in v0.5.2

func NewGetMethodRateLimitsRequest(server string, id string) (*http.Request, error)

NewGetMethodRateLimitsRequest generates requests for GetMethodRateLimits

func NewGetSecurityOptionsRequest added in v0.5.2

func NewGetSecurityOptionsRequest(server string, id string) (*http.Request, error)

NewGetSecurityOptionsRequest generates requests for GetSecurityOptions

func NewInvoicesRequest added in v0.5.2

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

NewInvoicesRequest generates requests for Invoices

func NewListEndpointsRequest added in v0.5.2

func NewListEndpointsRequest(server string, params *ListEndpointsParams) (*http.Request, error)

NewListEndpointsRequest generates requests for ListEndpoints

func NewPaymentsRequest added in v0.5.2

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

NewPaymentsRequest generates requests for Payments

func NewShowEndpointRequest added in v0.5.2

func NewShowEndpointRequest(server string, id string) (*http.Request, error)

NewShowEndpointRequest generates requests for ShowEndpoint

func NewUpdateEndpointRequest added in v0.5.2

func NewUpdateEndpointRequest(server string, id string, body UpdateEndpointJSONRequestBody) (*http.Request, error)

NewUpdateEndpointRequest calls the generic UpdateEndpoint builder with application/json body

func NewUpdateEndpointRequestWithBody added in v0.5.2

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

NewUpdateEndpointRequestWithBody generates requests for UpdateEndpoint with any type of body

func NewUpdateMethodRateLimitRequest added in v0.5.2

func NewUpdateMethodRateLimitRequest(server string, id string, methodRateLimitId string, body UpdateMethodRateLimitJSONRequestBody) (*http.Request, error)

NewUpdateMethodRateLimitRequest calls the generic UpdateMethodRateLimit builder with application/json body

func NewUpdateMethodRateLimitRequestWithBody added in v0.5.2

func NewUpdateMethodRateLimitRequestWithBody(server string, id string, methodRateLimitId string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateMethodRateLimitRequestWithBody generates requests for UpdateMethodRateLimit with any type of body

func NewUpdateRateLimitsRequest added in v0.5.2

func NewUpdateRateLimitsRequest(server string, id string, body UpdateRateLimitsJSONRequestBody) (*http.Request, error)

NewUpdateRateLimitsRequest calls the generic UpdateRateLimits builder with application/json body

func NewUpdateRateLimitsRequestWithBody added in v0.5.2

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

NewUpdateRateLimitsRequestWithBody generates requests for UpdateRateLimits with any type of body

func NewUpdateSecurityOptionsRequest added in v0.5.2

func NewUpdateSecurityOptionsRequest(server string, id string, body UpdateSecurityOptionsJSONRequestBody) (*http.Request, error)

NewUpdateSecurityOptionsRequest calls the generic UpdateSecurityOptions builder with application/json body

func NewUpdateSecurityOptionsRequestWithBody added in v0.5.2

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

NewUpdateSecurityOptionsRequestWithBody generates requests for UpdateSecurityOptions with any type of body

func NewUsageByChainRequest added in v0.5.2

func NewUsageByChainRequest(server string, params *UsageByChainParams) (*http.Request, error)

NewUsageByChainRequest generates requests for UsageByChain

func NewUsageByEndpointRequest added in v0.5.2

func NewUsageByEndpointRequest(server string, params *UsageByEndpointParams) (*http.Request, error)

NewUsageByEndpointRequest generates requests for UsageByEndpoint

func NewUsageByMethodRequest added in v0.5.2

func NewUsageByMethodRequest(server string, params *UsageByMethodParams) (*http.Request, error)

NewUsageByMethodRequest generates requests for UsageByMethod

func NewUsageRequest added in v0.5.2

func NewUsageRequest(server string, params *UsageParams) (*http.Request, error)

NewUsageRequest generates requests for Usage

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 ArchiveEndpointResponse added in v0.5.2

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

func ParseArchiveEndpointResponse added in v0.5.2

func ParseArchiveEndpointResponse(rsp *http.Response) (*ArchiveEndpointResponse, error)

ParseArchiveEndpointResponse parses an HTTP response from a ArchiveEndpointWithResponse call

func (ArchiveEndpointResponse) Status added in v0.5.2

func (r ArchiveEndpointResponse) Status() string

Status returns HTTPResponse.Status

func (ArchiveEndpointResponse) StatusCode added in v0.5.2

func (r ArchiveEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Chain

type Chain struct {
	IsSelectChain *bool      `json:"is_select_chain,omitempty"`
	Networks      *[]Network `json:"networks,omitempty"`
	Slug          *string    `json:"slug,omitempty"`
}

Chain defines model for chain.

type ChainUsage

type ChainUsage struct {
	CreditsUsed *int    `json:"credits_used,omitempty"`
	Name        *string `json:"name,omitempty"`
}

ChainUsage defines model for chain_usage.

type ChainsResponse added in v0.5.2

type ChainsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data  []Chain `json:"data"`
		Error *string `json:"error"`
	}
}

func ParseChainsResponse added in v0.5.2

func ParseChainsResponse(rsp *http.Response) (*ChainsResponse, error)

ParseChainsResponse parses an HTTP response from a ChainsWithResponse call

func (ChainsResponse) Status added in v0.5.2

func (r ChainsResponse) Status() string

Status returns HTTPResponse.Status

func (ChainsResponse) StatusCode added in v0.5.2

func (r ChainsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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) ArchiveEndpoint added in v0.5.2

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

func (*Client) Chains added in v0.5.2

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

func (*Client) CreateAuthenticationToken added in v0.5.2

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

func (*Client) CreateDomainMask added in v0.5.2

func (c *Client) CreateDomainMask(ctx context.Context, id string, body CreateDomainMaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateDomainMaskWithBody added in v0.5.2

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

func (*Client) CreateEndpoint added in v0.5.2

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

func (*Client) CreateEndpointWithBody added in v0.5.2

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

func (*Client) CreateIp added in v0.5.2

func (c *Client) CreateIp(ctx context.Context, id string, body CreateIpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateIpWithBody added in v0.5.2

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

func (*Client) CreateJwt added in v0.5.2

func (c *Client) CreateJwt(ctx context.Context, id string, body CreateJwtJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateJwtWithBody added in v0.5.2

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

func (*Client) CreateMethodRateLimit added in v0.5.2

func (c *Client) CreateMethodRateLimit(ctx context.Context, id string, body CreateMethodRateLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateMethodRateLimitWithBody added in v0.5.2

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

func (*Client) CreateReferrer added in v0.5.2

func (c *Client) CreateReferrer(ctx context.Context, id string, body CreateReferrerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateReferrerWithBody added in v0.5.2

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

func (*Client) DeleteDomainMask added in v0.5.2

func (c *Client) DeleteDomainMask(ctx context.Context, id string, domainMaskId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteIp added in v0.5.2

func (c *Client) DeleteIp(ctx context.Context, id string, ipId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteJwt added in v0.5.2

func (c *Client) DeleteJwt(ctx context.Context, id string, jwtId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteMethodRateLimit added in v0.5.2

func (c *Client) DeleteMethodRateLimit(ctx context.Context, id string, methodRateLimitId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteReferrer added in v0.5.2

func (c *Client) DeleteReferrer(ctx context.Context, id string, referrerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteToken added in v0.5.2

func (c *Client) DeleteToken(ctx context.Context, id string, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) FetchEndpointMetric added in v0.5.2

func (c *Client) FetchEndpointMetric(ctx context.Context, id string, params *FetchEndpointMetricParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) GetMethodRateLimits added in v0.5.2

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

func (*Client) GetSecurityOptions added in v0.5.2

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

func (*Client) Invoices added in v0.5.2

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

func (*Client) ListEndpoints added in v0.5.2

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

func (*Client) Payments added in v0.5.2

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

func (*Client) ShowEndpoint added in v0.5.2

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

func (*Client) UpdateEndpoint added in v0.5.2

func (c *Client) UpdateEndpoint(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateEndpointWithBody added in v0.5.2

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

func (*Client) UpdateMethodRateLimit added in v0.5.2

func (c *Client) UpdateMethodRateLimit(ctx context.Context, id string, methodRateLimitId string, body UpdateMethodRateLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateMethodRateLimitWithBody added in v0.5.2

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

func (*Client) UpdateRateLimits added in v0.5.2

func (c *Client) UpdateRateLimits(ctx context.Context, id string, body UpdateRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateRateLimitsWithBody added in v0.5.2

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

func (*Client) UpdateSecurityOptions added in v0.5.2

func (c *Client) UpdateSecurityOptions(ctx context.Context, id string, body UpdateSecurityOptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateSecurityOptionsWithBody added in v0.5.2

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

func (*Client) Usage added in v0.5.2

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

func (*Client) UsageByChain added in v0.5.2

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

func (*Client) UsageByEndpoint added in v0.5.2

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

func (*Client) UsageByMethod added in v0.5.2

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

type ClientInterface

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

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

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

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

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

	CreateEndpoint(ctx context.Context, body CreateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ArchiveEndpoint request
	ArchiveEndpoint(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ShowEndpoint request
	ShowEndpoint(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateEndpoint(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetMethodRateLimits request
	GetMethodRateLimits(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateMethodRateLimit(ctx context.Context, id string, body CreateMethodRateLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteMethodRateLimit request
	DeleteMethodRateLimit(ctx context.Context, id string, methodRateLimitId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateMethodRateLimit(ctx context.Context, id string, methodRateLimitId string, body UpdateMethodRateLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// FetchEndpointMetric request
	FetchEndpointMetric(ctx context.Context, id string, params *FetchEndpointMetricParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateRateLimits(ctx context.Context, id string, body UpdateRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateDomainMask(ctx context.Context, id string, body CreateDomainMaskJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteDomainMask request
	DeleteDomainMask(ctx context.Context, id string, domainMaskId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateIp(ctx context.Context, id string, body CreateIpJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteIp request
	DeleteIp(ctx context.Context, id string, ipId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateJwt(ctx context.Context, id string, body CreateJwtJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteJwt request
	DeleteJwt(ctx context.Context, id string, jwtId string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateReferrer(ctx context.Context, id string, body CreateReferrerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteReferrer request
	DeleteReferrer(ctx context.Context, id string, referrerId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateAuthenticationToken request
	CreateAuthenticationToken(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteToken request
	DeleteToken(ctx context.Context, id string, tokenId string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetSecurityOptions request
	GetSecurityOptions(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	UpdateSecurityOptions(ctx context.Context, id string, body UpdateSecurityOptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	// UsageByMethod request
	UsageByMethod(ctx context.Context, params *UsageByMethodParams, 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) ArchiveEndpointWithResponse added in v0.5.2

func (c *ClientWithResponses) ArchiveEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ArchiveEndpointResponse, error)

ArchiveEndpointWithResponse request returning *ArchiveEndpointResponse

func (*ClientWithResponses) ChainsWithResponse added in v0.5.2

func (c *ClientWithResponses) ChainsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ChainsResponse, error)

ChainsWithResponse request returning *ChainsResponse

func (*ClientWithResponses) CreateAuthenticationTokenWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateAuthenticationTokenWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CreateAuthenticationTokenResponse, error)

CreateAuthenticationTokenWithResponse request returning *CreateAuthenticationTokenResponse

func (*ClientWithResponses) CreateDomainMaskWithBodyWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateDomainMaskWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateDomainMaskResponse, error)

CreateDomainMaskWithBodyWithResponse request with arbitrary body returning *CreateDomainMaskResponse

func (*ClientWithResponses) CreateDomainMaskWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateDomainMaskWithResponse(ctx context.Context, id string, body CreateDomainMaskJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDomainMaskResponse, error)

func (*ClientWithResponses) CreateEndpointWithBodyWithResponse added in v0.5.2

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

CreateEndpointWithBodyWithResponse request with arbitrary body returning *CreateEndpointResponse

func (*ClientWithResponses) CreateEndpointWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateEndpointWithResponse(ctx context.Context, body CreateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEndpointResponse, error)

func (*ClientWithResponses) CreateIpWithBodyWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateIpWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateIpResponse, error)

CreateIpWithBodyWithResponse request with arbitrary body returning *CreateIpResponse

func (*ClientWithResponses) CreateIpWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateIpWithResponse(ctx context.Context, id string, body CreateIpJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIpResponse, error)

func (*ClientWithResponses) CreateJwtWithBodyWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateJwtWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateJwtResponse, error)

CreateJwtWithBodyWithResponse request with arbitrary body returning *CreateJwtResponse

func (*ClientWithResponses) CreateJwtWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateJwtWithResponse(ctx context.Context, id string, body CreateJwtJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJwtResponse, error)

func (*ClientWithResponses) CreateMethodRateLimitWithBodyWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateMethodRateLimitWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateMethodRateLimitResponse, error)

CreateMethodRateLimitWithBodyWithResponse request with arbitrary body returning *CreateMethodRateLimitResponse

func (*ClientWithResponses) CreateMethodRateLimitWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateMethodRateLimitWithResponse(ctx context.Context, id string, body CreateMethodRateLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMethodRateLimitResponse, error)

func (*ClientWithResponses) CreateReferrerWithBodyWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateReferrerWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateReferrerResponse, error)

CreateReferrerWithBodyWithResponse request with arbitrary body returning *CreateReferrerResponse

func (*ClientWithResponses) CreateReferrerWithResponse added in v0.5.2

func (c *ClientWithResponses) CreateReferrerWithResponse(ctx context.Context, id string, body CreateReferrerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReferrerResponse, error)

func (*ClientWithResponses) DeleteDomainMaskWithResponse added in v0.5.2

func (c *ClientWithResponses) DeleteDomainMaskWithResponse(ctx context.Context, id string, domainMaskId string, reqEditors ...RequestEditorFn) (*DeleteDomainMaskResponse, error)

DeleteDomainMaskWithResponse request returning *DeleteDomainMaskResponse

func (*ClientWithResponses) DeleteIpWithResponse added in v0.5.2

func (c *ClientWithResponses) DeleteIpWithResponse(ctx context.Context, id string, ipId string, reqEditors ...RequestEditorFn) (*DeleteIpResponse, error)

DeleteIpWithResponse request returning *DeleteIpResponse

func (*ClientWithResponses) DeleteJwtWithResponse added in v0.5.2

func (c *ClientWithResponses) DeleteJwtWithResponse(ctx context.Context, id string, jwtId string, reqEditors ...RequestEditorFn) (*DeleteJwtResponse, error)

DeleteJwtWithResponse request returning *DeleteJwtResponse

func (*ClientWithResponses) DeleteMethodRateLimitWithResponse added in v0.5.2

func (c *ClientWithResponses) DeleteMethodRateLimitWithResponse(ctx context.Context, id string, methodRateLimitId string, reqEditors ...RequestEditorFn) (*DeleteMethodRateLimitResponse, error)

DeleteMethodRateLimitWithResponse request returning *DeleteMethodRateLimitResponse

func (*ClientWithResponses) DeleteReferrerWithResponse added in v0.5.2

func (c *ClientWithResponses) DeleteReferrerWithResponse(ctx context.Context, id string, referrerId string, reqEditors ...RequestEditorFn) (*DeleteReferrerResponse, error)

DeleteReferrerWithResponse request returning *DeleteReferrerResponse

func (*ClientWithResponses) DeleteTokenWithResponse added in v0.5.2

func (c *ClientWithResponses) DeleteTokenWithResponse(ctx context.Context, id string, tokenId string, reqEditors ...RequestEditorFn) (*DeleteTokenResponse, error)

DeleteTokenWithResponse request returning *DeleteTokenResponse

func (*ClientWithResponses) FetchEndpointMetricWithResponse added in v0.5.2

func (c *ClientWithResponses) FetchEndpointMetricWithResponse(ctx context.Context, id string, params *FetchEndpointMetricParams, reqEditors ...RequestEditorFn) (*FetchEndpointMetricResponse, error)

FetchEndpointMetricWithResponse request returning *FetchEndpointMetricResponse

func (*ClientWithResponses) GetMethodRateLimitsWithResponse added in v0.5.2

func (c *ClientWithResponses) GetMethodRateLimitsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetMethodRateLimitsResponse, error)

GetMethodRateLimitsWithResponse request returning *GetMethodRateLimitsResponse

func (*ClientWithResponses) GetSecurityOptionsWithResponse added in v0.5.2

func (c *ClientWithResponses) GetSecurityOptionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetSecurityOptionsResponse, error)

GetSecurityOptionsWithResponse request returning *GetSecurityOptionsResponse

func (*ClientWithResponses) InvoicesWithResponse added in v0.5.2

func (c *ClientWithResponses) InvoicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InvoicesResponse, error)

InvoicesWithResponse request returning *InvoicesResponse

func (*ClientWithResponses) ListEndpointsWithResponse added in v0.5.2

func (c *ClientWithResponses) ListEndpointsWithResponse(ctx context.Context, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*ListEndpointsResponse, error)

ListEndpointsWithResponse request returning *ListEndpointsResponse

func (*ClientWithResponses) PaymentsWithResponse added in v0.5.2

func (c *ClientWithResponses) PaymentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PaymentsResponse, error)

PaymentsWithResponse request returning *PaymentsResponse

func (*ClientWithResponses) ShowEndpointWithResponse added in v0.5.2

func (c *ClientWithResponses) ShowEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ShowEndpointResponse, error)

ShowEndpointWithResponse request returning *ShowEndpointResponse

func (*ClientWithResponses) UpdateEndpointWithBodyWithResponse added in v0.5.2

func (c *ClientWithResponses) UpdateEndpointWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateEndpointResponse, error)

UpdateEndpointWithBodyWithResponse request with arbitrary body returning *UpdateEndpointResponse

func (*ClientWithResponses) UpdateEndpointWithResponse added in v0.5.2

func (c *ClientWithResponses) UpdateEndpointWithResponse(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEndpointResponse, error)

func (*ClientWithResponses) UpdateMethodRateLimitWithBodyWithResponse added in v0.5.2

func (c *ClientWithResponses) UpdateMethodRateLimitWithBodyWithResponse(ctx context.Context, id string, methodRateLimitId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMethodRateLimitResponse, error)

UpdateMethodRateLimitWithBodyWithResponse request with arbitrary body returning *UpdateMethodRateLimitResponse

func (*ClientWithResponses) UpdateMethodRateLimitWithResponse added in v0.5.2

func (c *ClientWithResponses) UpdateMethodRateLimitWithResponse(ctx context.Context, id string, methodRateLimitId string, body UpdateMethodRateLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMethodRateLimitResponse, error)

func (*ClientWithResponses) UpdateRateLimitsWithBodyWithResponse added in v0.5.2

func (c *ClientWithResponses) UpdateRateLimitsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateRateLimitsResponse, error)

UpdateRateLimitsWithBodyWithResponse request with arbitrary body returning *UpdateRateLimitsResponse

func (*ClientWithResponses) UpdateRateLimitsWithResponse added in v0.5.2

func (c *ClientWithResponses) UpdateRateLimitsWithResponse(ctx context.Context, id string, body UpdateRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRateLimitsResponse, error)

func (*ClientWithResponses) UpdateSecurityOptionsWithBodyWithResponse added in v0.5.2

func (c *ClientWithResponses) UpdateSecurityOptionsWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateSecurityOptionsResponse, error)

UpdateSecurityOptionsWithBodyWithResponse request with arbitrary body returning *UpdateSecurityOptionsResponse

func (*ClientWithResponses) UpdateSecurityOptionsWithResponse added in v0.5.2

func (c *ClientWithResponses) UpdateSecurityOptionsWithResponse(ctx context.Context, id string, body UpdateSecurityOptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecurityOptionsResponse, error)

func (*ClientWithResponses) UsageByChainWithResponse added in v0.5.2

func (c *ClientWithResponses) UsageByChainWithResponse(ctx context.Context, params *UsageByChainParams, reqEditors ...RequestEditorFn) (*UsageByChainResponse, error)

UsageByChainWithResponse request returning *UsageByChainResponse

func (*ClientWithResponses) UsageByEndpointWithResponse added in v0.5.2

func (c *ClientWithResponses) UsageByEndpointWithResponse(ctx context.Context, params *UsageByEndpointParams, reqEditors ...RequestEditorFn) (*UsageByEndpointResponse, error)

UsageByEndpointWithResponse request returning *UsageByEndpointResponse

func (*ClientWithResponses) UsageByMethodWithResponse added in v0.5.2

func (c *ClientWithResponses) UsageByMethodWithResponse(ctx context.Context, params *UsageByMethodParams, reqEditors ...RequestEditorFn) (*UsageByMethodResponse, error)

UsageByMethodWithResponse request returning *UsageByMethodResponse

func (*ClientWithResponses) UsageWithResponse added in v0.5.2

func (c *ClientWithResponses) UsageWithResponse(ctx context.Context, params *UsageParams, reqEditors ...RequestEditorFn) (*UsageResponse, error)

UsageWithResponse request returning *UsageResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// InvoicesWithResponse request
	InvoicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*InvoicesResponse, error)

	// PaymentsWithResponse request
	PaymentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*PaymentsResponse, error)

	// ChainsWithResponse request
	ChainsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ChainsResponse, error)

	// ListEndpointsWithResponse request
	ListEndpointsWithResponse(ctx context.Context, params *ListEndpointsParams, reqEditors ...RequestEditorFn) (*ListEndpointsResponse, error)

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

	CreateEndpointWithResponse(ctx context.Context, body CreateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateEndpointResponse, error)

	// ArchiveEndpointWithResponse request
	ArchiveEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ArchiveEndpointResponse, error)

	// ShowEndpointWithResponse request
	ShowEndpointWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ShowEndpointResponse, error)

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

	UpdateEndpointWithResponse(ctx context.Context, id string, body UpdateEndpointJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateEndpointResponse, error)

	// GetMethodRateLimitsWithResponse request
	GetMethodRateLimitsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetMethodRateLimitsResponse, error)

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

	CreateMethodRateLimitWithResponse(ctx context.Context, id string, body CreateMethodRateLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateMethodRateLimitResponse, error)

	// DeleteMethodRateLimitWithResponse request
	DeleteMethodRateLimitWithResponse(ctx context.Context, id string, methodRateLimitId string, reqEditors ...RequestEditorFn) (*DeleteMethodRateLimitResponse, error)

	// UpdateMethodRateLimitWithBodyWithResponse request with any body
	UpdateMethodRateLimitWithBodyWithResponse(ctx context.Context, id string, methodRateLimitId string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateMethodRateLimitResponse, error)

	UpdateMethodRateLimitWithResponse(ctx context.Context, id string, methodRateLimitId string, body UpdateMethodRateLimitJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateMethodRateLimitResponse, error)

	// FetchEndpointMetricWithResponse request
	FetchEndpointMetricWithResponse(ctx context.Context, id string, params *FetchEndpointMetricParams, reqEditors ...RequestEditorFn) (*FetchEndpointMetricResponse, error)

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

	UpdateRateLimitsWithResponse(ctx context.Context, id string, body UpdateRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateRateLimitsResponse, error)

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

	CreateDomainMaskWithResponse(ctx context.Context, id string, body CreateDomainMaskJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateDomainMaskResponse, error)

	// DeleteDomainMaskWithResponse request
	DeleteDomainMaskWithResponse(ctx context.Context, id string, domainMaskId string, reqEditors ...RequestEditorFn) (*DeleteDomainMaskResponse, error)

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

	CreateIpWithResponse(ctx context.Context, id string, body CreateIpJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateIpResponse, error)

	// DeleteIpWithResponse request
	DeleteIpWithResponse(ctx context.Context, id string, ipId string, reqEditors ...RequestEditorFn) (*DeleteIpResponse, error)

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

	CreateJwtWithResponse(ctx context.Context, id string, body CreateJwtJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateJwtResponse, error)

	// DeleteJwtWithResponse request
	DeleteJwtWithResponse(ctx context.Context, id string, jwtId string, reqEditors ...RequestEditorFn) (*DeleteJwtResponse, error)

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

	CreateReferrerWithResponse(ctx context.Context, id string, body CreateReferrerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateReferrerResponse, error)

	// DeleteReferrerWithResponse request
	DeleteReferrerWithResponse(ctx context.Context, id string, referrerId string, reqEditors ...RequestEditorFn) (*DeleteReferrerResponse, error)

	// CreateAuthenticationTokenWithResponse request
	CreateAuthenticationTokenWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*CreateAuthenticationTokenResponse, error)

	// DeleteTokenWithResponse request
	DeleteTokenWithResponse(ctx context.Context, id string, tokenId string, reqEditors ...RequestEditorFn) (*DeleteTokenResponse, error)

	// GetSecurityOptionsWithResponse request
	GetSecurityOptionsWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetSecurityOptionsResponse, error)

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

	UpdateSecurityOptionsWithResponse(ctx context.Context, id string, body UpdateSecurityOptionsJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateSecurityOptionsResponse, error)

	// UsageWithResponse request
	UsageWithResponse(ctx context.Context, params *UsageParams, reqEditors ...RequestEditorFn) (*UsageResponse, error)

	// UsageByChainWithResponse request
	UsageByChainWithResponse(ctx context.Context, params *UsageByChainParams, reqEditors ...RequestEditorFn) (*UsageByChainResponse, error)

	// UsageByEndpointWithResponse request
	UsageByEndpointWithResponse(ctx context.Context, params *UsageByEndpointParams, reqEditors ...RequestEditorFn) (*UsageByEndpointResponse, error)

	// UsageByMethodWithResponse request
	UsageByMethodWithResponse(ctx context.Context, params *UsageByMethodParams, reqEditors ...RequestEditorFn) (*UsageByMethodResponse, error)
}

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

type CreateAuthenticationTokenResponse added in v0.5.2

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

func ParseCreateAuthenticationTokenResponse added in v0.5.2

func ParseCreateAuthenticationTokenResponse(rsp *http.Response) (*CreateAuthenticationTokenResponse, error)

ParseCreateAuthenticationTokenResponse parses an HTTP response from a CreateAuthenticationTokenWithResponse call

func (CreateAuthenticationTokenResponse) Status added in v0.5.2

Status returns HTTPResponse.Status

func (CreateAuthenticationTokenResponse) StatusCode added in v0.5.2

func (r CreateAuthenticationTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateDomainMaskJSONBody added in v0.5.2

type CreateDomainMaskJSONBody struct {
	DomainMask *string `json:"domain_mask,omitempty"`
}

CreateDomainMaskJSONBody defines parameters for CreateDomainMask.

type CreateDomainMaskJSONRequestBody added in v0.5.2

type CreateDomainMaskJSONRequestBody CreateDomainMaskJSONBody

CreateDomainMaskJSONRequestBody defines body for CreateDomainMask for application/json ContentType.

type CreateDomainMaskResponse added in v0.5.2

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

func ParseCreateDomainMaskResponse added in v0.5.2

func ParseCreateDomainMaskResponse(rsp *http.Response) (*CreateDomainMaskResponse, error)

ParseCreateDomainMaskResponse parses an HTTP response from a CreateDomainMaskWithResponse call

func (CreateDomainMaskResponse) Status added in v0.5.2

func (r CreateDomainMaskResponse) Status() string

Status returns HTTPResponse.Status

func (CreateDomainMaskResponse) StatusCode added in v0.5.2

func (r CreateDomainMaskResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateEndpointJSONBody added in v0.5.2

type CreateEndpointJSONBody struct {
	Chain   *string `json:"chain,omitempty"`
	Network *string `json:"network,omitempty"`
}

CreateEndpointJSONBody defines parameters for CreateEndpoint.

type CreateEndpointJSONRequestBody added in v0.5.2

type CreateEndpointJSONRequestBody CreateEndpointJSONBody

CreateEndpointJSONRequestBody defines body for CreateEndpoint for application/json ContentType.

type CreateEndpointResponse added in v0.5.2

type CreateEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data  SingleEndpoint `json:"data"`
		Error *string        `json:"error"`
	}
}

func ParseCreateEndpointResponse added in v0.5.2

func ParseCreateEndpointResponse(rsp *http.Response) (*CreateEndpointResponse, error)

ParseCreateEndpointResponse parses an HTTP response from a CreateEndpointWithResponse call

func (CreateEndpointResponse) Status added in v0.5.2

func (r CreateEndpointResponse) Status() string

Status returns HTTPResponse.Status

func (CreateEndpointResponse) StatusCode added in v0.5.2

func (r CreateEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateIpJSONBody added in v0.5.2

type CreateIpJSONBody struct {
	Ip *string `json:"ip,omitempty"`
}

CreateIpJSONBody defines parameters for CreateIp.

type CreateIpJSONRequestBody added in v0.5.2

type CreateIpJSONRequestBody CreateIpJSONBody

CreateIpJSONRequestBody defines body for CreateIp for application/json ContentType.

type CreateIpResponse added in v0.5.2

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

func ParseCreateIpResponse added in v0.5.2

func ParseCreateIpResponse(rsp *http.Response) (*CreateIpResponse, error)

ParseCreateIpResponse parses an HTTP response from a CreateIpWithResponse call

func (CreateIpResponse) Status added in v0.5.2

func (r CreateIpResponse) Status() string

Status returns HTTPResponse.Status

func (CreateIpResponse) StatusCode added in v0.5.2

func (r CreateIpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateJwtJSONBody added in v0.5.2

type CreateJwtJSONBody struct {
	Kid       *string `json:"kid,omitempty"`
	Name      *string `json:"name,omitempty"`
	PublicKey *string `json:"public_key,omitempty"`
}

CreateJwtJSONBody defines parameters for CreateJwt.

type CreateJwtJSONRequestBody added in v0.5.2

type CreateJwtJSONRequestBody CreateJwtJSONBody

CreateJwtJSONRequestBody defines body for CreateJwt for application/json ContentType.

type CreateJwtResponse added in v0.5.2

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

func ParseCreateJwtResponse added in v0.5.2

func ParseCreateJwtResponse(rsp *http.Response) (*CreateJwtResponse, error)

ParseCreateJwtResponse parses an HTTP response from a CreateJwtWithResponse call

func (CreateJwtResponse) Status added in v0.5.2

func (r CreateJwtResponse) Status() string

Status returns HTTPResponse.Status

func (CreateJwtResponse) StatusCode added in v0.5.2

func (r CreateJwtResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateMethodRateLimitJSONBody added in v0.5.2

type CreateMethodRateLimitJSONBody struct {
	Interval CreateMethodRateLimitJSONBodyInterval `json:"interval"`
	Methods  []string                              `json:"methods"`
	Rate     int                                   `json:"rate"`
}

CreateMethodRateLimitJSONBody defines parameters for CreateMethodRateLimit.

type CreateMethodRateLimitJSONBodyInterval added in v0.5.2

type CreateMethodRateLimitJSONBodyInterval string

CreateMethodRateLimitJSONBodyInterval defines parameters for CreateMethodRateLimit.

const (
	CreateMethodRateLimitJSONBodyIntervalDay    CreateMethodRateLimitJSONBodyInterval = "day"
	CreateMethodRateLimitJSONBodyIntervalMinute CreateMethodRateLimitJSONBodyInterval = "minute"
	CreateMethodRateLimitJSONBodyIntervalSecond CreateMethodRateLimitJSONBodyInterval = "second"
)

Defines values for CreateMethodRateLimitJSONBodyInterval.

type CreateMethodRateLimitJSONRequestBody added in v0.5.2

type CreateMethodRateLimitJSONRequestBody CreateMethodRateLimitJSONBody

CreateMethodRateLimitJSONRequestBody defines body for CreateMethodRateLimit for application/json ContentType.

type CreateMethodRateLimitResponse added in v0.5.2

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

func ParseCreateMethodRateLimitResponse added in v0.5.2

func ParseCreateMethodRateLimitResponse(rsp *http.Response) (*CreateMethodRateLimitResponse, error)

ParseCreateMethodRateLimitResponse parses an HTTP response from a CreateMethodRateLimitWithResponse call

func (CreateMethodRateLimitResponse) Status added in v0.5.2

Status returns HTTPResponse.Status

func (CreateMethodRateLimitResponse) StatusCode added in v0.5.2

func (r CreateMethodRateLimitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateReferrerJSONBody added in v0.5.2

type CreateReferrerJSONBody struct {
	Referrer *string `json:"referrer,omitempty"`
}

CreateReferrerJSONBody defines parameters for CreateReferrer.

type CreateReferrerJSONRequestBody added in v0.5.2

type CreateReferrerJSONRequestBody CreateReferrerJSONBody

CreateReferrerJSONRequestBody defines body for CreateReferrer for application/json ContentType.

type CreateReferrerResponse added in v0.5.2

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

func ParseCreateReferrerResponse added in v0.5.2

func ParseCreateReferrerResponse(rsp *http.Response) (*CreateReferrerResponse, error)

ParseCreateReferrerResponse parses an HTTP response from a CreateReferrerWithResponse call

func (CreateReferrerResponse) Status added in v0.5.2

func (r CreateReferrerResponse) Status() string

Status returns HTTPResponse.Status

func (CreateReferrerResponse) StatusCode added in v0.5.2

func (r CreateReferrerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDomainMaskResponse added in v0.5.2

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

func ParseDeleteDomainMaskResponse added in v0.5.2

func ParseDeleteDomainMaskResponse(rsp *http.Response) (*DeleteDomainMaskResponse, error)

ParseDeleteDomainMaskResponse parses an HTTP response from a DeleteDomainMaskWithResponse call

func (DeleteDomainMaskResponse) Status added in v0.5.2

func (r DeleteDomainMaskResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteDomainMaskResponse) StatusCode added in v0.5.2

func (r DeleteDomainMaskResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteIpResponse added in v0.5.2

type DeleteIpResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data  *bool   `json:"data,omitempty"`
		Error *string `json:"error"`
	}
}

func ParseDeleteIpResponse added in v0.5.2

func ParseDeleteIpResponse(rsp *http.Response) (*DeleteIpResponse, error)

ParseDeleteIpResponse parses an HTTP response from a DeleteIpWithResponse call

func (DeleteIpResponse) Status added in v0.5.2

func (r DeleteIpResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteIpResponse) StatusCode added in v0.5.2

func (r DeleteIpResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteJwtResponse added in v0.5.2

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

func ParseDeleteJwtResponse added in v0.5.2

func ParseDeleteJwtResponse(rsp *http.Response) (*DeleteJwtResponse, error)

ParseDeleteJwtResponse parses an HTTP response from a DeleteJwtWithResponse call

func (DeleteJwtResponse) Status added in v0.5.2

func (r DeleteJwtResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteJwtResponse) StatusCode added in v0.5.2

func (r DeleteJwtResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteMethodRateLimitResponse added in v0.5.2

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

func ParseDeleteMethodRateLimitResponse added in v0.5.2

func ParseDeleteMethodRateLimitResponse(rsp *http.Response) (*DeleteMethodRateLimitResponse, error)

ParseDeleteMethodRateLimitResponse parses an HTTP response from a DeleteMethodRateLimitWithResponse call

func (DeleteMethodRateLimitResponse) Status added in v0.5.2

Status returns HTTPResponse.Status

func (DeleteMethodRateLimitResponse) StatusCode added in v0.5.2

func (r DeleteMethodRateLimitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteReferrerResponse added in v0.5.2

type DeleteReferrerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data  *bool   `json:"data,omitempty"`
		Error *string `json:"error"`
	}
}

func ParseDeleteReferrerResponse added in v0.5.2

func ParseDeleteReferrerResponse(rsp *http.Response) (*DeleteReferrerResponse, error)

ParseDeleteReferrerResponse parses an HTTP response from a DeleteReferrerWithResponse call

func (DeleteReferrerResponse) Status added in v0.5.2

func (r DeleteReferrerResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteReferrerResponse) StatusCode added in v0.5.2

func (r DeleteReferrerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteTokenResponse added in v0.5.2

type DeleteTokenResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data  *bool   `json:"data,omitempty"`
		Error *string `json:"error"`
	}
}

func ParseDeleteTokenResponse added in v0.5.2

func ParseDeleteTokenResponse(rsp *http.Response) (*DeleteTokenResponse, error)

ParseDeleteTokenResponse parses an HTTP response from a DeleteTokenWithResponse call

func (DeleteTokenResponse) Status added in v0.5.2

func (r DeleteTokenResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteTokenResponse) StatusCode added in v0.5.2

func (r DeleteTokenResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Endpoint

type Endpoint struct {
	// Chain chain slug
	Chain   string  `json:"chain"`
	HttpUrl string  `json:"http_url"`
	Id      string  `json:"id"`
	Label   *string `json:"label"`

	// Network network slug
	Network string  `json:"network"`
	WssUrl  *string `json:"wss_url"`
}

Endpoint defines model for endpoint.

type EndpointDomainMask

type EndpointDomainMask struct {
	Domain *string `json:"domain,omitempty"`
	Id     *string `json:"id,omitempty"`
}

EndpointDomainMask defines model for endpoint_domain_mask.

type EndpointIp

type EndpointIp struct {
	Id *string `json:"id,omitempty"`
	Ip *string `json:"ip,omitempty"`
}

EndpointIp defines model for endpoint_ip.

type EndpointJwt

type EndpointJwt struct {
	Id        *string `json:"id,omitempty"`
	Kid       *string `json:"kid,omitempty"`
	Name      *string `json:"name,omitempty"`
	PublicKey *string `json:"public_key,omitempty"`
}

EndpointJwt defines model for endpoint_jwt.

type EndpointMetric added in v0.3.0

type EndpointMetric struct {
	Data *[][]int `json:"data,omitempty"`
	Tag  *string  `json:"tag,omitempty"`
}

EndpointMetric defines model for endpoint_metric.

type EndpointRateLimits added in v0.3.0

type EndpointRateLimits struct {
	Account       *int  `json:"account"`
	RateLimitByIp *bool `json:"rate_limit_by_ip"`
	Rpd           *int  `json:"rpd"`
	Rpm           *int  `json:"rpm"`
	Rps           *int  `json:"rps"`
}

EndpointRateLimits defines model for endpoint_rate_limits.

type EndpointReferrer

type EndpointReferrer struct {
	Id       *string `json:"id,omitempty"`
	Referrer *string `json:"referrer,omitempty"`
}

EndpointReferrer defines model for endpoint_referrer.

type EndpointSecurity

type EndpointSecurity struct {
	DomainMasks *[]EndpointDomainMask `json:"domain_masks,omitempty"`
	Ips         *[]EndpointIp         `json:"ips,omitempty"`
	Jwts        *[]EndpointJwt        `json:"jwts,omitempty"`
	Options     *struct {
		DomainMasks *bool `json:"domainMasks"`
		Ips         *bool `json:"ips"`
		Jwts        *bool `json:"jwts"`
		Referrers   *bool `json:"referrers"`
		Tokens      *bool `json:"tokens"`
	} `json:"options,omitempty"`
	Referrers *[]EndpointReferrer `json:"referrers,omitempty"`
	Tokens    *[]EndpointToken    `json:"tokens,omitempty"`
}

EndpointSecurity defines model for endpoint_security.

type EndpointToken

type EndpointToken struct {
	Id    *string `json:"id,omitempty"`
	Token *string `json:"token,omitempty"`
}

EndpointToken defines model for endpoint_token.

type EndpointUsage

type EndpointUsage struct {
	Chain            *string        `json:"chain,omitempty"`
	CreditsUsed      *int           `json:"credits_used,omitempty"`
	Label            *string        `json:"label"`
	MethodsBreakdown *[]MethodUsage `json:"methods_breakdown,omitempty"`
	Name             *string        `json:"name,omitempty"`
	Network          *string        `json:"network,omitempty"`
}

EndpointUsage defines model for endpoint_usage.

type FetchEndpointMetricParams added in v0.5.2

type FetchEndpointMetricParams struct {
	// Period hour, day, week, month
	Period FetchEndpointMetricParamsPeriod `form:"period" json:"period"`

	// Metric method_calls_over_time, response_status_over_time, method_call_breakdown, response_status_breakdown, method_response_time_max
	Metric FetchEndpointMetricParamsMetric `form:"metric" json:"metric"`
}

FetchEndpointMetricParams defines parameters for FetchEndpointMetric.

type FetchEndpointMetricParamsMetric added in v0.5.2

type FetchEndpointMetricParamsMetric string

FetchEndpointMetricParamsMetric defines parameters for FetchEndpointMetric.

const (
	MethodCallBreakdown     FetchEndpointMetricParamsMetric = "method_call_breakdown"
	MethodCallsOverTime     FetchEndpointMetricParamsMetric = "method_calls_over_time"
	MethodResponseTimeMax   FetchEndpointMetricParamsMetric = "method_response_time_max"
	ResponseStatusBreakdown FetchEndpointMetricParamsMetric = "response_status_breakdown"
	ResponseStatusOverTime  FetchEndpointMetricParamsMetric = "response_status_over_time"
)

Defines values for FetchEndpointMetricParamsMetric.

type FetchEndpointMetricParamsPeriod added in v0.5.2

type FetchEndpointMetricParamsPeriod string

FetchEndpointMetricParamsPeriod defines parameters for FetchEndpointMetric.

const (
	FetchEndpointMetricParamsPeriodDay   FetchEndpointMetricParamsPeriod = "day"
	FetchEndpointMetricParamsPeriodHour  FetchEndpointMetricParamsPeriod = "hour"
	FetchEndpointMetricParamsPeriodMonth FetchEndpointMetricParamsPeriod = "month"
	FetchEndpointMetricParamsPeriodWeek  FetchEndpointMetricParamsPeriod = "week"
)

Defines values for FetchEndpointMetricParamsPeriod.

type FetchEndpointMetricResponse added in v0.5.2

type FetchEndpointMetricResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data  []EndpointMetric `json:"data"`
		Error *string          `json:"error"`
	}
}

func ParseFetchEndpointMetricResponse added in v0.5.2

func ParseFetchEndpointMetricResponse(rsp *http.Response) (*FetchEndpointMetricResponse, error)

ParseFetchEndpointMetricResponse parses an HTTP response from a FetchEndpointMetricWithResponse call

func (FetchEndpointMetricResponse) Status added in v0.5.2

Status returns HTTPResponse.Status

func (FetchEndpointMetricResponse) StatusCode added in v0.5.2

func (r FetchEndpointMetricResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetMethodRateLimitsResponse added in v0.5.2

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

func ParseGetMethodRateLimitsResponse added in v0.5.2

func ParseGetMethodRateLimitsResponse(rsp *http.Response) (*GetMethodRateLimitsResponse, error)

ParseGetMethodRateLimitsResponse parses an HTTP response from a GetMethodRateLimitsWithResponse call

func (GetMethodRateLimitsResponse) Status added in v0.5.2

Status returns HTTPResponse.Status

func (GetMethodRateLimitsResponse) StatusCode added in v0.5.2

func (r GetMethodRateLimitsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSecurityOptionsResponse added in v0.5.2

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

func ParseGetSecurityOptionsResponse added in v0.5.2

func ParseGetSecurityOptionsResponse(rsp *http.Response) (*GetSecurityOptionsResponse, error)

ParseGetSecurityOptionsResponse parses an HTTP response from a GetSecurityOptionsWithResponse call

func (GetSecurityOptionsResponse) Status added in v0.5.2

Status returns HTTPResponse.Status

func (GetSecurityOptionsResponse) StatusCode added in v0.5.2

func (r GetSecurityOptionsResponse) 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 Invoice added in v0.3.0

type Invoice struct {
	AmountDue     *int    `json:"amount_due,omitempty"`
	AmountPaid    *int    `json:"amount_paid,omitempty"`
	BillingReason *string `json:"billing_reason,omitempty"`
	Created       *int    `json:"created,omitempty"`
	Id            *string `json:"id,omitempty"`
	Lines         *[]struct {
		Amount      *int    `json:"amount,omitempty"`
		Description *string `json:"description,omitempty"`
	} `json:"lines,omitempty"`
	PeriodEnd   *int    `json:"period_end,omitempty"`
	PeriodStart *int    `json:"period_start,omitempty"`
	Status      *string `json:"status,omitempty"`
	Subtotal    *int    `json:"subtotal,omitempty"`
}

Invoice defines model for invoice.

type InvoicesResponse added in v0.5.2

type InvoicesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data *struct {
			Invoices *[]Invoice `json:"invoices,omitempty"`
		} `json:"data,omitempty"`
		Error *string `json:"error"`
	}
}

func ParseInvoicesResponse added in v0.5.2

func ParseInvoicesResponse(rsp *http.Response) (*InvoicesResponse, error)

ParseInvoicesResponse parses an HTTP response from a InvoicesWithResponse call

func (InvoicesResponse) Status added in v0.5.2

func (r InvoicesResponse) Status() string

Status returns HTTPResponse.Status

func (InvoicesResponse) StatusCode added in v0.5.2

func (r InvoicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListEndpointsParams added in v0.5.2

type ListEndpointsParams struct {
	Limit  *int `form:"limit,omitempty" json:"limit,omitempty"`
	Offset *int `form:"offset,omitempty" json:"offset,omitempty"`
}

ListEndpointsParams defines parameters for ListEndpoints.

type ListEndpointsResponse added in v0.5.2

type ListEndpointsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data  *[]Endpoint `json:"data"`
		Error *string     `json:"error"`
	}
}

func ParseListEndpointsResponse added in v0.5.2

func ParseListEndpointsResponse(rsp *http.Response) (*ListEndpointsResponse, error)

ParseListEndpointsResponse parses an HTTP response from a ListEndpointsWithResponse call

func (ListEndpointsResponse) Status added in v0.5.2

func (r ListEndpointsResponse) Status() string

Status returns HTTPResponse.Status

func (ListEndpointsResponse) StatusCode added in v0.5.2

func (r ListEndpointsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type MethodUsage

type MethodUsage struct {
	Archive     *bool   `json:"archive"`
	CreditsUsed *int    `json:"credits_used,omitempty"`
	MethodName  *string `json:"method_name,omitempty"`
}

MethodUsage defines model for method_usage.

type Network

type Network struct {
	Name *string `json:"name,omitempty"`
	Slug *string `json:"slug,omitempty"`
}

Network defines model for network.

type Payment added in v0.3.0

type Payment struct {
	Amount            *string `json:"amount,omitempty"`
	CardLast4         *string `json:"card_last_4"`
	CreatedAt         *string `json:"created_at,omitempty"`
	Currency          *string `json:"currency,omitempty"`
	MarketplaceAmount *int    `json:"marketplace_amount"`
	Status            *string `json:"status,omitempty"`
}

Payment defines model for payment.

type PaymentsResponse added in v0.5.2

type PaymentsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data *struct {
			Payments *[]Payment `json:"payments,omitempty"`
		} `json:"data,omitempty"`
		Error *string `json:"error"`
	}
}

func ParsePaymentsResponse added in v0.5.2

func ParsePaymentsResponse(rsp *http.Response) (*PaymentsResponse, error)

ParsePaymentsResponse parses an HTTP response from a PaymentsWithResponse call

func (PaymentsResponse) Status added in v0.5.2

func (r PaymentsResponse) Status() string

Status returns HTTPResponse.Status

func (PaymentsResponse) StatusCode added in v0.5.2

func (r PaymentsResponse) 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 ShowEndpointResponse added in v0.5.2

type ShowEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data  *SingleEndpoint `json:"data,omitempty"`
		Error *string         `json:"error"`
	}
}

func ParseShowEndpointResponse added in v0.5.2

func ParseShowEndpointResponse(rsp *http.Response) (*ShowEndpointResponse, error)

ParseShowEndpointResponse parses an HTTP response from a ShowEndpointWithResponse call

func (ShowEndpointResponse) Status added in v0.5.2

func (r ShowEndpointResponse) Status() string

Status returns HTTPResponse.Status

func (ShowEndpointResponse) StatusCode added in v0.5.2

func (r ShowEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type SingleEndpoint added in v0.3.0

type SingleEndpoint struct {
	// Chain chain slug
	Chain   string  `json:"chain"`
	HttpUrl string  `json:"http_url"`
	Id      string  `json:"id"`
	Label   *string `json:"label"`

	// Network network slug
	Network    string              `json:"network"`
	RateLimits *EndpointRateLimits `json:"rate_limits,omitempty"`
	Security   EndpointSecurity    `json:"security"`
	WssUrl     *string             `json:"wss_url"`
}

SingleEndpoint defines model for single_endpoint.

type UpdateEndpointJSONBody added in v0.5.2

type UpdateEndpointJSONBody struct {
	Label *string `json:"label,omitempty"`
}

UpdateEndpointJSONBody defines parameters for UpdateEndpoint.

type UpdateEndpointJSONRequestBody added in v0.5.2

type UpdateEndpointJSONRequestBody UpdateEndpointJSONBody

UpdateEndpointJSONRequestBody defines body for UpdateEndpoint for application/json ContentType.

type UpdateEndpointResponse added in v0.5.2

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

func ParseUpdateEndpointResponse added in v0.5.2

func ParseUpdateEndpointResponse(rsp *http.Response) (*UpdateEndpointResponse, error)

ParseUpdateEndpointResponse parses an HTTP response from a UpdateEndpointWithResponse call

func (UpdateEndpointResponse) Status added in v0.5.2

func (r UpdateEndpointResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateEndpointResponse) StatusCode added in v0.5.2

func (r UpdateEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateMethodRateLimitJSONBody added in v0.5.2

type UpdateMethodRateLimitJSONBody struct {
	Methods *[]string                            `json:"methods,omitempty"`
	Rate    *int                                 `json:"rate,omitempty"`
	Status  *UpdateMethodRateLimitJSONBodyStatus `json:"status,omitempty"`
}

UpdateMethodRateLimitJSONBody defines parameters for UpdateMethodRateLimit.

type UpdateMethodRateLimitJSONBodyStatus added in v0.5.2

type UpdateMethodRateLimitJSONBodyStatus string

UpdateMethodRateLimitJSONBodyStatus defines parameters for UpdateMethodRateLimit.

const (
	UpdateMethodRateLimitJSONBodyStatusDisabled UpdateMethodRateLimitJSONBodyStatus = "disabled"
	UpdateMethodRateLimitJSONBodyStatusEnabled  UpdateMethodRateLimitJSONBodyStatus = "enabled"
)

Defines values for UpdateMethodRateLimitJSONBodyStatus.

type UpdateMethodRateLimitJSONRequestBody added in v0.5.2

type UpdateMethodRateLimitJSONRequestBody UpdateMethodRateLimitJSONBody

UpdateMethodRateLimitJSONRequestBody defines body for UpdateMethodRateLimit for application/json ContentType.

type UpdateMethodRateLimitResponse added in v0.5.2

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

func ParseUpdateMethodRateLimitResponse added in v0.5.2

func ParseUpdateMethodRateLimitResponse(rsp *http.Response) (*UpdateMethodRateLimitResponse, error)

ParseUpdateMethodRateLimitResponse parses an HTTP response from a UpdateMethodRateLimitWithResponse call

func (UpdateMethodRateLimitResponse) Status added in v0.5.2

Status returns HTTPResponse.Status

func (UpdateMethodRateLimitResponse) StatusCode added in v0.5.2

func (r UpdateMethodRateLimitResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateRateLimitsJSONBody added in v0.5.2

type UpdateRateLimitsJSONBody struct {
	RateLimits struct {
		Rpd *int `json:"rpd,omitempty"`
		Rpm *int `json:"rpm,omitempty"`
		Rps *int `json:"rps,omitempty"`
	} `json:"rate_limits"`
}

UpdateRateLimitsJSONBody defines parameters for UpdateRateLimits.

type UpdateRateLimitsJSONRequestBody added in v0.5.2

type UpdateRateLimitsJSONRequestBody UpdateRateLimitsJSONBody

UpdateRateLimitsJSONRequestBody defines body for UpdateRateLimits for application/json ContentType.

type UpdateRateLimitsResponse added in v0.5.2

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

func ParseUpdateRateLimitsResponse added in v0.5.2

func ParseUpdateRateLimitsResponse(rsp *http.Response) (*UpdateRateLimitsResponse, error)

ParseUpdateRateLimitsResponse parses an HTTP response from a UpdateRateLimitsWithResponse call

func (UpdateRateLimitsResponse) Status added in v0.5.2

func (r UpdateRateLimitsResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateRateLimitsResponse) StatusCode added in v0.5.2

func (r UpdateRateLimitsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateSecurityOptionsJSONBody added in v0.5.2

type UpdateSecurityOptionsJSONBody struct {
	Options struct {
		Cors        *UpdateSecurityOptionsJSONBodyOptionsCors        `json:"cors,omitempty"`
		DomainMasks *UpdateSecurityOptionsJSONBodyOptionsDomainMasks `json:"domainMasks,omitempty"`
		Hsts        *UpdateSecurityOptionsJSONBodyOptionsHsts        `json:"hsts,omitempty"`
		Ips         *UpdateSecurityOptionsJSONBodyOptionsIps         `json:"ips,omitempty"`
		Jwts        *UpdateSecurityOptionsJSONBodyOptionsJwts        `json:"jwts,omitempty"`
		Referrers   *UpdateSecurityOptionsJSONBodyOptionsReferrers   `json:"referrers,omitempty"`
		Tokens      *UpdateSecurityOptionsJSONBodyOptionsTokens      `json:"tokens,omitempty"`
	} `json:"options"`
}

UpdateSecurityOptionsJSONBody defines parameters for UpdateSecurityOptions.

type UpdateSecurityOptionsJSONBodyOptionsCors added in v0.5.2

type UpdateSecurityOptionsJSONBodyOptionsCors string

UpdateSecurityOptionsJSONBodyOptionsCors defines parameters for UpdateSecurityOptions.

const (
	UpdateSecurityOptionsJSONBodyOptionsCorsDisabled UpdateSecurityOptionsJSONBodyOptionsCors = "disabled"
	UpdateSecurityOptionsJSONBodyOptionsCorsEnabled  UpdateSecurityOptionsJSONBodyOptionsCors = "enabled"
)

Defines values for UpdateSecurityOptionsJSONBodyOptionsCors.

type UpdateSecurityOptionsJSONBodyOptionsDomainMasks added in v0.5.2

type UpdateSecurityOptionsJSONBodyOptionsDomainMasks string

UpdateSecurityOptionsJSONBodyOptionsDomainMasks defines parameters for UpdateSecurityOptions.

const (
	UpdateSecurityOptionsJSONBodyOptionsDomainMasksDisabled UpdateSecurityOptionsJSONBodyOptionsDomainMasks = "disabled"
	UpdateSecurityOptionsJSONBodyOptionsDomainMasksEnabled  UpdateSecurityOptionsJSONBodyOptionsDomainMasks = "enabled"
)

Defines values for UpdateSecurityOptionsJSONBodyOptionsDomainMasks.

type UpdateSecurityOptionsJSONBodyOptionsHsts added in v0.5.2

type UpdateSecurityOptionsJSONBodyOptionsHsts string

UpdateSecurityOptionsJSONBodyOptionsHsts defines parameters for UpdateSecurityOptions.

const (
	UpdateSecurityOptionsJSONBodyOptionsHstsDisabled UpdateSecurityOptionsJSONBodyOptionsHsts = "disabled"
	UpdateSecurityOptionsJSONBodyOptionsHstsEnabled  UpdateSecurityOptionsJSONBodyOptionsHsts = "enabled"
)

Defines values for UpdateSecurityOptionsJSONBodyOptionsHsts.

type UpdateSecurityOptionsJSONBodyOptionsIps added in v0.5.2

type UpdateSecurityOptionsJSONBodyOptionsIps string

UpdateSecurityOptionsJSONBodyOptionsIps defines parameters for UpdateSecurityOptions.

const (
	UpdateSecurityOptionsJSONBodyOptionsIpsDisabled UpdateSecurityOptionsJSONBodyOptionsIps = "disabled"
	UpdateSecurityOptionsJSONBodyOptionsIpsEnabled  UpdateSecurityOptionsJSONBodyOptionsIps = "enabled"
)

Defines values for UpdateSecurityOptionsJSONBodyOptionsIps.

type UpdateSecurityOptionsJSONBodyOptionsJwts added in v0.5.2

type UpdateSecurityOptionsJSONBodyOptionsJwts string

UpdateSecurityOptionsJSONBodyOptionsJwts defines parameters for UpdateSecurityOptions.

const (
	UpdateSecurityOptionsJSONBodyOptionsJwtsDisabled UpdateSecurityOptionsJSONBodyOptionsJwts = "disabled"
	UpdateSecurityOptionsJSONBodyOptionsJwtsEnabled  UpdateSecurityOptionsJSONBodyOptionsJwts = "enabled"
)

Defines values for UpdateSecurityOptionsJSONBodyOptionsJwts.

type UpdateSecurityOptionsJSONBodyOptionsReferrers added in v0.5.2

type UpdateSecurityOptionsJSONBodyOptionsReferrers string

UpdateSecurityOptionsJSONBodyOptionsReferrers defines parameters for UpdateSecurityOptions.

const (
	UpdateSecurityOptionsJSONBodyOptionsReferrersDisabled UpdateSecurityOptionsJSONBodyOptionsReferrers = "disabled"
	UpdateSecurityOptionsJSONBodyOptionsReferrersEnabled  UpdateSecurityOptionsJSONBodyOptionsReferrers = "enabled"
)

Defines values for UpdateSecurityOptionsJSONBodyOptionsReferrers.

type UpdateSecurityOptionsJSONBodyOptionsTokens added in v0.5.2

type UpdateSecurityOptionsJSONBodyOptionsTokens string

UpdateSecurityOptionsJSONBodyOptionsTokens defines parameters for UpdateSecurityOptions.

const (
	UpdateSecurityOptionsJSONBodyOptionsTokensDisabled UpdateSecurityOptionsJSONBodyOptionsTokens = "disabled"
	UpdateSecurityOptionsJSONBodyOptionsTokensEnabled  UpdateSecurityOptionsJSONBodyOptionsTokens = "enabled"
)

Defines values for UpdateSecurityOptionsJSONBodyOptionsTokens.

type UpdateSecurityOptionsJSONRequestBody added in v0.5.2

type UpdateSecurityOptionsJSONRequestBody UpdateSecurityOptionsJSONBody

UpdateSecurityOptionsJSONRequestBody defines body for UpdateSecurityOptions for application/json ContentType.

type UpdateSecurityOptionsResponse added in v0.5.2

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

func ParseUpdateSecurityOptionsResponse added in v0.5.2

func ParseUpdateSecurityOptionsResponse(rsp *http.Response) (*UpdateSecurityOptionsResponse, error)

ParseUpdateSecurityOptionsResponse parses an HTTP response from a UpdateSecurityOptionsWithResponse call

func (UpdateSecurityOptionsResponse) Status added in v0.5.2

Status returns HTTPResponse.Status

func (UpdateSecurityOptionsResponse) StatusCode added in v0.5.2

func (r UpdateSecurityOptionsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UsageByChainParams added in v0.5.2

type UsageByChainParams struct {
	// StartTime Start time
	StartTime *int `form:"start_time,omitempty" json:"start_time,omitempty"`

	// EndTime End time
	EndTime *int `form:"end_time,omitempty" json:"end_time,omitempty"`
}

UsageByChainParams defines parameters for UsageByChain.

type UsageByChainResponse added in v0.5.2

type UsageByChainResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data struct {
			Chains    *[]ChainUsage `json:"chains,omitempty"`
			EndTime   *int          `json:"end_time,omitempty"`
			StartTime *int          `json:"start_time,omitempty"`
		} `json:"data"`
		Error *string `json:"error"`
	}
}

func ParseUsageByChainResponse added in v0.5.2

func ParseUsageByChainResponse(rsp *http.Response) (*UsageByChainResponse, error)

ParseUsageByChainResponse parses an HTTP response from a UsageByChainWithResponse call

func (UsageByChainResponse) Status added in v0.5.2

func (r UsageByChainResponse) Status() string

Status returns HTTPResponse.Status

func (UsageByChainResponse) StatusCode added in v0.5.2

func (r UsageByChainResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UsageByEndpointParams added in v0.5.2

type UsageByEndpointParams struct {
	// StartTime Start time
	StartTime *int `form:"start_time,omitempty" json:"start_time,omitempty"`

	// EndTime End time
	EndTime *int `form:"end_time,omitempty" json:"end_time,omitempty"`
}

UsageByEndpointParams defines parameters for UsageByEndpoint.

type UsageByEndpointResponse added in v0.5.2

type UsageByEndpointResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data *struct {
			EndTime   *int             `json:"end_time,omitempty"`
			Endpoints *[]EndpointUsage `json:"endpoints,omitempty"`
			StartTime *int             `json:"start_time,omitempty"`
		} `json:"data,omitempty"`
		Error *string `json:"error"`
	}
}

func ParseUsageByEndpointResponse added in v0.5.2

func ParseUsageByEndpointResponse(rsp *http.Response) (*UsageByEndpointResponse, error)

ParseUsageByEndpointResponse parses an HTTP response from a UsageByEndpointWithResponse call

func (UsageByEndpointResponse) Status added in v0.5.2

func (r UsageByEndpointResponse) Status() string

Status returns HTTPResponse.Status

func (UsageByEndpointResponse) StatusCode added in v0.5.2

func (r UsageByEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UsageByMethodParams added in v0.5.2

type UsageByMethodParams struct {
	// StartTime Start time
	StartTime *int `form:"start_time,omitempty" json:"start_time,omitempty"`

	// EndTime End time
	EndTime *int `form:"end_time,omitempty" json:"end_time,omitempty"`
}

UsageByMethodParams defines parameters for UsageByMethod.

type UsageByMethodResponse added in v0.5.2

type UsageByMethodResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data *struct {
			EndTime   *int           `json:"end_time,omitempty"`
			Methods   *[]MethodUsage `json:"methods,omitempty"`
			StartTime *int           `json:"start_time,omitempty"`
		} `json:"data,omitempty"`
		Error *string `json:"error"`
	}
}

func ParseUsageByMethodResponse added in v0.5.2

func ParseUsageByMethodResponse(rsp *http.Response) (*UsageByMethodResponse, error)

ParseUsageByMethodResponse parses an HTTP response from a UsageByMethodWithResponse call

func (UsageByMethodResponse) Status added in v0.5.2

func (r UsageByMethodResponse) Status() string

Status returns HTTPResponse.Status

func (UsageByMethodResponse) StatusCode added in v0.5.2

func (r UsageByMethodResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UsageParams added in v0.5.2

type UsageParams struct {
	// StartTime Start time
	StartTime *int `form:"start_time,omitempty" json:"start_time,omitempty"`

	// EndTime End time
	EndTime *int `form:"end_time,omitempty" json:"end_time,omitempty"`
}

UsageParams defines parameters for Usage.

type UsageResponse added in v0.5.2

type UsageResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *struct {
		Data *struct {
			CreditsRemaining *int `json:"credits_remaining"`
			CreditsUsed      int  `json:"credits_used"`
			EndTime          int  `json:"end_time"`
			Limit            *int `json:"limit"`
			Overages         *int `json:"overages"`
			StartTime        int  `json:"start_time"`
		} `json:"data,omitempty"`
		Error *string `json:"error"`
	}
}

func ParseUsageResponse added in v0.5.2

func ParseUsageResponse(rsp *http.Response) (*UsageResponse, error)

ParseUsageResponse parses an HTTP response from a UsageWithResponse call

func (UsageResponse) Status added in v0.5.2

func (r UsageResponse) Status() string

Status returns HTTPResponse.Status

func (UsageResponse) StatusCode added in v0.5.2

func (r UsageResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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