quicknode

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 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/deepmap/oapi-codegen/v2 version v2.1.0 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 NewDeleteV0EndpointsIdRequest

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

NewDeleteV0EndpointsIdRequest generates requests for DeleteV0EndpointsId

func NewDeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdRequest

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

NewDeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdRequest generates requests for DeleteV0EndpointsIdSecurityDomainMasksDomainMaskId

func NewDeleteV0EndpointsIdSecurityIpsIpIdRequest

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

NewDeleteV0EndpointsIdSecurityIpsIpIdRequest generates requests for DeleteV0EndpointsIdSecurityIpsIpId

func NewDeleteV0EndpointsIdSecurityJwtsJwtIdRequest

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

NewDeleteV0EndpointsIdSecurityJwtsJwtIdRequest generates requests for DeleteV0EndpointsIdSecurityJwtsJwtId

func NewDeleteV0EndpointsIdSecurityReferrersReferrerIdRequest

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

NewDeleteV0EndpointsIdSecurityReferrersReferrerIdRequest generates requests for DeleteV0EndpointsIdSecurityReferrersReferrerId

func NewDeleteV0EndpointsIdSecurityTokensTokenIdRequest

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

NewDeleteV0EndpointsIdSecurityTokensTokenIdRequest generates requests for DeleteV0EndpointsIdSecurityTokensTokenId

func NewGetV0BillingInvoicesRequest added in v0.3.0

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

NewGetV0BillingInvoicesRequest generates requests for GetV0BillingInvoices

func NewGetV0BillingPaymentsRequest added in v0.3.0

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

NewGetV0BillingPaymentsRequest generates requests for GetV0BillingPayments

func NewGetV0ChainsRequest

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

NewGetV0ChainsRequest generates requests for GetV0Chains

func NewGetV0EndpointsIdMetricsRequest added in v0.3.0

func NewGetV0EndpointsIdMetricsRequest(server string, id string, params *GetV0EndpointsIdMetricsParams) (*http.Request, error)

NewGetV0EndpointsIdMetricsRequest generates requests for GetV0EndpointsIdMetrics

func NewGetV0EndpointsIdRequest

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

NewGetV0EndpointsIdRequest generates requests for GetV0EndpointsId

func NewGetV0EndpointsRequest

func NewGetV0EndpointsRequest(server string, params *GetV0EndpointsParams) (*http.Request, error)

NewGetV0EndpointsRequest generates requests for GetV0Endpoints

func NewGetV0UsageRpcByChainRequest

func NewGetV0UsageRpcByChainRequest(server string, params *GetV0UsageRpcByChainParams) (*http.Request, error)

NewGetV0UsageRpcByChainRequest generates requests for GetV0UsageRpcByChain

func NewGetV0UsageRpcByEndpointRequest

func NewGetV0UsageRpcByEndpointRequest(server string, params *GetV0UsageRpcByEndpointParams) (*http.Request, error)

NewGetV0UsageRpcByEndpointRequest generates requests for GetV0UsageRpcByEndpoint

func NewGetV0UsageRpcByMethodRequest

func NewGetV0UsageRpcByMethodRequest(server string, params *GetV0UsageRpcByMethodParams) (*http.Request, error)

NewGetV0UsageRpcByMethodRequest generates requests for GetV0UsageRpcByMethod

func NewGetV0UsageRpcRequest

func NewGetV0UsageRpcRequest(server string, params *GetV0UsageRpcParams) (*http.Request, error)

NewGetV0UsageRpcRequest generates requests for GetV0UsageRpc

func NewPatchV0EndpointsIdRequest

func NewPatchV0EndpointsIdRequest(server string, id string, body PatchV0EndpointsIdJSONRequestBody) (*http.Request, error)

NewPatchV0EndpointsIdRequest calls the generic PatchV0EndpointsId builder with application/json body

func NewPatchV0EndpointsIdRequestWithBody

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

NewPatchV0EndpointsIdRequestWithBody generates requests for PatchV0EndpointsId with any type of body

func NewPostV0EndpointsIdSecurityDomainMasksRequest

func NewPostV0EndpointsIdSecurityDomainMasksRequest(server string, id string, body PostV0EndpointsIdSecurityDomainMasksJSONRequestBody) (*http.Request, error)

NewPostV0EndpointsIdSecurityDomainMasksRequest calls the generic PostV0EndpointsIdSecurityDomainMasks builder with application/json body

func NewPostV0EndpointsIdSecurityDomainMasksRequestWithBody

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

NewPostV0EndpointsIdSecurityDomainMasksRequestWithBody generates requests for PostV0EndpointsIdSecurityDomainMasks with any type of body

func NewPostV0EndpointsIdSecurityIpsRequest

func NewPostV0EndpointsIdSecurityIpsRequest(server string, id string, body PostV0EndpointsIdSecurityIpsJSONRequestBody) (*http.Request, error)

NewPostV0EndpointsIdSecurityIpsRequest calls the generic PostV0EndpointsIdSecurityIps builder with application/json body

func NewPostV0EndpointsIdSecurityIpsRequestWithBody

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

NewPostV0EndpointsIdSecurityIpsRequestWithBody generates requests for PostV0EndpointsIdSecurityIps with any type of body

