Documentation ¶
Index ¶
- Constants
- type GetErc1155Swaps
- type GetErc1155SwapsBadRequest
- type GetErc1155SwapsHandler
- type GetErc1155SwapsHandlerFunc
- type GetErc1155SwapsInternalServerError
- func (o *GetErc1155SwapsInternalServerError) SetPayload(payload *models.Error)
- func (o *GetErc1155SwapsInternalServerError) WithPayload(payload *models.Error) *GetErc1155SwapsInternalServerError
- func (o *GetErc1155SwapsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetErc1155SwapsOK
- type GetErc1155SwapsParams
- type GetErc1155SwapsURL
- func (o *GetErc1155SwapsURL) Build() (*url.URL, error)
- func (o *GetErc1155SwapsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetErc1155SwapsURL) Must(u *url.URL, err error) *url.URL
- func (o *GetErc1155SwapsURL) SetBasePath(bp string)
- func (o *GetErc1155SwapsURL) String() string
- func (o *GetErc1155SwapsURL) StringFull(scheme, host string) string
- func (o *GetErc1155SwapsURL) WithBasePath(bp string) *GetErc1155SwapsURL
Constants ¶
const GetErc1155SwapsBadRequestCode int = 400
GetErc1155SwapsBadRequestCode is the HTTP code returned for type GetErc1155SwapsBadRequest
const GetErc1155SwapsInternalServerErrorCode int = 500
GetErc1155SwapsInternalServerErrorCode is the HTTP code returned for type GetErc1155SwapsInternalServerError
const GetErc1155SwapsOKCode int = 200
GetErc1155SwapsOKCode is the HTTP code returned for type GetErc1155SwapsOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetErc1155Swaps ¶
type GetErc1155Swaps struct { Context *middleware.Context Handler GetErc1155SwapsHandler }
GetErc1155Swaps swagger:route GET /v1/erc-1155-swaps erc_1155_swaps getErc1155Swaps
Gets list of ERC1155 swap.
func NewGetErc1155Swaps ¶
func NewGetErc1155Swaps(ctx *middleware.Context, handler GetErc1155SwapsHandler) *GetErc1155Swaps
NewGetErc1155Swaps creates a new http.Handler for the get erc1155 swaps operation
func (*GetErc1155Swaps) ServeHTTP ¶
func (o *GetErc1155Swaps) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetErc1155SwapsBadRequest ¶
type GetErc1155SwapsBadRequest struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetErc1155SwapsBadRequest Bad Request
swagger:response getErc1155SwapsBadRequest
func NewGetErc1155SwapsBadRequest ¶
func NewGetErc1155SwapsBadRequest() *GetErc1155SwapsBadRequest
NewGetErc1155SwapsBadRequest creates GetErc1155SwapsBadRequest with default headers values
func (*GetErc1155SwapsBadRequest) SetPayload ¶
func (o *GetErc1155SwapsBadRequest) SetPayload(payload *models.Error)
SetPayload sets the payload to the get erc1155 swaps bad request response
func (*GetErc1155SwapsBadRequest) WithPayload ¶
func (o *GetErc1155SwapsBadRequest) WithPayload(payload *models.Error) *GetErc1155SwapsBadRequest
WithPayload adds the payload to the get erc1155 swaps bad request response
func (*GetErc1155SwapsBadRequest) WriteResponse ¶
func (o *GetErc1155SwapsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetErc1155SwapsHandler ¶
type GetErc1155SwapsHandler interface {
Handle(GetErc1155SwapsParams) middleware.Responder
}
GetErc1155SwapsHandler interface for that can handle valid get erc1155 swaps params
type GetErc1155SwapsHandlerFunc ¶
type GetErc1155SwapsHandlerFunc func(GetErc1155SwapsParams) middleware.Responder
GetErc1155SwapsHandlerFunc turns a function with the right signature into a get erc1155 swaps handler
func (GetErc1155SwapsHandlerFunc) Handle ¶
func (fn GetErc1155SwapsHandlerFunc) Handle(params GetErc1155SwapsParams) middleware.Responder
Handle executing the request and returning a response
type GetErc1155SwapsInternalServerError ¶
type GetErc1155SwapsInternalServerError struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` }
GetErc1155SwapsInternalServerError internal server error
swagger:response getErc1155SwapsInternalServerError
func NewGetErc1155SwapsInternalServerError ¶
func NewGetErc1155SwapsInternalServerError() *GetErc1155SwapsInternalServerError
NewGetErc1155SwapsInternalServerError creates GetErc1155SwapsInternalServerError with default headers values
func (*GetErc1155SwapsInternalServerError) SetPayload ¶
func (o *GetErc1155SwapsInternalServerError) SetPayload(payload *models.Error)
SetPayload sets the payload to the get erc1155 swaps internal server error response
func (*GetErc1155SwapsInternalServerError) WithPayload ¶
func (o *GetErc1155SwapsInternalServerError) WithPayload(payload *models.Error) *GetErc1155SwapsInternalServerError
WithPayload adds the payload to the get erc1155 swaps internal server error response
func (*GetErc1155SwapsInternalServerError) WriteResponse ¶
func (o *GetErc1155SwapsInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetErc1155SwapsOK ¶
type GetErc1155SwapsOK struct { /* In: Body */ Payload *models.Erc1155Swaps `json:"body,omitempty"` }
GetErc1155SwapsOK Success
swagger:response getErc1155SwapsOK
func NewGetErc1155SwapsOK ¶
func NewGetErc1155SwapsOK() *GetErc1155SwapsOK
NewGetErc1155SwapsOK creates GetErc1155SwapsOK with default headers values
func (*GetErc1155SwapsOK) SetPayload ¶
func (o *GetErc1155SwapsOK) SetPayload(payload *models.Erc1155Swaps)
SetPayload sets the payload to the get erc1155 swaps o k response
func (*GetErc1155SwapsOK) WithPayload ¶
func (o *GetErc1155SwapsOK) WithPayload(payload *models.Erc1155Swaps) *GetErc1155SwapsOK
WithPayload adds the payload to the get erc1155 swaps o k response
func (*GetErc1155SwapsOK) WriteResponse ¶
func (o *GetErc1155SwapsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetErc1155SwapsParams ¶
type GetErc1155SwapsParams 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 }
GetErc1155SwapsParams contains all the bound params for the get erc1155 swaps operation typically these are obtained from a http.Request
swagger:parameters getErc1155Swaps
func NewGetErc1155SwapsParams ¶
func NewGetErc1155SwapsParams() GetErc1155SwapsParams
NewGetErc1155SwapsParams creates a new GetErc1155SwapsParams object with the default values initialized.
func (*GetErc1155SwapsParams) BindRequest ¶
func (o *GetErc1155SwapsParams) 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 NewGetErc1155SwapsParams() beforehand.
type GetErc1155SwapsURL ¶
type GetErc1155SwapsURL struct { Limit *int32 Offset *int32 RequestTxHash *string Sender string State *string // contains filtered or unexported fields }
GetErc1155SwapsURL generates an URL for the get erc1155 swaps operation
func (*GetErc1155SwapsURL) Build ¶
func (o *GetErc1155SwapsURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetErc1155SwapsURL) BuildFull ¶
func (o *GetErc1155SwapsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetErc1155SwapsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetErc1155SwapsURL) SetBasePath ¶
func (o *GetErc1155SwapsURL) 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 (*GetErc1155SwapsURL) String ¶
func (o *GetErc1155SwapsURL) String() string
String returns the string representation of the path with query string
func (*GetErc1155SwapsURL) StringFull ¶
func (o *GetErc1155SwapsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetErc1155SwapsURL) WithBasePath ¶
func (o *GetErc1155SwapsURL) WithBasePath(bp string) *GetErc1155SwapsURL
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