Documentation ¶
Index ¶
- Constants
- type GetAssetOperationsList
- type GetAssetOperationsListBadRequest
- type GetAssetOperationsListHandler
- type GetAssetOperationsListHandlerFunc
- type GetAssetOperationsListNotFound
- type GetAssetOperationsListOK
- func (o *GetAssetOperationsListOK) SetPayload(payload []*models.AssetOperation)
- func (o *GetAssetOperationsListOK) SetXTotalCount(xTotalCount int64)
- func (o *GetAssetOperationsListOK) WithPayload(payload []*models.AssetOperation) *GetAssetOperationsListOK
- func (o *GetAssetOperationsListOK) WithXTotalCount(xTotalCount int64) *GetAssetOperationsListOK
- func (o *GetAssetOperationsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetAssetOperationsListParams
- type GetAssetOperationsListURL
- func (o *GetAssetOperationsListURL) Build() (*url.URL, error)
- func (o *GetAssetOperationsListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAssetOperationsListURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAssetOperationsListURL) SetBasePath(bp string)
- func (o *GetAssetOperationsListURL) String() string
- func (o *GetAssetOperationsListURL) StringFull(scheme, host string) string
- func (o *GetAssetOperationsListURL) WithBasePath(bp string) *GetAssetOperationsListURL
- type GetAssetReport
- type GetAssetReportBadRequest
- type GetAssetReportHandler
- type GetAssetReportHandlerFunc
- type GetAssetReportInternalServerError
- type GetAssetReportNotFound
- type GetAssetReportOK
- type GetAssetReportParams
- type GetAssetReportURL
- func (o *GetAssetReportURL) Build() (*url.URL, error)
- func (o *GetAssetReportURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAssetReportURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAssetReportURL) SetBasePath(bp string)
- func (o *GetAssetReportURL) String() string
- func (o *GetAssetReportURL) StringFull(scheme, host string) string
- func (o *GetAssetReportURL) WithBasePath(bp string) *GetAssetReportURL
- type GetAssetTokenHoldersList
- type GetAssetTokenHoldersListBadRequest
- type GetAssetTokenHoldersListHandler
- type GetAssetTokenHoldersListHandlerFunc
- type GetAssetTokenHoldersListNotFound
- type GetAssetTokenHoldersListOK
- type GetAssetTokenHoldersListParams
- type GetAssetTokenHoldersListURL
- func (o *GetAssetTokenHoldersListURL) Build() (*url.URL, error)
- func (o *GetAssetTokenHoldersListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAssetTokenHoldersListURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAssetTokenHoldersListURL) SetBasePath(bp string)
- func (o *GetAssetTokenHoldersListURL) String() string
- func (o *GetAssetTokenHoldersListURL) StringFull(scheme, host string) string
- func (o *GetAssetTokenHoldersListURL) WithBasePath(bp string) *GetAssetTokenHoldersListURL
- type GetAssetTokenInfo
- type GetAssetTokenInfoBadRequest
- type GetAssetTokenInfoHandler
- type GetAssetTokenInfoHandlerFunc
- type GetAssetTokenInfoNotFound
- type GetAssetTokenInfoOK
- type GetAssetTokenInfoParams
- type GetAssetTokenInfoURL
- func (o *GetAssetTokenInfoURL) Build() (*url.URL, error)
- func (o *GetAssetTokenInfoURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAssetTokenInfoURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAssetTokenInfoURL) SetBasePath(bp string)
- func (o *GetAssetTokenInfoURL) String() string
- func (o *GetAssetTokenInfoURL) StringFull(scheme, host string) string
- func (o *GetAssetTokenInfoURL) WithBasePath(bp string) *GetAssetTokenInfoURL
- type GetAssetsList
- type GetAssetsListBadRequest
- type GetAssetsListHandler
- type GetAssetsListHandlerFunc
- type GetAssetsListNotFound
- type GetAssetsListOK
- func (o *GetAssetsListOK) SetPayload(payload []*models.TokenAssetRow)
- func (o *GetAssetsListOK) SetXTotalCount(xTotalCount int64)
- func (o *GetAssetsListOK) WithPayload(payload []*models.TokenAssetRow) *GetAssetsListOK
- func (o *GetAssetsListOK) WithXTotalCount(xTotalCount int64) *GetAssetsListOK
- func (o *GetAssetsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type GetAssetsListParams
- type GetAssetsListURL
- func (o *GetAssetsListURL) Build() (*url.URL, error)
- func (o *GetAssetsListURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *GetAssetsListURL) Must(u *url.URL, err error) *url.URL
- func (o *GetAssetsListURL) SetBasePath(bp string)
- func (o *GetAssetsListURL) String() string
- func (o *GetAssetsListURL) StringFull(scheme, host string) string
- func (o *GetAssetsListURL) WithBasePath(bp string) *GetAssetsListURL
Constants ¶
const GetAssetOperationsListBadRequestCode int = 400
GetAssetOperationsListBadRequestCode is the HTTP code returned for type GetAssetOperationsListBadRequest
const GetAssetOperationsListNotFoundCode int = 404
GetAssetOperationsListNotFoundCode is the HTTP code returned for type GetAssetOperationsListNotFound
const GetAssetOperationsListOKCode int = 200
GetAssetOperationsListOKCode is the HTTP code returned for type GetAssetOperationsListOK
const GetAssetReportBadRequestCode int = 400
GetAssetReportBadRequestCode is the HTTP code returned for type GetAssetReportBadRequest
const GetAssetReportInternalServerErrorCode int = 500
GetAssetReportInternalServerErrorCode is the HTTP code returned for type GetAssetReportInternalServerError
const GetAssetReportNotFoundCode int = 404
GetAssetReportNotFoundCode is the HTTP code returned for type GetAssetReportNotFound
const GetAssetReportOKCode int = 200
GetAssetReportOKCode is the HTTP code returned for type GetAssetReportOK
const GetAssetTokenHoldersListBadRequestCode int = 400
GetAssetTokenHoldersListBadRequestCode is the HTTP code returned for type GetAssetTokenHoldersListBadRequest
const GetAssetTokenHoldersListNotFoundCode int = 404
GetAssetTokenHoldersListNotFoundCode is the HTTP code returned for type GetAssetTokenHoldersListNotFound
const GetAssetTokenHoldersListOKCode int = 200
GetAssetTokenHoldersListOKCode is the HTTP code returned for type GetAssetTokenHoldersListOK
const GetAssetTokenInfoBadRequestCode int = 400
GetAssetTokenInfoBadRequestCode is the HTTP code returned for type GetAssetTokenInfoBadRequest
const GetAssetTokenInfoNotFoundCode int = 404
GetAssetTokenInfoNotFoundCode is the HTTP code returned for type GetAssetTokenInfoNotFound
const GetAssetTokenInfoOKCode int = 200
GetAssetTokenInfoOKCode is the HTTP code returned for type GetAssetTokenInfoOK
const GetAssetsListBadRequestCode int = 400
GetAssetsListBadRequestCode is the HTTP code returned for type GetAssetsListBadRequest
const GetAssetsListNotFoundCode int = 404
GetAssetsListNotFoundCode is the HTTP code returned for type GetAssetsListNotFound
const GetAssetsListOKCode int = 200
GetAssetsListOKCode is the HTTP code returned for type GetAssetsListOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetAssetOperationsList ¶
type GetAssetOperationsList struct { Context *middleware.Context Handler GetAssetOperationsListHandler }
GetAssetOperationsList swagger:route GET /v2/data/{network}/assets/operations Assets getAssetOperationsList
GetAssetOperationsList get asset operations list API
func NewGetAssetOperationsList ¶
func NewGetAssetOperationsList(ctx *middleware.Context, handler GetAssetOperationsListHandler) *GetAssetOperationsList
NewGetAssetOperationsList creates a new http.Handler for the get asset operations list operation
func (*GetAssetOperationsList) ServeHTTP ¶
func (o *GetAssetOperationsList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAssetOperationsListBadRequest ¶
type GetAssetOperationsListBadRequest struct { }
GetAssetOperationsListBadRequest Bad request
swagger:response getAssetOperationsListBadRequest
func NewGetAssetOperationsListBadRequest ¶
func NewGetAssetOperationsListBadRequest() *GetAssetOperationsListBadRequest
NewGetAssetOperationsListBadRequest creates GetAssetOperationsListBadRequest with default headers values
func (*GetAssetOperationsListBadRequest) WriteResponse ¶
func (o *GetAssetOperationsListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetOperationsListHandler ¶
type GetAssetOperationsListHandler interface {
Handle(GetAssetOperationsListParams) middleware.Responder
}
GetAssetOperationsListHandler interface for that can handle valid get asset operations list params
type GetAssetOperationsListHandlerFunc ¶
type GetAssetOperationsListHandlerFunc func(GetAssetOperationsListParams) middleware.Responder
GetAssetOperationsListHandlerFunc turns a function with the right signature into a get asset operations list handler
func (GetAssetOperationsListHandlerFunc) Handle ¶
func (fn GetAssetOperationsListHandlerFunc) Handle(params GetAssetOperationsListParams) middleware.Responder
Handle executing the request and returning a response
type GetAssetOperationsListNotFound ¶
type GetAssetOperationsListNotFound struct { }
GetAssetOperationsListNotFound Not Found
swagger:response getAssetOperationsListNotFound
func NewGetAssetOperationsListNotFound ¶
func NewGetAssetOperationsListNotFound() *GetAssetOperationsListNotFound
NewGetAssetOperationsListNotFound creates GetAssetOperationsListNotFound with default headers values
func (*GetAssetOperationsListNotFound) WriteResponse ¶
func (o *GetAssetOperationsListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetOperationsListOK ¶
type GetAssetOperationsListOK struct { /*The total number of data entries. */ XTotalCount int64 `json:"X-Total-Count"` /* In: Body */ Payload []*models.AssetOperation `json:"body,omitempty"` }
GetAssetOperationsListOK Query compatibility endpoint for token operations
swagger:response getAssetOperationsListOK
func NewGetAssetOperationsListOK ¶
func NewGetAssetOperationsListOK() *GetAssetOperationsListOK
NewGetAssetOperationsListOK creates GetAssetOperationsListOK with default headers values
func (*GetAssetOperationsListOK) SetPayload ¶
func (o *GetAssetOperationsListOK) SetPayload(payload []*models.AssetOperation)
SetPayload sets the payload to the get asset operations list o k response
func (*GetAssetOperationsListOK) SetXTotalCount ¶
func (o *GetAssetOperationsListOK) SetXTotalCount(xTotalCount int64)
SetXTotalCount sets the xTotalCount to the get asset operations list o k response
func (*GetAssetOperationsListOK) WithPayload ¶
func (o *GetAssetOperationsListOK) WithPayload(payload []*models.AssetOperation) *GetAssetOperationsListOK
WithPayload adds the payload to the get asset operations list o k response
func (*GetAssetOperationsListOK) WithXTotalCount ¶
func (o *GetAssetOperationsListOK) WithXTotalCount(xTotalCount int64) *GetAssetOperationsListOK
WithXTotalCount adds the xTotalCount to the get asset operations list o k response
func (*GetAssetOperationsListOK) WriteResponse ¶
func (o *GetAssetOperationsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetOperationsListParams ¶
type GetAssetOperationsListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* In: query */ AccountID []string /* In: query */ AssetID []string /* In: query Collection Format: multi */ BlockLevel []int64 /* Maximum: 300 Minimum: 1 In: query Default: 20 */ Limit *int64 /* Required: true In: path */ Network string /* Minimum: 0 In: query Default: 0 */ Offset *int64 /* In: query */ Type []string }
GetAssetOperationsListParams contains all the bound params for the get asset operations list operation typically these are obtained from a http.Request
swagger:parameters getAssetOperationsList
func NewGetAssetOperationsListParams ¶
func NewGetAssetOperationsListParams() GetAssetOperationsListParams
NewGetAssetOperationsListParams creates a new GetAssetOperationsListParams object with the default values initialized.
func (*GetAssetOperationsListParams) BindRequest ¶
func (o *GetAssetOperationsListParams) 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 NewGetAssetOperationsListParams() beforehand.
type GetAssetOperationsListURL ¶
type GetAssetOperationsListURL struct { Network string AccountID []string AssetID []string BlockLevel []int64 Limit *int64 Offset *int64 Type []string // contains filtered or unexported fields }
GetAssetOperationsListURL generates an URL for the get asset operations list operation
func (*GetAssetOperationsListURL) Build ¶
func (o *GetAssetOperationsListURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAssetOperationsListURL) BuildFull ¶
func (o *GetAssetOperationsListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAssetOperationsListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAssetOperationsListURL) SetBasePath ¶
func (o *GetAssetOperationsListURL) 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 (*GetAssetOperationsListURL) String ¶
func (o *GetAssetOperationsListURL) String() string
String returns the string representation of the path with query string
func (*GetAssetOperationsListURL) StringFull ¶
func (o *GetAssetOperationsListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAssetOperationsListURL) WithBasePath ¶
func (o *GetAssetOperationsListURL) WithBasePath(bp string) *GetAssetOperationsListURL
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
type GetAssetReport ¶
type GetAssetReport struct { Context *middleware.Context Handler GetAssetReportHandler }
GetAssetReport swagger:route GET /v2/data/{platform}/{network}/assets/{assetId}/report Assets getAssetReport
GetAssetReport get asset report API
func NewGetAssetReport ¶
func NewGetAssetReport(ctx *middleware.Context, handler GetAssetReportHandler) *GetAssetReport
NewGetAssetReport creates a new http.Handler for the get asset report operation
func (*GetAssetReport) ServeHTTP ¶
func (o *GetAssetReport) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAssetReportBadRequest ¶
type GetAssetReportBadRequest struct { }
GetAssetReportBadRequest Bad request
swagger:response getAssetReportBadRequest
func NewGetAssetReportBadRequest ¶
func NewGetAssetReportBadRequest() *GetAssetReportBadRequest
NewGetAssetReportBadRequest creates GetAssetReportBadRequest with default headers values
func (*GetAssetReportBadRequest) WriteResponse ¶
func (o *GetAssetReportBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetReportHandler ¶
type GetAssetReportHandler interface {
Handle(GetAssetReportParams) middleware.Responder
}
GetAssetReportHandler interface for that can handle valid get asset report params
type GetAssetReportHandlerFunc ¶
type GetAssetReportHandlerFunc func(GetAssetReportParams) middleware.Responder
GetAssetReportHandlerFunc turns a function with the right signature into a get asset report handler
func (GetAssetReportHandlerFunc) Handle ¶
func (fn GetAssetReportHandlerFunc) Handle(params GetAssetReportParams) middleware.Responder
Handle executing the request and returning a response
type GetAssetReportInternalServerError ¶
type GetAssetReportInternalServerError struct { }
GetAssetReportInternalServerError Internal error
swagger:response getAssetReportInternalServerError
func NewGetAssetReportInternalServerError ¶
func NewGetAssetReportInternalServerError() *GetAssetReportInternalServerError
NewGetAssetReportInternalServerError creates GetAssetReportInternalServerError with default headers values
func (*GetAssetReportInternalServerError) WriteResponse ¶
func (o *GetAssetReportInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetReportNotFound ¶
type GetAssetReportNotFound struct { }
GetAssetReportNotFound Not Found
swagger:response getAssetReportNotFound
func NewGetAssetReportNotFound ¶
func NewGetAssetReportNotFound() *GetAssetReportNotFound
NewGetAssetReportNotFound creates GetAssetReportNotFound with default headers values
func (*GetAssetReportNotFound) WriteResponse ¶
func (o *GetAssetReportNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetReportOK ¶
type GetAssetReportOK struct { /* In: Body */ Payload []uint8 `json:"body,omitempty"` }
GetAssetReportOK CSV file to download
swagger:response getAssetReportOK
func NewGetAssetReportOK ¶
func NewGetAssetReportOK() *GetAssetReportOK
NewGetAssetReportOK creates GetAssetReportOK with default headers values
func (*GetAssetReportOK) SetPayload ¶
func (o *GetAssetReportOK) SetPayload(payload []uint8)
SetPayload sets the payload to the get asset report o k response
func (*GetAssetReportOK) WithPayload ¶
func (o *GetAssetReportOK) WithPayload(payload []uint8) *GetAssetReportOK
WithPayload adds the payload to the get asset report o k response
func (*GetAssetReportOK) WriteResponse ¶
func (o *GetAssetReportOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetReportParams ¶
type GetAssetReportParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ AssetID string /* Required: true In: query */ From int64 /*Not used Required: true In: path */ Network string /*Not used In: query Collection Format: multi */ OperationType []string /*Not used Required: true In: path */ Platform string /* Required: true In: query */ To int64 }
GetAssetReportParams contains all the bound params for the get asset report operation typically these are obtained from a http.Request
swagger:parameters getAssetReport
func NewGetAssetReportParams ¶
func NewGetAssetReportParams() GetAssetReportParams
NewGetAssetReportParams creates a new GetAssetReportParams object no default values defined in spec.
func (*GetAssetReportParams) BindRequest ¶
func (o *GetAssetReportParams) 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 NewGetAssetReportParams() beforehand.
type GetAssetReportURL ¶
type GetAssetReportURL struct { AssetID string Network string Platform string From int64 OperationType []string To int64 // contains filtered or unexported fields }
GetAssetReportURL generates an URL for the get asset report operation
func (*GetAssetReportURL) Build ¶
func (o *GetAssetReportURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAssetReportURL) BuildFull ¶
func (o *GetAssetReportURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAssetReportURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAssetReportURL) SetBasePath ¶
func (o *GetAssetReportURL) 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 (*GetAssetReportURL) String ¶
func (o *GetAssetReportURL) String() string
String returns the string representation of the path with query string
func (*GetAssetReportURL) StringFull ¶
func (o *GetAssetReportURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAssetReportURL) WithBasePath ¶
func (o *GetAssetReportURL) WithBasePath(bp string) *GetAssetReportURL
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
type GetAssetTokenHoldersList ¶
type GetAssetTokenHoldersList struct { Context *middleware.Context Handler GetAssetTokenHoldersListHandler }
GetAssetTokenHoldersList swagger:route GET /v2/data/{network}/assets/{asset_id}/holders Assets getAssetTokenHoldersList
GetAssetTokenHoldersList get asset token holders list API
func NewGetAssetTokenHoldersList ¶
func NewGetAssetTokenHoldersList(ctx *middleware.Context, handler GetAssetTokenHoldersListHandler) *GetAssetTokenHoldersList
NewGetAssetTokenHoldersList creates a new http.Handler for the get asset token holders list operation
func (*GetAssetTokenHoldersList) ServeHTTP ¶
func (o *GetAssetTokenHoldersList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAssetTokenHoldersListBadRequest ¶
type GetAssetTokenHoldersListBadRequest struct { }
GetAssetTokenHoldersListBadRequest Bad request
swagger:response getAssetTokenHoldersListBadRequest
func NewGetAssetTokenHoldersListBadRequest ¶
func NewGetAssetTokenHoldersListBadRequest() *GetAssetTokenHoldersListBadRequest
NewGetAssetTokenHoldersListBadRequest creates GetAssetTokenHoldersListBadRequest with default headers values
func (*GetAssetTokenHoldersListBadRequest) WriteResponse ¶
func (o *GetAssetTokenHoldersListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetTokenHoldersListHandler ¶
type GetAssetTokenHoldersListHandler interface {
Handle(GetAssetTokenHoldersListParams) middleware.Responder
}
GetAssetTokenHoldersListHandler interface for that can handle valid get asset token holders list params
type GetAssetTokenHoldersListHandlerFunc ¶
type GetAssetTokenHoldersListHandlerFunc func(GetAssetTokenHoldersListParams) middleware.Responder
GetAssetTokenHoldersListHandlerFunc turns a function with the right signature into a get asset token holders list handler
func (GetAssetTokenHoldersListHandlerFunc) Handle ¶
func (fn GetAssetTokenHoldersListHandlerFunc) Handle(params GetAssetTokenHoldersListParams) middleware.Responder
Handle executing the request and returning a response
type GetAssetTokenHoldersListNotFound ¶
type GetAssetTokenHoldersListNotFound struct { }
GetAssetTokenHoldersListNotFound Not Found
swagger:response getAssetTokenHoldersListNotFound
func NewGetAssetTokenHoldersListNotFound ¶
func NewGetAssetTokenHoldersListNotFound() *GetAssetTokenHoldersListNotFound
NewGetAssetTokenHoldersListNotFound creates GetAssetTokenHoldersListNotFound with default headers values
func (*GetAssetTokenHoldersListNotFound) WriteResponse ¶
func (o *GetAssetTokenHoldersListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetTokenHoldersListOK ¶
type GetAssetTokenHoldersListOK struct { /* In: Body */ Payload []*models.TokenHolderRow `json:"body,omitempty"` }
GetAssetTokenHoldersListOK Query compatibility endpoint for token holders
swagger:response getAssetTokenHoldersListOK
func NewGetAssetTokenHoldersListOK ¶
func NewGetAssetTokenHoldersListOK() *GetAssetTokenHoldersListOK
NewGetAssetTokenHoldersListOK creates GetAssetTokenHoldersListOK with default headers values
func (*GetAssetTokenHoldersListOK) SetPayload ¶
func (o *GetAssetTokenHoldersListOK) SetPayload(payload []*models.TokenHolderRow)
SetPayload sets the payload to the get asset token holders list o k response
func (*GetAssetTokenHoldersListOK) WithPayload ¶
func (o *GetAssetTokenHoldersListOK) WithPayload(payload []*models.TokenHolderRow) *GetAssetTokenHoldersListOK
WithPayload adds the payload to the get asset token holders list o k response
func (*GetAssetTokenHoldersListOK) WriteResponse ¶
func (o *GetAssetTokenHoldersListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetTokenHoldersListParams ¶
type GetAssetTokenHoldersListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ AssetID string /* Maximum: 300 Minimum: 1 In: query Default: 20 */ Limit *int64 /* Required: true In: path */ Network string /* Minimum: 0 In: query Default: 0 */ Offset *int64 }
GetAssetTokenHoldersListParams contains all the bound params for the get asset token holders list operation typically these are obtained from a http.Request
swagger:parameters getAssetTokenHoldersList
func NewGetAssetTokenHoldersListParams ¶
func NewGetAssetTokenHoldersListParams() GetAssetTokenHoldersListParams
NewGetAssetTokenHoldersListParams creates a new GetAssetTokenHoldersListParams object with the default values initialized.
func (*GetAssetTokenHoldersListParams) BindRequest ¶
func (o *GetAssetTokenHoldersListParams) 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 NewGetAssetTokenHoldersListParams() beforehand.
type GetAssetTokenHoldersListURL ¶
type GetAssetTokenHoldersListURL struct { AssetID string Network string Limit *int64 Offset *int64 // contains filtered or unexported fields }
GetAssetTokenHoldersListURL generates an URL for the get asset token holders list operation
func (*GetAssetTokenHoldersListURL) Build ¶
func (o *GetAssetTokenHoldersListURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAssetTokenHoldersListURL) BuildFull ¶
func (o *GetAssetTokenHoldersListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAssetTokenHoldersListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAssetTokenHoldersListURL) SetBasePath ¶
func (o *GetAssetTokenHoldersListURL) 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 (*GetAssetTokenHoldersListURL) String ¶
func (o *GetAssetTokenHoldersListURL) String() string
String returns the string representation of the path with query string
func (*GetAssetTokenHoldersListURL) StringFull ¶
func (o *GetAssetTokenHoldersListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAssetTokenHoldersListURL) WithBasePath ¶
func (o *GetAssetTokenHoldersListURL) WithBasePath(bp string) *GetAssetTokenHoldersListURL
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
type GetAssetTokenInfo ¶
type GetAssetTokenInfo struct { Context *middleware.Context Handler GetAssetTokenInfoHandler }
GetAssetTokenInfo swagger:route GET /v2/data/{network}/assets/{asset_id} Assets getAssetTokenInfo
GetAssetTokenInfo get asset token info API
func NewGetAssetTokenInfo ¶
func NewGetAssetTokenInfo(ctx *middleware.Context, handler GetAssetTokenInfoHandler) *GetAssetTokenInfo
NewGetAssetTokenInfo creates a new http.Handler for the get asset token info operation
func (*GetAssetTokenInfo) ServeHTTP ¶
func (o *GetAssetTokenInfo) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAssetTokenInfoBadRequest ¶
type GetAssetTokenInfoBadRequest struct { }
GetAssetTokenInfoBadRequest Bad request
swagger:response getAssetTokenInfoBadRequest
func NewGetAssetTokenInfoBadRequest ¶
func NewGetAssetTokenInfoBadRequest() *GetAssetTokenInfoBadRequest
NewGetAssetTokenInfoBadRequest creates GetAssetTokenInfoBadRequest with default headers values
func (*GetAssetTokenInfoBadRequest) WriteResponse ¶
func (o *GetAssetTokenInfoBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetTokenInfoHandler ¶
type GetAssetTokenInfoHandler interface {
Handle(GetAssetTokenInfoParams) middleware.Responder
}
GetAssetTokenInfoHandler interface for that can handle valid get asset token info params
type GetAssetTokenInfoHandlerFunc ¶
type GetAssetTokenInfoHandlerFunc func(GetAssetTokenInfoParams) middleware.Responder
GetAssetTokenInfoHandlerFunc turns a function with the right signature into a get asset token info handler
func (GetAssetTokenInfoHandlerFunc) Handle ¶
func (fn GetAssetTokenInfoHandlerFunc) Handle(params GetAssetTokenInfoParams) middleware.Responder
Handle executing the request and returning a response
type GetAssetTokenInfoNotFound ¶
type GetAssetTokenInfoNotFound struct { }
GetAssetTokenInfoNotFound Not Found
swagger:response getAssetTokenInfoNotFound
func NewGetAssetTokenInfoNotFound ¶
func NewGetAssetTokenInfoNotFound() *GetAssetTokenInfoNotFound
NewGetAssetTokenInfoNotFound creates GetAssetTokenInfoNotFound with default headers values
func (*GetAssetTokenInfoNotFound) WriteResponse ¶
func (o *GetAssetTokenInfoNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetTokenInfoOK ¶
type GetAssetTokenInfoOK struct { /* In: Body */ Payload *models.TokenAssetRow `json:"body,omitempty"` }
GetAssetTokenInfoOK Query compatibility endpoint for token holders
swagger:response getAssetTokenInfoOK
func NewGetAssetTokenInfoOK ¶
func NewGetAssetTokenInfoOK() *GetAssetTokenInfoOK
NewGetAssetTokenInfoOK creates GetAssetTokenInfoOK with default headers values
func (*GetAssetTokenInfoOK) SetPayload ¶
func (o *GetAssetTokenInfoOK) SetPayload(payload *models.TokenAssetRow)
SetPayload sets the payload to the get asset token info o k response
func (*GetAssetTokenInfoOK) WithPayload ¶
func (o *GetAssetTokenInfoOK) WithPayload(payload *models.TokenAssetRow) *GetAssetTokenInfoOK
WithPayload adds the payload to the get asset token info o k response
func (*GetAssetTokenInfoOK) WriteResponse ¶
func (o *GetAssetTokenInfoOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetTokenInfoParams ¶
type GetAssetTokenInfoParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ AssetID string /* Maximum: 300 Minimum: 1 In: query Default: 20 */ Limit *int64 /* Required: true In: path */ Network string /* Minimum: 0 In: query Default: 0 */ Offset *int64 }
GetAssetTokenInfoParams contains all the bound params for the get asset token info operation typically these are obtained from a http.Request
swagger:parameters getAssetTokenInfo
func NewGetAssetTokenInfoParams ¶
func NewGetAssetTokenInfoParams() GetAssetTokenInfoParams
NewGetAssetTokenInfoParams creates a new GetAssetTokenInfoParams object with the default values initialized.
func (*GetAssetTokenInfoParams) BindRequest ¶
func (o *GetAssetTokenInfoParams) 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 NewGetAssetTokenInfoParams() beforehand.
type GetAssetTokenInfoURL ¶
type GetAssetTokenInfoURL struct { AssetID string Network string Limit *int64 Offset *int64 // contains filtered or unexported fields }
GetAssetTokenInfoURL generates an URL for the get asset token info operation
func (*GetAssetTokenInfoURL) Build ¶
func (o *GetAssetTokenInfoURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAssetTokenInfoURL) BuildFull ¶
func (o *GetAssetTokenInfoURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAssetTokenInfoURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAssetTokenInfoURL) SetBasePath ¶
func (o *GetAssetTokenInfoURL) 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 (*GetAssetTokenInfoURL) String ¶
func (o *GetAssetTokenInfoURL) String() string
String returns the string representation of the path with query string
func (*GetAssetTokenInfoURL) StringFull ¶
func (o *GetAssetTokenInfoURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAssetTokenInfoURL) WithBasePath ¶
func (o *GetAssetTokenInfoURL) WithBasePath(bp string) *GetAssetTokenInfoURL
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
type GetAssetsList ¶
type GetAssetsList struct { Context *middleware.Context Handler GetAssetsListHandler }
GetAssetsList swagger:route GET /v2/data/{network}/assets Assets getAssetsList
GetAssetsList get assets list API
func NewGetAssetsList ¶
func NewGetAssetsList(ctx *middleware.Context, handler GetAssetsListHandler) *GetAssetsList
NewGetAssetsList creates a new http.Handler for the get assets list operation
func (*GetAssetsList) ServeHTTP ¶
func (o *GetAssetsList) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type GetAssetsListBadRequest ¶
type GetAssetsListBadRequest struct { }
GetAssetsListBadRequest Bad request
swagger:response getAssetsListBadRequest
func NewGetAssetsListBadRequest ¶
func NewGetAssetsListBadRequest() *GetAssetsListBadRequest
NewGetAssetsListBadRequest creates GetAssetsListBadRequest with default headers values
func (*GetAssetsListBadRequest) WriteResponse ¶
func (o *GetAssetsListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetsListHandler ¶
type GetAssetsListHandler interface {
Handle(GetAssetsListParams) middleware.Responder
}
GetAssetsListHandler interface for that can handle valid get assets list params
type GetAssetsListHandlerFunc ¶
type GetAssetsListHandlerFunc func(GetAssetsListParams) middleware.Responder
GetAssetsListHandlerFunc turns a function with the right signature into a get assets list handler
func (GetAssetsListHandlerFunc) Handle ¶
func (fn GetAssetsListHandlerFunc) Handle(params GetAssetsListParams) middleware.Responder
Handle executing the request and returning a response
type GetAssetsListNotFound ¶
type GetAssetsListNotFound struct { }
GetAssetsListNotFound Not Found
swagger:response getAssetsListNotFound
func NewGetAssetsListNotFound ¶
func NewGetAssetsListNotFound() *GetAssetsListNotFound
NewGetAssetsListNotFound creates GetAssetsListNotFound with default headers values
func (*GetAssetsListNotFound) WriteResponse ¶
func (o *GetAssetsListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetsListOK ¶
type GetAssetsListOK struct { /*The total number of data entries. */ XTotalCount int64 `json:"X-Total-Count"` /* In: Body */ Payload []*models.TokenAssetRow `json:"body,omitempty"` }
GetAssetsListOK Query compatibility endpoint for tokens list
swagger:response getAssetsListOK
func NewGetAssetsListOK ¶
func NewGetAssetsListOK() *GetAssetsListOK
NewGetAssetsListOK creates GetAssetsListOK with default headers values
func (*GetAssetsListOK) SetPayload ¶
func (o *GetAssetsListOK) SetPayload(payload []*models.TokenAssetRow)
SetPayload sets the payload to the get assets list o k response
func (*GetAssetsListOK) SetXTotalCount ¶
func (o *GetAssetsListOK) SetXTotalCount(xTotalCount int64)
SetXTotalCount sets the xTotalCount to the get assets list o k response
func (*GetAssetsListOK) WithPayload ¶
func (o *GetAssetsListOK) WithPayload(payload []*models.TokenAssetRow) *GetAssetsListOK
WithPayload adds the payload to the get assets list o k response
func (*GetAssetsListOK) WithXTotalCount ¶
func (o *GetAssetsListOK) WithXTotalCount(xTotalCount int64) *GetAssetsListOK
WithXTotalCount adds the xTotalCount to the get assets list o k response
func (*GetAssetsListOK) WriteResponse ¶
func (o *GetAssetsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type GetAssetsListParams ¶
type GetAssetsListParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Maximum: 300 Minimum: 1 In: query Default: 20 */ Limit *int64 /* Required: true In: path */ Network string /* Minimum: 0 In: query Default: 0 */ Offset *int64 }
GetAssetsListParams contains all the bound params for the get assets list operation typically these are obtained from a http.Request
swagger:parameters getAssetsList
func NewGetAssetsListParams ¶
func NewGetAssetsListParams() GetAssetsListParams
NewGetAssetsListParams creates a new GetAssetsListParams object with the default values initialized.
func (*GetAssetsListParams) BindRequest ¶
func (o *GetAssetsListParams) 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 NewGetAssetsListParams() beforehand.
type GetAssetsListURL ¶
type GetAssetsListURL struct { Network string Limit *int64 Offset *int64 // contains filtered or unexported fields }
GetAssetsListURL generates an URL for the get assets list operation
func (*GetAssetsListURL) Build ¶
func (o *GetAssetsListURL) Build() (*url.URL, error)
Build a url path and query string
func (*GetAssetsListURL) BuildFull ¶
func (o *GetAssetsListURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*GetAssetsListURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*GetAssetsListURL) SetBasePath ¶
func (o *GetAssetsListURL) 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 (*GetAssetsListURL) String ¶
func (o *GetAssetsListURL) String() string
String returns the string representation of the path with query string
func (*GetAssetsListURL) StringFull ¶
func (o *GetAssetsListURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*GetAssetsListURL) WithBasePath ¶
func (o *GetAssetsListURL) WithBasePath(bp string) *GetAssetsListURL
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
Source Files ¶
- get_asset_operations_list.go
- get_asset_operations_list_parameters.go
- get_asset_operations_list_responses.go
- get_asset_operations_list_urlbuilder.go
- get_asset_report.go
- get_asset_report_parameters.go
- get_asset_report_responses.go
- get_asset_report_urlbuilder.go
- get_asset_token_holders_list.go
- get_asset_token_holders_list_parameters.go
- get_asset_token_holders_list_responses.go
- get_asset_token_holders_list_urlbuilder.go
- get_asset_token_info.go
- get_asset_token_info_parameters.go
- get_asset_token_info_responses.go
- get_asset_token_info_urlbuilder.go
- get_assets_list.go
- get_assets_list_parameters.go
- get_assets_list_responses.go
- get_assets_list_urlbuilder.go