Documentation ¶
Index ¶
- Constants
- type GetErc1155SwapPairs
- type GetErc1155SwapPairsBadRequest
- type GetErc1155SwapPairsHandler
- type GetErc1155SwapPairsHandlerFunc
- type GetErc1155SwapPairsInternalServerError
- func (o *GetErc1155SwapPairsInternalServerError) SetPayload(payload *models.Error)
- func (o *GetErc1155SwapPairsInternalServerError) WithPayload(payload *models.Error) *GetErc1155SwapPairsInternalServerError
- func (o *GetErc1155SwapPairsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetErc1155SwapPairsOK
- type GetErc1155SwapPairsParams
- type GetErc1155SwapPairsURL
- func (o *GetErc1155SwapPairsURL) Build() (*url.URL, error)
- func (o *GetErc1155SwapPairsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetErc1155SwapPairsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetErc1155SwapPairsURL) SetBasePath(bp string)
- func (o *GetErc1155SwapPairsURL) String() string
- func (o *GetErc1155SwapPairsURL) StringFull(scheme, host string) string
- func (o *GetErc1155SwapPairsURL) WithBasePath(bp string) *GetErc1155SwapPairsURL
Constants ¶
const GetErc1155SwapPairsBadRequestCode int = 400
GetErc1155SwapPairsBadRequestCode is the HTTP code returned for type GetErc1155SwapPairsBadRequest
const GetErc1155SwapPairsInternalServerErrorCode int = 500
GetErc1155SwapPairsInternalServerErrorCode is the HTTP code returned for type GetErc1155SwapPairsInternalServerError
const GetErc1155SwapPairsOKCode int = 200
GetErc1155SwapPairsOKCode is the HTTP code returned for type GetErc1155SwapPairsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetErc1155SwapPairs ¶
type GetErc1155SwapPairs struct { Context *middleware.Context Handler GetErc1155SwapPairsHandler }
GetErc1155SwapPairs swagger:route GET /v1/erc-1155-swap-pairs erc_1155_swap_pairs getErc1155SwapPairs
Gets a list of available ERC1155 swap pairs.
func NewGetErc1155SwapPairs ¶
func NewGetErc1155SwapPairs(ctx *middleware.Context, handler GetErc1155SwapPairsHandler) *GetErc1155SwapPairs
NewGetErc1155SwapPairs creates a new http.Handler for the get erc1155 swap pairs operation
func (*GetErc1155SwapPairs) ServeHTTP ¶
func (o *GetErc1155SwapPairs) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetErc1155SwapPairsBadRequest ¶
type GetErc1155SwapPairsBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetErc1155SwapPairsBadRequest Bad Request
swagger:response getErc1155SwapPairsBadRequest
func NewGetErc1155SwapPairsBadRequest ¶
func NewGetErc1155SwapPairsBadRequest() *GetErc1155SwapPairsBadRequest
NewGetErc1155SwapPairsBadRequest creates GetErc1155SwapPairsBadRequest with default headers values
func (*GetErc1155SwapPairsBadRequest) SetPayload ¶
func (o *GetErc1155SwapPairsBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get erc1155 swap pairs bad request response
func (*GetErc1155SwapPairsBadRequest) WithPayload ¶
func (o *GetErc1155SwapPairsBadRequest) WithPayload(payload *models.Error) *GetErc1155SwapPairsBadRequest
WithPayload adds the payload to the get erc1155 swap pairs bad request response
func (*GetErc1155SwapPairsBadRequest) WriteResponse ¶
func (o *GetErc1155SwapPairsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetErc1155SwapPairsHandler ¶
type GetErc1155SwapPairsHandler interface {
Handle(GetErc1155SwapPairsParams) middleware.Responder
}
GetErc1155SwapPairsHandler interface for that can handle valid get erc1155 swap pairs params
type GetErc1155SwapPairsHandlerFunc ¶
type GetErc1155SwapPairsHandlerFunc func(GetErc1155SwapPairsParams) middleware.Responder
GetErc1155SwapPairsHandlerFunc turns a function with the right signature into a get erc1155 swap pairs handler
func (GetErc1155SwapPairsHandlerFunc) Handle ¶
func (fn GetErc1155SwapPairsHandlerFunc) Handle(params GetErc1155SwapPairsParams) middleware.Responder
Handle executing the request and returning a response
type GetErc1155SwapPairsInternalServerError ¶
type GetErc1155SwapPairsInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetErc1155SwapPairsInternalServerError internal server error
swagger:response getErc1155SwapPairsInternalServerError
func NewGetErc1155SwapPairsInternalServerError ¶
func NewGetErc1155SwapPairsInternalServerError() *GetErc1155SwapPairsInternalServerError
NewGetErc1155SwapPairsInternalServerError creates GetErc1155SwapPairsInternalServerError with default headers values
func (*GetErc1155SwapPairsInternalServerError) SetPayload ¶
func (o *GetErc1155SwapPairsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get erc1155 swap pairs internal server error response
func (*GetErc1155SwapPairsInternalServerError) WithPayload ¶
func (o *GetErc1155SwapPairsInternalServerError) WithPayload(payload *models.Error) *GetErc1155SwapPairsInternalServerError
WithPayload adds the payload to the get erc1155 swap pairs internal server error response
func (*GetErc1155SwapPairsInternalServerError) WriteResponse ¶
func (o *GetErc1155SwapPairsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetErc1155SwapPairsOK ¶
type GetErc1155SwapPairsOK struct { /* In: Body */ Payload *models.Erc1155SwapPairs `json:"body,omitempty"` }
GetErc1155SwapPairsOK Success
swagger:response getErc1155SwapPairsOK
func NewGetErc1155SwapPairsOK ¶
func NewGetErc1155SwapPairsOK() *GetErc1155SwapPairsOK
NewGetErc1155SwapPairsOK creates GetErc1155SwapPairsOK with default headers values
func (*GetErc1155SwapPairsOK) SetPayload ¶
func (o *GetErc1155SwapPairsOK) SetPayload(payload *models.Erc1155SwapPairs)
SetPayload sets the payload to the get erc1155 swap pairs o k response
func (*GetErc1155SwapPairsOK) WithPayload ¶
func (o *GetErc1155SwapPairsOK) WithPayload(payload *models.Erc1155SwapPairs) *GetErc1155SwapPairsOK
WithPayload adds the payload to the get erc1155 swap pairs o k response
func (*GetErc1155SwapPairsOK) WriteResponse ¶
func (o *GetErc1155SwapPairsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetErc1155SwapPairsParams ¶
type GetErc1155SwapPairsParams 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 }
GetErc1155SwapPairsParams contains all the bound params for the get erc1155 swap pairs operation typically these are obtained from a http.Request
swagger:parameters getErc1155SwapPairs
func NewGetErc1155SwapPairsParams ¶
func NewGetErc1155SwapPairsParams() GetErc1155SwapPairsParams
NewGetErc1155SwapPairsParams creates a new GetErc1155SwapPairsParams object with the default values initialized.
func (*GetErc1155SwapPairsParams) BindRequest ¶
func (o *GetErc1155SwapPairsParams) 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 NewGetErc1155SwapPairsParams() beforehand.
type GetErc1155SwapPairsURL ¶
type GetErc1155SwapPairsURL struct { DstChainID *string DstTokenAddr *string Limit *int32 Offset *int32 SrcChainID *string SrcTokenAddr *string State *string // contains filtered or unexported fields }
GetErc1155SwapPairsURL generates an URL for the get erc1155 swap pairs operation
func (*GetErc1155SwapPairsURL) Build ¶
func (o *GetErc1155SwapPairsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetErc1155SwapPairsURL) BuildFull ¶
func (o *GetErc1155SwapPairsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetErc1155SwapPairsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetErc1155SwapPairsURL) SetBasePath ¶
func (o *GetErc1155SwapPairsURL) 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 (*GetErc1155SwapPairsURL) String ¶
func (o *GetErc1155SwapPairsURL) String() string
String returns the string representation of the path with query string
func (*GetErc1155SwapPairsURL) StringFull ¶
func (o *GetErc1155SwapPairsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetErc1155SwapPairsURL) WithBasePath ¶
func (o *GetErc1155SwapPairsURL) WithBasePath(bp string) *GetErc1155SwapPairsURL
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