func NewPostV0EndpointsIdSecurityJwtsRequest

func NewPostV0EndpointsIdSecurityJwtsRequest(server string, id string, body PostV0EndpointsIdSecurityJwtsJSONRequestBody) (*http.Request, error)

NewPostV0EndpointsIdSecurityJwtsRequest calls the generic PostV0EndpointsIdSecurityJwts builder with application/json body

func NewPostV0EndpointsIdSecurityJwtsRequestWithBody

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

NewPostV0EndpointsIdSecurityJwtsRequestWithBody generates requests for PostV0EndpointsIdSecurityJwts with any type of body

func NewPostV0EndpointsIdSecurityReferrersRequest

func NewPostV0EndpointsIdSecurityReferrersRequest(server string, id string, body PostV0EndpointsIdSecurityReferrersJSONRequestBody) (*http.Request, error)

NewPostV0EndpointsIdSecurityReferrersRequest calls the generic PostV0EndpointsIdSecurityReferrers builder with application/json body

func NewPostV0EndpointsIdSecurityReferrersRequestWithBody

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

NewPostV0EndpointsIdSecurityReferrersRequestWithBody generates requests for PostV0EndpointsIdSecurityReferrers with any type of body

func NewPostV0EndpointsIdSecurityTokensRequest

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

NewPostV0EndpointsIdSecurityTokensRequest generates requests for PostV0EndpointsIdSecurityTokens

func NewPostV0EndpointsRequest

func NewPostV0EndpointsRequest(server string, body PostV0EndpointsJSONRequestBody) (*http.Request, error)

NewPostV0EndpointsRequest calls the generic PostV0Endpoints builder with application/json body

func NewPostV0EndpointsRequestWithBody

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

NewPostV0EndpointsRequestWithBody generates requests for PostV0Endpoints with any type of body

func NewPutV0EndpointsIdRateLimitsRequest added in v0.3.0

func NewPutV0EndpointsIdRateLimitsRequest(server string, id string, body PutV0EndpointsIdRateLimitsJSONRequestBody) (*http.Request, error)

NewPutV0EndpointsIdRateLimitsRequest calls the generic PutV0EndpointsIdRateLimits builder with application/json body

func NewPutV0EndpointsIdRateLimitsRequestWithBody added in v0.3.0

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

NewPutV0EndpointsIdRateLimitsRequestWithBody generates requests for PutV0EndpointsIdRateLimits with any type of body

func PathToRawSpec

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

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

Types

type Chain

type Chain struct {
	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 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) DeleteV0EndpointsId

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

func (*Client) DeleteV0EndpointsIdSecurityDomainMasksDomainMaskId

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

func (*Client) DeleteV0EndpointsIdSecurityIpsIpId

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

func (*Client) DeleteV0EndpointsIdSecurityJwtsJwtId

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

func (*Client) DeleteV0EndpointsIdSecurityReferrersReferrerId

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

func (*Client) DeleteV0EndpointsIdSecurityTokensTokenId

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

func (*Client) GetV0BillingInvoices added in v0.3.0

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

func (*Client) GetV0BillingPayments added in v0.3.0

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

func (*Client) GetV0Chains

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

func (*Client) GetV0Endpoints

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

func (*Client) GetV0EndpointsId

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

func (*Client) GetV0EndpointsIdMetrics added in v0.3.0

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

func (*Client) GetV0UsageRpc

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

func (*Client) GetV0UsageRpcByChain

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

func (*Client) GetV0UsageRpcByEndpoint

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

func (*Client) GetV0UsageRpcByMethod

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

func (*Client) PatchV0EndpointsId

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

func (*Client) PatchV0EndpointsIdWithBody

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

func (*Client) PostV0Endpoints

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

func (*Client) PostV0EndpointsIdSecurityDomainMasks

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

func (*Client) PostV0EndpointsIdSecurityDomainMasksWithBody

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

func (*Client) PostV0EndpointsIdSecurityIps

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

func (*Client) PostV0EndpointsIdSecurityIpsWithBody

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

func (*Client) PostV0EndpointsIdSecurityJwts

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

func (*Client) PostV0EndpointsIdSecurityJwtsWithBody

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

func (*Client) PostV0EndpointsIdSecurityReferrers

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

func (*Client) PostV0EndpointsIdSecurityReferrersWithBody

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

func (*Client) PostV0EndpointsIdSecurityTokens

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

func (*Client) PostV0EndpointsWithBody

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

func (*Client) PutV0EndpointsIdRateLimits added in v0.3.0

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

func (*Client) PutV0EndpointsIdRateLimitsWithBody added in v0.3.0

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

