Documentation ¶
Index ¶
- Constants
- type GetErc721SwapPairs
- type GetErc721SwapPairsBadRequest
- type GetErc721SwapPairsHandler
- type GetErc721SwapPairsHandlerFunc
- type GetErc721SwapPairsInternalServerError
- func (o *GetErc721SwapPairsInternalServerError) SetPayload(payload *models.Error)
- func (o *GetErc721SwapPairsInternalServerError) WithPayload(payload *models.Error) *GetErc721SwapPairsInternalServerError
- func (o *GetErc721SwapPairsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetErc721SwapPairsOK
- type GetErc721SwapPairsParams
- type GetErc721SwapPairsURL
- func (o *GetErc721SwapPairsURL) Build() (*url.URL, error)
- func (o *GetErc721SwapPairsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetErc721SwapPairsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetErc721SwapPairsURL) SetBasePath(bp string)
- func (o *GetErc721SwapPairsURL) String() string
- func (o *GetErc721SwapPairsURL) StringFull(scheme, host string) string
- func (o *GetErc721SwapPairsURL) WithBasePath(bp string) *GetErc721SwapPairsURL
Constants ¶
const GetErc721SwapPairsBadRequestCode int = 400
GetErc721SwapPairsBadRequestCode is the HTTP code returned for type GetErc721SwapPairsBadRequest
const GetErc721SwapPairsInternalServerErrorCode int = 500
GetErc721SwapPairsInternalServerErrorCode is the HTTP code returned for type GetErc721SwapPairsInternalServerError
const GetErc721SwapPairsOKCode int = 200
GetErc721SwapPairsOKCode is the HTTP code returned for type GetErc721SwapPairsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetErc721SwapPairs ¶
type GetErc721SwapPairs struct { Context *middleware.Context Handler GetErc721SwapPairsHandler }
GetErc721SwapPairs swagger:route GET /v1/erc-721-swap-pairs erc_721_swap_pairs getErc721SwapPairs
Gets a list of available ERC721 swap pairs.
func NewGetErc721SwapPairs ¶
func NewGetErc721SwapPairs(ctx *middleware.Context, handler GetErc721SwapPairsHandler) *GetErc721SwapPairs
NewGetErc721SwapPairs creates a new http.Handler for the get erc721 swap pairs operation
func (*GetErc721SwapPairs) ServeHTTP ¶
func (o *GetErc721SwapPairs) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetErc721SwapPairsBadRequest ¶
type GetErc721SwapPairsBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetErc721SwapPairsBadRequest Bad Request
swagger:response getErc721SwapPairsBadRequest
func NewGetErc721SwapPairsBadRequest ¶
func NewGetErc721SwapPairsBadRequest() *GetErc721SwapPairsBadRequest
NewGetErc721SwapPairsBadRequest creates GetErc721SwapPairsBadRequest with default headers values
func (*GetErc721SwapPairsBadRequest) SetPayload ¶
func (o *GetErc721SwapPairsBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get erc721 swap pairs bad request response
func (*GetErc721SwapPairsBadRequest) WithPayload ¶
func (o *GetErc721SwapPairsBadRequest) WithPayload(payload *models.Error) *GetErc721SwapPairsBadRequest
WithPayload adds the payload to the get erc721 swap pairs bad request response
func (*GetErc721SwapPairsBadRequest) WriteResponse ¶
func (o *GetErc721SwapPairsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetErc721SwapPairsHandler ¶
type GetErc721SwapPairsHandler interface {
Handle(GetErc721SwapPairsParams) middleware.Responder
}
GetErc721SwapPairsHandler interface for that can handle valid get erc721 swap pairs params
type GetErc721SwapPairsHandlerFunc ¶
type GetErc721SwapPairsHandlerFunc func(GetErc721SwapPairsParams) middleware.Responder
GetErc721SwapPairsHandlerFunc turns a function with the right signature into a get erc721 swap pairs handler
func (GetErc721SwapPairsHandlerFunc) Handle ¶
func (fn GetErc721SwapPairsHandlerFunc) Handle(params GetErc721SwapPairsParams) middleware.Responder
Handle executing the request and returning a response
type GetErc721SwapPairsInternalServerError ¶
type GetErc721SwapPairsInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetErc721SwapPairsInternalServerError internal server error
swagger:response getErc721SwapPairsInternalServerError
func NewGetErc721SwapPairsInternalServerError ¶
func NewGetErc721SwapPairsInternalServerError() *GetErc721SwapPairsInternalServerError
NewGetErc721SwapPairsInternalServerError creates GetErc721SwapPairsInternalServerError with default headers values
func (*GetErc721SwapPairsInternalServerError) SetPayload ¶
func (o *GetErc721SwapPairsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get erc721 swap pairs internal server error response
func (*GetErc721SwapPairsInternalServerError) WithPayload ¶
func (o *GetErc721SwapPairsInternalServerError) WithPayload(payload *models.Error) *GetErc721SwapPairsInternalServerError
WithPayload adds the payload to the get erc721 swap pairs internal server error response
func (*GetErc721SwapPairsInternalServerError) WriteResponse ¶
func (o *GetErc721SwapPairsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetErc721SwapPairsOK ¶
type GetErc721SwapPairsOK struct { /* In: Body */ Payload *models.Erc721SwapPairs `json:"body,omitempty"` }
GetErc721SwapPairsOK Success
swagger:response getErc721SwapPairsOK
func NewGetErc721SwapPairsOK ¶
func NewGetErc721SwapPairsOK() *GetErc721SwapPairsOK
NewGetErc721SwapPairsOK creates GetErc721SwapPairsOK with default headers values
func (*GetErc721SwapPairsOK) SetPayload ¶
func (o *GetErc721SwapPairsOK) SetPayload(payload *models.Erc721SwapPairs)
SetPayload sets the payload to the get erc721 swap pairs o k response
func (*GetErc721SwapPairsOK) WithPayload ¶
func (o *GetErc721SwapPairsOK) WithPayload(payload *models.Erc721SwapPairs) *GetErc721SwapPairsOK
WithPayload adds the payload to the get erc721 swap pairs o k response
func (*GetErc721SwapPairsOK) WriteResponse ¶
func (o *GetErc721SwapPairsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetErc721SwapPairsParams ¶
type GetErc721SwapPairsParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /*destination chain id In: query */ DstChainID *string /*destination token address Pattern: ^(0x)[0-9A-Fa-f]{40}$ In: query */ DstTokenAddr *string /*limit Maximum: 10000 Minimum: 0 In: query Default: 100 */ Limit *int32 /*offset Maximum: 10000 Minimum: 0 In: query Default: 0 */ Offset *int32 /*source chain id In: query */ SrcChainID *string /*source token address Pattern: ^(0x)[0-9A-Fa-f]{40}$ In: query */ SrcTokenAddr *string /*state In: query */ State *string }
GetErc721SwapPairsParams contains all the bound params for the get erc721 swap pairs operation typically these are obtained from a http.Request
swagger:parameters getErc721SwapPairs
func NewGetErc721SwapPairsParams ¶
func NewGetErc721SwapPairsParams() GetErc721SwapPairsParams
NewGetErc721SwapPairsParams creates a new GetErc721SwapPairsParams object with the default values initialized.
func (*GetErc721SwapPairsParams) BindRequest ¶
func (o *GetErc721SwapPairsParams) 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 NewGetErc721SwapPairsParams() beforehand.
type GetErc721SwapPairsURL ¶
type GetErc721SwapPairsURL struct { DstChainID *string DstTokenAddr *string Limit *int32 Offset *int32 SrcChainID *string SrcTokenAddr *string State *string // contains filtered or unexported fields }
GetErc721SwapPairsURL generates an URL for the get erc721 swap pairs operation
func (*GetErc721SwapPairsURL) Build ¶
func (o *GetErc721SwapPairsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetErc721SwapPairsURL) BuildFull ¶
func (o *GetErc721SwapPairsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetErc721SwapPairsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetErc721SwapPairsURL) SetBasePath ¶
func (o *GetErc721SwapPairsURL) 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 (*GetErc721SwapPairsURL) String ¶
func (o *GetErc721SwapPairsURL) String() string
String returns the string representation of the path with query string
func (*GetErc721SwapPairsURL) StringFull ¶
func (o *GetErc721SwapPairsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetErc721SwapPairsURL) WithBasePath ¶
func (o *GetErc721SwapPairsURL) WithBasePath(bp string) *GetErc721SwapPairsURL
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