erc_721_swaps

package
v0.0.0-...-0b5acb0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const GetErc721SwapsBadRequestCode int = 400

GetErc721SwapsBadRequestCode is the HTTP code returned for type GetErc721SwapsBadRequest

View Source
const GetErc721SwapsInternalServerErrorCode int = 500

GetErc721SwapsInternalServerErrorCode is the HTTP code returned for type GetErc721SwapsInternalServerError

View Source
const GetErc721SwapsOKCode int = 200

GetErc721SwapsOKCode is the HTTP code returned for type GetErc721SwapsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetErc721Swaps

type GetErc721Swaps struct {
	Context *middleware.Context
	Handler GetErc721SwapsHandler
}
GetErc721Swaps swagger:route GET /v1/erc-721-swaps erc_721_swaps getErc721Swaps

Gets list of ERC721 swap.

func NewGetErc721Swaps

func NewGetErc721Swaps(ctx *middleware.Context, handler GetErc721SwapsHandler) *GetErc721Swaps

NewGetErc721Swaps creates a new http.Handler for the get erc721 swaps operation

func (*GetErc721Swaps) ServeHTTP

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

type GetErc721SwapsBadRequest

type GetErc721SwapsBadRequest struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetErc721SwapsBadRequest Bad Request

swagger:response getErc721SwapsBadRequest

func NewGetErc721SwapsBadRequest

func NewGetErc721SwapsBadRequest() *GetErc721SwapsBadRequest

NewGetErc721SwapsBadRequest creates GetErc721SwapsBadRequest with default headers values

func (*GetErc721SwapsBadRequest) SetPayload

func (o *GetErc721SwapsBadRequest) SetPayload(payload *models.Error)

SetPayload sets the payload to the get erc721 swaps bad request response

func (*GetErc721SwapsBadRequest) WithPayload

WithPayload adds the payload to the get erc721 swaps bad request response

func (*GetErc721SwapsBadRequest) WriteResponse

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

WriteResponse to the client

type GetErc721SwapsHandler

type GetErc721SwapsHandler interface {
	Handle(GetErc721SwapsParams) middleware.Responder
}

GetErc721SwapsHandler interface for that can handle valid get erc721 swaps params

type GetErc721SwapsHandlerFunc

type GetErc721SwapsHandlerFunc func(GetErc721SwapsParams) middleware.Responder

GetErc721SwapsHandlerFunc turns a function with the right signature into a get erc721 swaps handler

func (GetErc721SwapsHandlerFunc) Handle

Handle executing the request and returning a response

type GetErc721SwapsInternalServerError

type GetErc721SwapsInternalServerError struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
}

GetErc721SwapsInternalServerError internal server error

swagger:response getErc721SwapsInternalServerError

func NewGetErc721SwapsInternalServerError

func NewGetErc721SwapsInternalServerError() *GetErc721SwapsInternalServerError

NewGetErc721SwapsInternalServerError creates GetErc721SwapsInternalServerError with default headers values

func (*GetErc721SwapsInternalServerError) SetPayload

func (o *GetErc721SwapsInternalServerError) SetPayload(payload *models.Error)

SetPayload sets the payload to the get erc721 swaps internal server error response

func (*GetErc721SwapsInternalServerError) WithPayload

WithPayload adds the payload to the get erc721 swaps internal server error response

func (*GetErc721SwapsInternalServerError) WriteResponse

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

WriteResponse to the client

type GetErc721SwapsOK

type GetErc721SwapsOK struct {

	/*
	  In: Body
	*/
	Payload *models.Erc721Swaps `json:"body,omitempty"`
}

GetErc721SwapsOK Success

swagger:response getErc721SwapsOK

func NewGetErc721SwapsOK

func NewGetErc721SwapsOK() *GetErc721SwapsOK

NewGetErc721SwapsOK creates GetErc721SwapsOK with default headers values

func (*GetErc721SwapsOK) SetPayload

func (o *GetErc721SwapsOK) SetPayload(payload *models.Erc721Swaps)

SetPayload sets the payload to the get erc721 swaps o k response

func (*GetErc721SwapsOK) WithPayload

func (o *GetErc721SwapsOK) WithPayload(payload *models.Erc721Swaps) *GetErc721SwapsOK

WithPayload adds the payload to the get erc721 swaps o k response

func (*GetErc721SwapsOK) WriteResponse

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

WriteResponse to the client

type GetErc721SwapsParams

type GetErc721SwapsParams struct {

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

	/*limit
	  Maximum: 1000
	  Minimum: 0
	  In: query
	  Default: 100
	*/
	Limit *int32
	/*offset
	  Maximum: 1000
	  Minimum: 0
	  In: query
	  Default: 0
	*/
	Offset *int32
	/*request_tx_hash
	  Pattern: ^(0x)[0-9A-Fa-f]{64}$
	  In: query
	*/
	RequestTxHash *string
	/*address
	  Required: true
	  Pattern: ^(0x)[0-9A-Fa-f]{40}$
	  In: query
	*/
	Sender string
	/*state
	  In: query
	*/
	State *string
}

GetErc721SwapsParams contains all the bound params for the get erc721 swaps operation typically these are obtained from a http.Request

swagger:parameters getErc721Swaps

func NewGetErc721SwapsParams

func NewGetErc721SwapsParams() GetErc721SwapsParams

NewGetErc721SwapsParams creates a new GetErc721SwapsParams object with the default values initialized.

func (*GetErc721SwapsParams) BindRequest

func (o *GetErc721SwapsParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

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 NewGetErc721SwapsParams() beforehand.

type GetErc721SwapsURL

type GetErc721SwapsURL struct {
	Limit         *int32
	Offset        *int32
	RequestTxHash *string
	Sender        string
	State         *string
	// contains filtered or unexported fields
}

GetErc721SwapsURL generates an URL for the get erc721 swaps operation

func (*GetErc721SwapsURL) Build

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

Build a url path and query string

func (*GetErc721SwapsURL) BuildFull

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

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

func (*GetErc721SwapsURL) Must

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

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

func (*GetErc721SwapsURL) SetBasePath

func (o *GetErc721SwapsURL) 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 (*GetErc721SwapsURL) String

func (o *GetErc721SwapsURL) String() string

String returns the string representation of the path with query string

func (*GetErc721SwapsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetErc721SwapsURL) WithBasePath

func (o *GetErc721SwapsURL) WithBasePath(bp string) *GetErc721SwapsURL

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