assets

package
v0.0.0-...-80b2b3e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GetAssetOperationsListBadRequestCode int = 400

GetAssetOperationsListBadRequestCode is the HTTP code returned for type GetAssetOperationsListBadRequest

View Source
const GetAssetOperationsListNotFoundCode int = 404

GetAssetOperationsListNotFoundCode is the HTTP code returned for type GetAssetOperationsListNotFound

View Source
const GetAssetOperationsListOKCode int = 200

GetAssetOperationsListOKCode is the HTTP code returned for type GetAssetOperationsListOK

View Source
const GetAssetReportBadRequestCode int = 400

GetAssetReportBadRequestCode is the HTTP code returned for type GetAssetReportBadRequest

View Source
const GetAssetReportInternalServerErrorCode int = 500

GetAssetReportInternalServerErrorCode is the HTTP code returned for type GetAssetReportInternalServerError

View Source
const GetAssetReportNotFoundCode int = 404

GetAssetReportNotFoundCode is the HTTP code returned for type GetAssetReportNotFound

View Source
const GetAssetReportOKCode int = 200

GetAssetReportOKCode is the HTTP code returned for type GetAssetReportOK

View Source
const GetAssetTokenHoldersListBadRequestCode int = 400

GetAssetTokenHoldersListBadRequestCode is the HTTP code returned for type GetAssetTokenHoldersListBadRequest

View Source
const GetAssetTokenHoldersListNotFoundCode int = 404

GetAssetTokenHoldersListNotFoundCode is the HTTP code returned for type GetAssetTokenHoldersListNotFound

View Source
const GetAssetTokenHoldersListOKCode int = 200

GetAssetTokenHoldersListOKCode is the HTTP code returned for type GetAssetTokenHoldersListOK

View Source
const GetAssetTokenInfoBadRequestCode int = 400

GetAssetTokenInfoBadRequestCode is the HTTP code returned for type GetAssetTokenInfoBadRequest

View Source
const GetAssetTokenInfoNotFoundCode int = 404

GetAssetTokenInfoNotFoundCode is the HTTP code returned for type GetAssetTokenInfoNotFound

View Source
const GetAssetTokenInfoOKCode int = 200

GetAssetTokenInfoOKCode is the HTTP code returned for type GetAssetTokenInfoOK

View Source
const GetAssetsListBadRequestCode int = 400

GetAssetsListBadRequestCode is the HTTP code returned for type GetAssetsListBadRequest

View Source
const GetAssetsListNotFoundCode int = 404

GetAssetsListNotFoundCode is the HTTP code returned for type GetAssetsListNotFound

View Source
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

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

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

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

func (o *GetAssetOperationsListURL) Must(u *url.URL, err error) *url.URL

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

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

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

func (o *GetAssetReportURL) Must(u *url.URL, err error) *url.URL

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

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

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

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

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

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

func (o *GetAssetTokenHoldersListURL) Must(u *url.URL, err error) *url.URL

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

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

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

func (o *GetAssetTokenInfoURL) Must(u *url.URL, err error) *url.URL

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

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

func (o *GetAssetsListURL) Must(u *url.URL, err error) *url.URL

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL