mempool

package
v0.0.0-...-80b2b3e Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const GetMempoolOperationsBadRequestCode int = 400

GetMempoolOperationsBadRequestCode is the HTTP code returned for type GetMempoolOperationsBadRequest

View Source
const GetMempoolOperationsInternalServerErrorCode int = 500

GetMempoolOperationsInternalServerErrorCode is the HTTP code returned for type GetMempoolOperationsInternalServerError

View Source
const GetMempoolOperationsNotFoundCode int = 404

GetMempoolOperationsNotFoundCode is the HTTP code returned for type GetMempoolOperationsNotFound

View Source
const GetMempoolOperationsOKCode int = 200

GetMempoolOperationsOKCode is the HTTP code returned for type GetMempoolOperationsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetMempoolOperations

type GetMempoolOperations struct {
	Context *middleware.Context
	Handler GetMempoolOperationsHandler
}

GetMempoolOperations swagger:route GET /v2/data/{platform}/{network}/mempool Mempool getMempoolOperations

GetMempoolOperations get mempool operations API

func NewGetMempoolOperations

func NewGetMempoolOperations(ctx *middleware.Context, handler GetMempoolOperationsHandler) *GetMempoolOperations

NewGetMempoolOperations creates a new http.Handler for the get mempool operations operation

func (*GetMempoolOperations) ServeHTTP

func (o *GetMempoolOperations) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetMempoolOperationsBadRequest

type GetMempoolOperationsBadRequest struct {
}

GetMempoolOperationsBadRequest Bad request

swagger:response getMempoolOperationsBadRequest

func NewGetMempoolOperationsBadRequest

func NewGetMempoolOperationsBadRequest() *GetMempoolOperationsBadRequest

NewGetMempoolOperationsBadRequest creates GetMempoolOperationsBadRequest with default headers values

func (*GetMempoolOperationsBadRequest) WriteResponse

func (o *GetMempoolOperationsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetMempoolOperationsHandler

type GetMempoolOperationsHandler interface {
	Handle(GetMempoolOperationsParams) middleware.Responder
}

GetMempoolOperationsHandler interface for that can handle valid get mempool operations params

type GetMempoolOperationsHandlerFunc

type GetMempoolOperationsHandlerFunc func(GetMempoolOperationsParams) middleware.Responder

GetMempoolOperationsHandlerFunc turns a function with the right signature into a get mempool operations handler

func (GetMempoolOperationsHandlerFunc) Handle

Handle executing the request and returning a response

type GetMempoolOperationsInternalServerError

type GetMempoolOperationsInternalServerError struct {
}

GetMempoolOperationsInternalServerError Internal error

swagger:response getMempoolOperationsInternalServerError

func NewGetMempoolOperationsInternalServerError

func NewGetMempoolOperationsInternalServerError() *GetMempoolOperationsInternalServerError

NewGetMempoolOperationsInternalServerError creates GetMempoolOperationsInternalServerError with default headers values

func (*GetMempoolOperationsInternalServerError) WriteResponse

WriteResponse to the client

type GetMempoolOperationsNotFound

type GetMempoolOperationsNotFound struct {
}

GetMempoolOperationsNotFound Not Found

swagger:response getMempoolOperationsNotFound

func NewGetMempoolOperationsNotFound

func NewGetMempoolOperationsNotFound() *GetMempoolOperationsNotFound

NewGetMempoolOperationsNotFound creates GetMempoolOperationsNotFound with default headers values

func (*GetMempoolOperationsNotFound) WriteResponse

func (o *GetMempoolOperationsNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetMempoolOperationsOK

type GetMempoolOperationsOK struct {

	/*
	  In: Body
	*/
	Payload []*models.MempoolOperation `json:"body,omitempty"`
}

GetMempoolOperationsOK Query compatibility endpoint for mempool operations

swagger:response getMempoolOperationsOK

func NewGetMempoolOperationsOK

func NewGetMempoolOperationsOK() *GetMempoolOperationsOK

NewGetMempoolOperationsOK creates GetMempoolOperationsOK with default headers values

func (*GetMempoolOperationsOK) SetPayload

func (o *GetMempoolOperationsOK) SetPayload(payload []*models.MempoolOperation)

SetPayload sets the payload to the get mempool operations o k response

func (*GetMempoolOperationsOK) WithPayload

WithPayload adds the payload to the get mempool operations o k response

func (*GetMempoolOperationsOK) WriteResponse

func (o *GetMempoolOperationsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetMempoolOperationsParams

type GetMempoolOperationsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	Network string
	/*
	  Required: true
	  In: path
	*/
	Platform string
}

GetMempoolOperationsParams contains all the bound params for the get mempool operations operation typically these are obtained from a http.Request

swagger:parameters getMempoolOperations

func NewGetMempoolOperationsParams

func NewGetMempoolOperationsParams() GetMempoolOperationsParams

NewGetMempoolOperationsParams creates a new GetMempoolOperationsParams object no default values defined in spec.

func (*GetMempoolOperationsParams) BindRequest

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetMempoolOperationsParams() beforehand.

type GetMempoolOperationsURL

type GetMempoolOperationsURL struct {
	Network  string
	Platform string
	// contains filtered or unexported fields
}

GetMempoolOperationsURL generates an URL for the get mempool operations operation

func (*GetMempoolOperationsURL) Build

func (o *GetMempoolOperationsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetMempoolOperationsURL) BuildFull

func (o *GetMempoolOperationsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetMempoolOperationsURL) Must

func (o *GetMempoolOperationsURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetMempoolOperationsURL) SetBasePath

func (o *GetMempoolOperationsURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetMempoolOperationsURL) String

func (o *GetMempoolOperationsURL) String() string

String returns the string representation of the path with query string

func (*GetMempoolOperationsURL) StringFull

func (o *GetMempoolOperationsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetMempoolOperationsURL) WithBasePath

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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