type ClientInterface

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

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

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

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

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

	PostV0Endpoints(ctx context.Context, body PostV0EndpointsJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

	// GetV0UsageRpcByMethod request
	GetV0UsageRpcByMethod(ctx context.Context, params *GetV0UsageRpcByMethodParams, 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) DeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdWithResponse

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

DeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdWithResponse request returning *DeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdResponse

func (*ClientWithResponses) DeleteV0EndpointsIdSecurityIpsIpIdWithResponse

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

DeleteV0EndpointsIdSecurityIpsIpIdWithResponse request returning *DeleteV0EndpointsIdSecurityIpsIpIdResponse

func (*ClientWithResponses) DeleteV0EndpointsIdSecurityJwtsJwtIdWithResponse

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

DeleteV0EndpointsIdSecurityJwtsJwtIdWithResponse request returning *DeleteV0EndpointsIdSecurityJwtsJwtIdResponse

func (*ClientWithResponses) DeleteV0EndpointsIdSecurityReferrersReferrerIdWithResponse

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

DeleteV0EndpointsIdSecurityReferrersReferrerIdWithResponse request returning *DeleteV0EndpointsIdSecurityReferrersReferrerIdResponse

func (*ClientWithResponses) DeleteV0EndpointsIdSecurityTokensTokenIdWithResponse

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

DeleteV0EndpointsIdSecurityTokensTokenIdWithResponse request returning *DeleteV0EndpointsIdSecurityTokensTokenIdResponse

func (*ClientWithResponses) DeleteV0EndpointsIdWithResponse

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

DeleteV0EndpointsIdWithResponse request returning *DeleteV0EndpointsIdResponse

func (*ClientWithResponses) GetV0BillingInvoicesWithResponse added in v0.3.0

func (c *ClientWithResponses) GetV0BillingInvoicesWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetV0BillingInvoicesResponse, error)

GetV0BillingInvoicesWithResponse request returning *GetV0BillingInvoicesResponse

func (*ClientWithResponses) GetV0BillingPaymentsWithResponse added in v0.3.0

func (c *ClientWithResponses) GetV0BillingPaymentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetV0BillingPaymentsResponse, error)

GetV0BillingPaymentsWithResponse request returning *GetV0BillingPaymentsResponse

func (*ClientWithResponses) GetV0ChainsWithResponse

func (c *ClientWithResponses) GetV0ChainsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetV0ChainsResponse, error)

GetV0ChainsWithResponse request returning *GetV0ChainsResponse

func (*ClientWithResponses) GetV0EndpointsIdMetricsWithResponse added in v0.3.0

func (c *ClientWithResponses) GetV0EndpointsIdMetricsWithResponse(ctx context.Context, id string, params *GetV0EndpointsIdMetricsParams, reqEditors ...RequestEditorFn) (*GetV0EndpointsIdMetricsResponse, error)

GetV0EndpointsIdMetricsWithResponse request returning *GetV0EndpointsIdMetricsResponse

func (*ClientWithResponses) GetV0EndpointsIdWithResponse

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

GetV0EndpointsIdWithResponse request returning *GetV0EndpointsIdResponse

func (*ClientWithResponses) GetV0EndpointsWithResponse

func (c *ClientWithResponses) GetV0EndpointsWithResponse(ctx context.Context, params *GetV0EndpointsParams, reqEditors ...RequestEditorFn) (*GetV0EndpointsResponse, error)

GetV0EndpointsWithResponse request returning *GetV0EndpointsResponse

func (*ClientWithResponses) GetV0UsageRpcByChainWithResponse

func (c *ClientWithResponses) GetV0UsageRpcByChainWithResponse(ctx context.Context, params *GetV0UsageRpcByChainParams, reqEditors ...RequestEditorFn) (*GetV0UsageRpcByChainResponse, error)

GetV0UsageRpcByChainWithResponse request returning *GetV0UsageRpcByChainResponse

func (*ClientWithResponses) GetV0UsageRpcByEndpointWithResponse

func (c *ClientWithResponses) GetV0UsageRpcByEndpointWithResponse(ctx context.Context, params *GetV0UsageRpcByEndpointParams, reqEditors ...RequestEditorFn) (*GetV0UsageRpcByEndpointResponse, error)

GetV0UsageRpcByEndpointWithResponse request returning *GetV0UsageRpcByEndpointResponse

func (*ClientWithResponses) GetV0UsageRpcByMethodWithResponse

func (c *ClientWithResponses) GetV0UsageRpcByMethodWithResponse(ctx context.Context, params *GetV0UsageRpcByMethodParams, reqEditors ...RequestEditorFn) (*GetV0UsageRpcByMethodResponse, error)

GetV0UsageRpcByMethodWithResponse request returning *GetV0UsageRpcByMethodResponse

func (*ClientWithResponses) GetV0UsageRpcWithResponse

func (c *ClientWithResponses) GetV0UsageRpcWithResponse(ctx context.Context, params *GetV0UsageRpcParams, reqEditors ...RequestEditorFn) (*GetV0UsageRpcResponse, error)

GetV0UsageRpcWithResponse request returning *GetV0UsageRpcResponse

func (*ClientWithResponses) PatchV0EndpointsIdWithBodyWithResponse

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

PatchV0EndpointsIdWithBodyWithResponse request with arbitrary body returning *PatchV0EndpointsIdResponse

func (*ClientWithResponses) PatchV0EndpointsIdWithResponse

func (c *ClientWithResponses) PatchV0EndpointsIdWithResponse(ctx context.Context, id string, body PatchV0EndpointsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchV0EndpointsIdResponse, error)

func (*ClientWithResponses) PostV0EndpointsIdSecurityDomainMasksWithBodyWithResponse

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

PostV0EndpointsIdSecurityDomainMasksWithBodyWithResponse request with arbitrary body returning *PostV0EndpointsIdSecurityDomainMasksResponse

