Documentation ¶
Index ¶
- Constants
- type GetAvgFees
- type GetAvgFeesHandler
- type GetAvgFeesHandlerFunc
- type GetAvgFeesNotFound
- type GetAvgFeesOK
- type GetAvgFeesParams
- type GetAvgFeesURL
- func (o *GetAvgFeesURL) Build() (*url.URL, error)
- func (o *GetAvgFeesURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAvgFeesURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAvgFeesURL) SetBasePath(bp string)
- func (o *GetAvgFeesURL) String() string
- func (o *GetAvgFeesURL) StringFull(scheme, host string) string
- func (o *GetAvgFeesURL) WithBasePath(bp string) *GetAvgFeesURL
Constants ¶
const GetAvgFeesNotFoundCode int = 404
GetAvgFeesNotFoundCode is the HTTP code returned for type GetAvgFeesNotFound
const GetAvgFeesOKCode int = 200
GetAvgFeesOKCode is the HTTP code returned for type GetAvgFeesOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetAvgFees ¶
type GetAvgFees struct { Context *middleware.Context Handler GetAvgFeesHandler }
GetAvgFees swagger:route GET /v2/data/{platform}/{network}/operations/avgFees Fees getAvgFees
GetAvgFees get avg fees API
func NewGetAvgFees ¶
func NewGetAvgFees(ctx *middleware.Context, handler GetAvgFeesHandler) *GetAvgFees
NewGetAvgFees creates a new http.Handler for the get avg fees operation
func (*GetAvgFees) ServeHTTP ¶
func (o *GetAvgFees) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAvgFeesHandler ¶
type GetAvgFeesHandler interface {
Handle(GetAvgFeesParams) middleware.Responder
}
GetAvgFeesHandler interface for that can handle valid get avg fees params
type GetAvgFeesHandlerFunc ¶
type GetAvgFeesHandlerFunc func(GetAvgFeesParams) middleware.Responder
GetAvgFeesHandlerFunc turns a function with the right signature into a get avg fees handler
func (GetAvgFeesHandlerFunc) Handle ¶
func (fn GetAvgFeesHandlerFunc) Handle(params GetAvgFeesParams) middleware.Responder
Handle executing the request and returning a response
type GetAvgFeesNotFound ¶
type GetAvgFeesNotFound struct { }
GetAvgFeesNotFound Not Found
swagger:response getAvgFeesNotFound
func NewGetAvgFeesNotFound ¶
func NewGetAvgFeesNotFound() *GetAvgFeesNotFound
NewGetAvgFeesNotFound creates GetAvgFeesNotFound with default headers values
func (*GetAvgFeesNotFound) WriteResponse ¶
func (o *GetAvgFeesNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAvgFeesOK ¶
type GetAvgFeesOK struct { /* In: Body */ Payload string `json:"body,omitempty"` }
GetAvgFeesOK Query compatibility endpoint for average fees
swagger:response getAvgFeesOK
func NewGetAvgFeesOK ¶
func NewGetAvgFeesOK() *GetAvgFeesOK
NewGetAvgFeesOK creates GetAvgFeesOK with default headers values
func (*GetAvgFeesOK) SetPayload ¶
func (o *GetAvgFeesOK) SetPayload(payload string)
SetPayload sets the payload to the get avg fees o k response
func (*GetAvgFeesOK) WithPayload ¶
func (o *GetAvgFeesOK) WithPayload(payload string) *GetAvgFeesOK
WithPayload adds the payload to the get avg fees o k response
func (*GetAvgFeesOK) WriteResponse ¶
func (o *GetAvgFeesOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAvgFeesParams ¶
type GetAvgFeesParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query Collection Format: multi */ AccountDelegate []string /* In: query Collection Format: multi */ AccountID []string /* In: query Collection Format: multi */ AccountManager []string /* In: query Collection Format: multi */ BlockID []string /* In: query Collection Format: multi */ BlockLevel []int64 /* In: query Collection Format: multi */ BlockNetid []string /* In: query Collection Format: multi */ BlockProtocol []string /* Maximum: 500 Minimum: 1 In: query Default: 20 */ Limit *int64 /* Required: true In: path */ Network string /*Offset Minimum: 0 In: query Default: 0 */ Offset *int64 /* In: query Collection Format: multi */ OperationDestination []string /* In: query Collection Format: multi */ OperationID []string /* In: query Collection Format: multi */ OperationKind []string /* In: query Collection Format: multi */ OperationParticipant []string /* In: query Collection Format: multi */ OperationSource []string /* In: query */ Order *string /* Required: true In: path */ Platform string /* In: query */ SortBy *string }
GetAvgFeesParams contains all the bound params for the get avg fees operation typically these are obtained from a http.Request
swagger:parameters getAvgFees
func NewGetAvgFeesParams ¶
func NewGetAvgFeesParams() GetAvgFeesParams
NewGetAvgFeesParams creates a new GetAvgFeesParams object with the default values initialized.
func (*GetAvgFeesParams) BindRequest ¶
func (o *GetAvgFeesParams) 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 NewGetAvgFeesParams() beforehand.
type GetAvgFeesURL ¶
type GetAvgFeesURL struct { Network string Platform string AccountDelegate []string AccountID []string AccountManager []string BlockID []string BlockLevel []int64 BlockNetid []string BlockProtocol []string Limit *int64 Offset *int64 OperationDestination []string OperationID []string OperationKind []string OperationParticipant []string OperationSource []string Order *string SortBy *string // contains filtered or unexported fields }
GetAvgFeesURL generates an URL for the get avg fees operation
func (*GetAvgFeesURL) Build ¶
func (o *GetAvgFeesURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAvgFeesURL) BuildFull ¶
func (o *GetAvgFeesURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAvgFeesURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAvgFeesURL) SetBasePath ¶
func (o *GetAvgFeesURL) 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 (*GetAvgFeesURL) String ¶
func (o *GetAvgFeesURL) String() string
String returns the string representation of the path with query string
func (*GetAvgFeesURL) StringFull ¶
func (o *GetAvgFeesURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAvgFeesURL) WithBasePath ¶
func (o *GetAvgFeesURL) WithBasePath(bp string) *GetAvgFeesURL
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