func (*ClientWithResponses) PostV0EndpointsIdSecurityIpsWithBodyWithResponse

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

PostV0EndpointsIdSecurityIpsWithBodyWithResponse request with arbitrary body returning *PostV0EndpointsIdSecurityIpsResponse

func (*ClientWithResponses) PostV0EndpointsIdSecurityIpsWithResponse

func (c *ClientWithResponses) PostV0EndpointsIdSecurityIpsWithResponse(ctx context.Context, id string, body PostV0EndpointsIdSecurityIpsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV0EndpointsIdSecurityIpsResponse, error)

func (*ClientWithResponses) PostV0EndpointsIdSecurityJwtsWithBodyWithResponse

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

PostV0EndpointsIdSecurityJwtsWithBodyWithResponse request with arbitrary body returning *PostV0EndpointsIdSecurityJwtsResponse

func (*ClientWithResponses) PostV0EndpointsIdSecurityJwtsWithResponse

func (c *ClientWithResponses) PostV0EndpointsIdSecurityJwtsWithResponse(ctx context.Context, id string, body PostV0EndpointsIdSecurityJwtsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV0EndpointsIdSecurityJwtsResponse, error)

func (*ClientWithResponses) PostV0EndpointsIdSecurityReferrersWithBodyWithResponse

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

PostV0EndpointsIdSecurityReferrersWithBodyWithResponse request with arbitrary body returning *PostV0EndpointsIdSecurityReferrersResponse

func (*ClientWithResponses) PostV0EndpointsIdSecurityTokensWithResponse

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

PostV0EndpointsIdSecurityTokensWithResponse request returning *PostV0EndpointsIdSecurityTokensResponse

func (*ClientWithResponses) PostV0EndpointsWithBodyWithResponse

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

PostV0EndpointsWithBodyWithResponse request with arbitrary body returning *PostV0EndpointsResponse

func (*ClientWithResponses) PostV0EndpointsWithResponse

func (c *ClientWithResponses) PostV0EndpointsWithResponse(ctx context.Context, body PostV0EndpointsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV0EndpointsResponse, error)

func (*ClientWithResponses) PutV0EndpointsIdRateLimitsWithBodyWithResponse added in v0.3.0

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

PutV0EndpointsIdRateLimitsWithBodyWithResponse request with arbitrary body returning *PutV0EndpointsIdRateLimitsResponse

func (*ClientWithResponses) PutV0EndpointsIdRateLimitsWithResponse added in v0.3.0

func (c *ClientWithResponses) PutV0EndpointsIdRateLimitsWithResponse(ctx context.Context, id string, body PutV0EndpointsIdRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV0EndpointsIdRateLimitsResponse, error)

type ClientWithResponsesInterface

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

	// GetV0BillingPaymentsWithResponse request
	GetV0BillingPaymentsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetV0BillingPaymentsResponse, error)

	// GetV0ChainsWithResponse request
	GetV0ChainsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetV0ChainsResponse, error)

	// GetV0EndpointsWithResponse request
	GetV0EndpointsWithResponse(ctx context.Context, params *GetV0EndpointsParams, reqEditors ...RequestEditorFn) (*GetV0EndpointsResponse, error)

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

	PostV0EndpointsWithResponse(ctx context.Context, body PostV0EndpointsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV0EndpointsResponse, error)

	// DeleteV0EndpointsIdWithResponse request
	DeleteV0EndpointsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteV0EndpointsIdResponse, error)

	// GetV0EndpointsIdWithResponse request
	GetV0EndpointsIdWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*GetV0EndpointsIdResponse, error)

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

	PatchV0EndpointsIdWithResponse(ctx context.Context, id string, body PatchV0EndpointsIdJSONRequestBody, reqEditors ...RequestEditorFn) (*PatchV0EndpointsIdResponse, error)

	// GetV0EndpointsIdMetricsWithResponse request
	GetV0EndpointsIdMetricsWithResponse(ctx context.Context, id string, params *GetV0EndpointsIdMetricsParams, reqEditors ...RequestEditorFn) (*GetV0EndpointsIdMetricsResponse, error)

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

	PutV0EndpointsIdRateLimitsWithResponse(ctx context.Context, id string, body PutV0EndpointsIdRateLimitsJSONRequestBody, reqEditors ...RequestEditorFn) (*PutV0EndpointsIdRateLimitsResponse, error)

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

	PostV0EndpointsIdSecurityDomainMasksWithResponse(ctx context.Context, id string, body PostV0EndpointsIdSecurityDomainMasksJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV0EndpointsIdSecurityDomainMasksResponse, error)

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

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

	PostV0EndpointsIdSecurityIpsWithResponse(ctx context.Context, id string, body PostV0EndpointsIdSecurityIpsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV0EndpointsIdSecurityIpsResponse, error)

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

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

	PostV0EndpointsIdSecurityJwtsWithResponse(ctx context.Context, id string, body PostV0EndpointsIdSecurityJwtsJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV0EndpointsIdSecurityJwtsResponse, error)

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

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

	PostV0EndpointsIdSecurityReferrersWithResponse(ctx context.Context, id string, body PostV0EndpointsIdSecurityReferrersJSONRequestBody, reqEditors ...RequestEditorFn) (*PostV0EndpointsIdSecurityReferrersResponse, error)

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

	// PostV0EndpointsIdSecurityTokensWithResponse request
	PostV0EndpointsIdSecurityTokensWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*PostV0EndpointsIdSecurityTokensResponse, error)

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

	// GetV0UsageRpcWithResponse request
	GetV0UsageRpcWithResponse(ctx context.Context, params *GetV0UsageRpcParams, reqEditors ...RequestEditorFn) (*GetV0UsageRpcResponse, error)

	// GetV0UsageRpcByChainWithResponse request
	GetV0UsageRpcByChainWithResponse(ctx context.Context, params *GetV0UsageRpcByChainParams, reqEditors ...RequestEditorFn) (*GetV0UsageRpcByChainResponse, error)

	// GetV0UsageRpcByEndpointWithResponse request
	GetV0UsageRpcByEndpointWithResponse(ctx context.Context, params *GetV0UsageRpcByEndpointParams, reqEditors ...RequestEditorFn) (*GetV0UsageRpcByEndpointResponse, error)

	// GetV0UsageRpcByMethodWithResponse request
	GetV0UsageRpcByMethodWithResponse(ctx context.Context, params *GetV0UsageRpcByMethodParams, reqEditors ...RequestEditorFn) (*GetV0UsageRpcByMethodResponse, error)
}

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

type DeleteV0EndpointsIdResponse

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

func ParseDeleteV0EndpointsIdResponse

func ParseDeleteV0EndpointsIdResponse(rsp *http.Response) (*DeleteV0EndpointsIdResponse, error)

ParseDeleteV0EndpointsIdResponse parses an HTTP response from a DeleteV0EndpointsIdWithResponse call

func (DeleteV0EndpointsIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteV0EndpointsIdResponse) StatusCode

func (r DeleteV0EndpointsIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdResponse

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

func ParseDeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdResponse

func ParseDeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdResponse(rsp *http.Response) (*DeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdResponse, error)

ParseDeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdResponse parses an HTTP response from a DeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdWithResponse call

func (DeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteV0EndpointsIdSecurityDomainMasksDomainMaskIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteV0EndpointsIdSecurityIpsIpIdResponse

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

func ParseDeleteV0EndpointsIdSecurityIpsIpIdResponse

func ParseDeleteV0EndpointsIdSecurityIpsIpIdResponse(rsp *http.Response) (*DeleteV0EndpointsIdSecurityIpsIpIdResponse, error)

ParseDeleteV0EndpointsIdSecurityIpsIpIdResponse parses an HTTP response from a DeleteV0EndpointsIdSecurityIpsIpIdWithResponse call

func (DeleteV0EndpointsIdSecurityIpsIpIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteV0EndpointsIdSecurityIpsIpIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteV0EndpointsIdSecurityJwtsJwtIdResponse

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

func ParseDeleteV0EndpointsIdSecurityJwtsJwtIdResponse

func ParseDeleteV0EndpointsIdSecurityJwtsJwtIdResponse(rsp *http.Response) (*DeleteV0EndpointsIdSecurityJwtsJwtIdResponse, error)

ParseDeleteV0EndpointsIdSecurityJwtsJwtIdResponse parses an HTTP response from a DeleteV0EndpointsIdSecurityJwtsJwtIdWithResponse call

func (DeleteV0EndpointsIdSecurityJwtsJwtIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteV0EndpointsIdSecurityJwtsJwtIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteV0EndpointsIdSecurityReferrersReferrerIdResponse

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

func ParseDeleteV0EndpointsIdSecurityReferrersReferrerIdResponse

func ParseDeleteV0EndpointsIdSecurityReferrersReferrerIdResponse(rsp *http.Response) (*DeleteV0EndpointsIdSecurityReferrersReferrerIdResponse, error)

ParseDeleteV0EndpointsIdSecurityReferrersReferrerIdResponse parses an HTTP response from a DeleteV0EndpointsIdSecurityReferrersReferrerIdWithResponse call

func (DeleteV0EndpointsIdSecurityReferrersReferrerIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteV0EndpointsIdSecurityReferrersReferrerIdResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type DeleteV0EndpointsIdSecurityTokensTokenIdResponse

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

func ParseDeleteV0EndpointsIdSecurityTokensTokenIdResponse

func ParseDeleteV0EndpointsIdSecurityTokensTokenIdResponse(rsp *http.Response) (*DeleteV0EndpointsIdSecurityTokensTokenIdResponse, error)

ParseDeleteV0EndpointsIdSecurityTokensTokenIdResponse parses an HTTP response from a DeleteV0EndpointsIdSecurityTokensTokenIdWithResponse call

func (DeleteV0EndpointsIdSecurityTokensTokenIdResponse) Status

Status returns HTTPResponse.Status

func (DeleteV0EndpointsIdSecurityTokensTokenIdResponse) StatusCode

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 *[][]interface{} `json:"data,omitempty"`
	Tag  *string          `json:"tag,omitempty"`
}

EndpointMetric defines model for endpoint_metric.

type EndpointRateLimits added in v0.3.0

type EndpointRateLimits struct {
	Cps           *int  `json:"cps"`
	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:"domain_masks"`
		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 GetV0BillingInvoicesResponse added in v0.3.0

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

func ParseGetV0BillingInvoicesResponse added in v0.3.0

func ParseGetV0BillingInvoicesResponse(rsp *http.Response) (*GetV0BillingInvoicesResponse, error)

ParseGetV0BillingInvoicesResponse parses an HTTP response from a GetV0BillingInvoicesWithResponse call

func (GetV0BillingInvoicesResponse) Status added in v0.3.0

Status returns HTTPResponse.Status

func (GetV0BillingInvoicesResponse) StatusCode added in v0.3.0

func (r GetV0BillingInvoicesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV0BillingPaymentsResponse added in v0.3.0

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

func ParseGetV0BillingPaymentsResponse added in v0.3.0

func ParseGetV0BillingPaymentsResponse(rsp *http.Response) (*GetV0BillingPaymentsResponse, error)

ParseGetV0BillingPaymentsResponse parses an HTTP response from a GetV0BillingPaymentsWithResponse call

func (GetV0BillingPaymentsResponse) Status added in v0.3.0

Status returns HTTPResponse.Status

func (GetV0BillingPaymentsResponse) StatusCode added in v0.3.0

func (r GetV0BillingPaymentsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV0ChainsResponse

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

func ParseGetV0ChainsResponse

func ParseGetV0ChainsResponse(rsp *http.Response) (*GetV0ChainsResponse, error)

ParseGetV0ChainsResponse parses an HTTP response from a GetV0ChainsWithResponse call

func (GetV0ChainsResponse) Status

func (r GetV0ChainsResponse) Status() string

Status returns HTTPResponse.Status

func (GetV0ChainsResponse) StatusCode

func (r GetV0ChainsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV0EndpointsIdMetricsParams added in v0.3.0

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

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

GetV0EndpointsIdMetricsParams defines parameters for GetV0EndpointsIdMetrics.

type GetV0EndpointsIdMetricsResponse added in v0.3.0

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

func ParseGetV0EndpointsIdMetricsResponse added in v0.3.0

func ParseGetV0EndpointsIdMetricsResponse(rsp *http.Response) (*GetV0EndpointsIdMetricsResponse, error)

ParseGetV0EndpointsIdMetricsResponse parses an HTTP response from a GetV0EndpointsIdMetricsWithResponse call

func (GetV0EndpointsIdMetricsResponse) Status added in v0.3.0

Status returns HTTPResponse.Status

func (GetV0EndpointsIdMetricsResponse) StatusCode added in v0.3.0

func (r GetV0EndpointsIdMetricsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV0EndpointsIdResponse

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

func ParseGetV0EndpointsIdResponse

func ParseGetV0EndpointsIdResponse(rsp *http.Response) (*GetV0EndpointsIdResponse, error)

ParseGetV0EndpointsIdResponse parses an HTTP response from a GetV0EndpointsIdWithResponse call

func (GetV0EndpointsIdResponse) Status

func (r GetV0EndpointsIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetV0EndpointsIdResponse) StatusCode

func (r GetV0EndpointsIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV0EndpointsParams added in v0.3.0

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

GetV0EndpointsParams defines parameters for GetV0Endpoints.

type GetV0EndpointsResponse

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

func ParseGetV0EndpointsResponse

func ParseGetV0EndpointsResponse(rsp *http.Response) (*GetV0EndpointsResponse, error)

ParseGetV0EndpointsResponse parses an HTTP response from a GetV0EndpointsWithResponse call

func (GetV0EndpointsResponse) Status

func (r GetV0EndpointsResponse) Status() string

Status returns HTTPResponse.Status

func (GetV0EndpointsResponse) StatusCode

func (r GetV0EndpointsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV0UsageRpcByChainParams

type GetV0UsageRpcByChainParams 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"`
}

GetV0UsageRpcByChainParams defines parameters for GetV0UsageRpcByChain.

type GetV0UsageRpcByChainResponse

type GetV0UsageRpcByChainResponse 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 ParseGetV0UsageRpcByChainResponse

func ParseGetV0UsageRpcByChainResponse(rsp *http.Response) (*GetV0UsageRpcByChainResponse, error)

ParseGetV0UsageRpcByChainResponse parses an HTTP response from a GetV0UsageRpcByChainWithResponse call

func (GetV0UsageRpcByChainResponse) Status

Status returns HTTPResponse.Status

func (GetV0UsageRpcByChainResponse) StatusCode

func (r GetV0UsageRpcByChainResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV0UsageRpcByEndpointParams

type GetV0UsageRpcByEndpointParams 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"`
}

GetV0UsageRpcByEndpointParams defines parameters for GetV0UsageRpcByEndpoint.

type GetV0UsageRpcByEndpointResponse

type GetV0UsageRpcByEndpointResponse 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 ParseGetV0UsageRpcByEndpointResponse

func ParseGetV0UsageRpcByEndpointResponse(rsp *http.Response) (*GetV0UsageRpcByEndpointResponse, error)

ParseGetV0UsageRpcByEndpointResponse parses an HTTP response from a GetV0UsageRpcByEndpointWithResponse call

func (GetV0UsageRpcByEndpointResponse) Status

Status returns HTTPResponse.Status

func (GetV0UsageRpcByEndpointResponse) StatusCode

func (r GetV0UsageRpcByEndpointResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV0UsageRpcByMethodParams

type GetV0UsageRpcByMethodParams 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"`
}

GetV0UsageRpcByMethodParams defines parameters for GetV0UsageRpcByMethod.

type GetV0UsageRpcByMethodResponse

type GetV0UsageRpcByMethodResponse 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 ParseGetV0UsageRpcByMethodResponse

func ParseGetV0UsageRpcByMethodResponse(rsp *http.Response) (*GetV0UsageRpcByMethodResponse, error)

ParseGetV0UsageRpcByMethodResponse parses an HTTP response from a GetV0UsageRpcByMethodWithResponse call

func (GetV0UsageRpcByMethodResponse) Status

Status returns HTTPResponse.Status

func (GetV0UsageRpcByMethodResponse) StatusCode

func (r GetV0UsageRpcByMethodResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetV0UsageRpcParams

type GetV0UsageRpcParams 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"`
}

GetV0UsageRpcParams defines parameters for GetV0UsageRpc.

type GetV0UsageRpcResponse

type GetV0UsageRpcResponse 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 ParseGetV0UsageRpcResponse

func ParseGetV0UsageRpcResponse(rsp *http.Response) (*GetV0UsageRpcResponse, error)

ParseGetV0UsageRpcResponse parses an HTTP response from a GetV0UsageRpcWithResponse call

func (GetV0UsageRpcResponse) Status

func (r GetV0UsageRpcResponse) Status() string

Status returns HTTPResponse.Status

func (GetV0UsageRpcResponse) StatusCode

func (r GetV0UsageRpcResponse) 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 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 PatchV0EndpointsIdJSONBody

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

PatchV0EndpointsIdJSONBody defines parameters for PatchV0EndpointsId.

type PatchV0EndpointsIdJSONRequestBody

type PatchV0EndpointsIdJSONRequestBody PatchV0EndpointsIdJSONBody

PatchV0EndpointsIdJSONRequestBody defines body for PatchV0EndpointsId for application/json ContentType.

type PatchV0EndpointsIdResponse

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

func ParsePatchV0EndpointsIdResponse

func ParsePatchV0EndpointsIdResponse(rsp *http.Response) (*PatchV0EndpointsIdResponse, error)

ParsePatchV0EndpointsIdResponse parses an HTTP response from a PatchV0EndpointsIdWithResponse call

func (PatchV0EndpointsIdResponse) Status

Status returns HTTPResponse.Status

func (PatchV0EndpointsIdResponse) StatusCode

func (r PatchV0EndpointsIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

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 PostV0EndpointsIdSecurityDomainMasksJSONBody

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

PostV0EndpointsIdSecurityDomainMasksJSONBody defines parameters for PostV0EndpointsIdSecurityDomainMasks.

type PostV0EndpointsIdSecurityDomainMasksJSONRequestBody

type PostV0EndpointsIdSecurityDomainMasksJSONRequestBody PostV0EndpointsIdSecurityDomainMasksJSONBody

PostV0EndpointsIdSecurityDomainMasksJSONRequestBody defines body for PostV0EndpointsIdSecurityDomainMasks for application/json ContentType.

type PostV0EndpointsIdSecurityDomainMasksResponse

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

func ParsePostV0EndpointsIdSecurityDomainMasksResponse

func ParsePostV0EndpointsIdSecurityDomainMasksResponse(rsp *http.Response) (*PostV0EndpointsIdSecurityDomainMasksResponse, error)

ParsePostV0EndpointsIdSecurityDomainMasksResponse parses an HTTP response from a PostV0EndpointsIdSecurityDomainMasksWithResponse call

func (PostV0EndpointsIdSecurityDomainMasksResponse) Status

Status returns HTTPResponse.Status

func (PostV0EndpointsIdSecurityDomainMasksResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostV0EndpointsIdSecurityIpsJSONBody

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

PostV0EndpointsIdSecurityIpsJSONBody defines parameters for PostV0EndpointsIdSecurityIps.

type PostV0EndpointsIdSecurityIpsJSONRequestBody

type PostV0EndpointsIdSecurityIpsJSONRequestBody PostV0EndpointsIdSecurityIpsJSONBody

PostV0EndpointsIdSecurityIpsJSONRequestBody defines body for PostV0EndpointsIdSecurityIps for application/json ContentType.

type PostV0EndpointsIdSecurityIpsResponse

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

func ParsePostV0EndpointsIdSecurityIpsResponse

func ParsePostV0EndpointsIdSecurityIpsResponse(rsp *http.Response) (*PostV0EndpointsIdSecurityIpsResponse, error)

ParsePostV0EndpointsIdSecurityIpsResponse parses an HTTP response from a PostV0EndpointsIdSecurityIpsWithResponse call

func (PostV0EndpointsIdSecurityIpsResponse) Status

Status returns HTTPResponse.Status

func (PostV0EndpointsIdSecurityIpsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostV0EndpointsIdSecurityJwtsJSONBody

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

PostV0EndpointsIdSecurityJwtsJSONBody defines parameters for PostV0EndpointsIdSecurityJwts.

type PostV0EndpointsIdSecurityJwtsJSONRequestBody

type PostV0EndpointsIdSecurityJwtsJSONRequestBody PostV0EndpointsIdSecurityJwtsJSONBody

PostV0EndpointsIdSecurityJwtsJSONRequestBody defines body for PostV0EndpointsIdSecurityJwts for application/json ContentType.

type PostV0EndpointsIdSecurityJwtsResponse

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

func ParsePostV0EndpointsIdSecurityJwtsResponse

func ParsePostV0EndpointsIdSecurityJwtsResponse(rsp *http.Response) (*PostV0EndpointsIdSecurityJwtsResponse, error)

ParsePostV0EndpointsIdSecurityJwtsResponse parses an HTTP response from a PostV0EndpointsIdSecurityJwtsWithResponse call

func (PostV0EndpointsIdSecurityJwtsResponse) Status

Status returns HTTPResponse.Status

func (PostV0EndpointsIdSecurityJwtsResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostV0EndpointsIdSecurityReferrersJSONBody

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

PostV0EndpointsIdSecurityReferrersJSONBody defines parameters for PostV0EndpointsIdSecurityReferrers.

type PostV0EndpointsIdSecurityReferrersJSONRequestBody

type PostV0EndpointsIdSecurityReferrersJSONRequestBody PostV0EndpointsIdSecurityReferrersJSONBody

PostV0EndpointsIdSecurityReferrersJSONRequestBody defines body for PostV0EndpointsIdSecurityReferrers for application/json ContentType.

type PostV0EndpointsIdSecurityReferrersResponse

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

func ParsePostV0EndpointsIdSecurityReferrersResponse

func ParsePostV0EndpointsIdSecurityReferrersResponse(rsp *http.Response) (*PostV0EndpointsIdSecurityReferrersResponse, error)

ParsePostV0EndpointsIdSecurityReferrersResponse parses an HTTP response from a PostV0EndpointsIdSecurityReferrersWithResponse call

func (PostV0EndpointsIdSecurityReferrersResponse) Status

Status returns HTTPResponse.Status

func (PostV0EndpointsIdSecurityReferrersResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostV0EndpointsIdSecurityTokensResponse

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

func ParsePostV0EndpointsIdSecurityTokensResponse

func ParsePostV0EndpointsIdSecurityTokensResponse(rsp *http.Response) (*PostV0EndpointsIdSecurityTokensResponse, error)

ParsePostV0EndpointsIdSecurityTokensResponse parses an HTTP response from a PostV0EndpointsIdSecurityTokensWithResponse call

func (PostV0EndpointsIdSecurityTokensResponse) Status

Status returns HTTPResponse.Status

func (PostV0EndpointsIdSecurityTokensResponse) StatusCode

StatusCode returns HTTPResponse.StatusCode

type PostV0EndpointsJSONBody

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

PostV0EndpointsJSONBody defines parameters for PostV0Endpoints.

type PostV0EndpointsJSONRequestBody

type PostV0EndpointsJSONRequestBody PostV0EndpointsJSONBody

PostV0EndpointsJSONRequestBody defines body for PostV0Endpoints for application/json ContentType.

type PostV0EndpointsResponse

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

func ParsePostV0EndpointsResponse

func ParsePostV0EndpointsResponse(rsp *http.Response) (*PostV0EndpointsResponse, error)

ParsePostV0EndpointsResponse parses an HTTP response from a PostV0EndpointsWithResponse call

func (PostV0EndpointsResponse) Status

func (r PostV0EndpointsResponse) Status() string

Status returns HTTPResponse.Status

func (PostV0EndpointsResponse) StatusCode

func (r PostV0EndpointsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type PutV0EndpointsIdRateLimitsJSONBody added in v0.3.0

type PutV0EndpointsIdRateLimitsJSONBody struct {
	Cps *int `json:"cps,omitempty"`
	Rpd *int `json:"rpd,omitempty"`
	Rpm *int `json:"rpm,omitempty"`
	Rps *int `json:"rps,omitempty"`
}

PutV0EndpointsIdRateLimitsJSONBody defines parameters for PutV0EndpointsIdRateLimits.

type PutV0EndpointsIdRateLimitsJSONRequestBody added in v0.3.0

type PutV0EndpointsIdRateLimitsJSONRequestBody PutV0EndpointsIdRateLimitsJSONBody

PutV0EndpointsIdRateLimitsJSONRequestBody defines body for PutV0EndpointsIdRateLimits for application/json ContentType.

type PutV0EndpointsIdRateLimitsResponse added in v0.3.0

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

func ParsePutV0EndpointsIdRateLimitsResponse added in v0.3.0

func ParsePutV0EndpointsIdRateLimitsResponse(rsp *http.Response) (*PutV0EndpointsIdRateLimitsResponse, error)

ParsePutV0EndpointsIdRateLimitsResponse parses an HTTP response from a PutV0EndpointsIdRateLimitsWithResponse call

func (PutV0EndpointsIdRateLimitsResponse) Status added in v0.3.0

Status returns HTTPResponse.Status

func (PutV0EndpointsIdRateLimitsResponse) StatusCode added in v0.3.0

func (r PutV0EndpointsIdRateLimitsResponse) 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 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.

Jump to

Keyboard shortcuts

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