accounts

package
v0.0.0-...-71505b4 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const GetAccountBadRequestCode int = 400

GetAccountBadRequestCode is the HTTP code returned for type GetAccountBadRequest

View Source
const GetAccountDelegatorsBadRequestCode int = 400

GetAccountDelegatorsBadRequestCode is the HTTP code returned for type GetAccountDelegatorsBadRequest

View Source
const GetAccountDelegatorsInternalServerErrorCode int = 500

GetAccountDelegatorsInternalServerErrorCode is the HTTP code returned for type GetAccountDelegatorsInternalServerError

View Source
const GetAccountDelegatorsOKCode int = 200

GetAccountDelegatorsOKCode is the HTTP code returned for type GetAccountDelegatorsOK

View Source
const GetAccountInternalServerErrorCode int = 500

GetAccountInternalServerErrorCode is the HTTP code returned for type GetAccountInternalServerError

View Source
const GetAccountNotFoundCode int = 404

GetAccountNotFoundCode is the HTTP code returned for type GetAccountNotFound

View Source
const GetAccountOKCode int = 200

GetAccountOKCode is the HTTP code returned for type GetAccountOK

View Source
const GetAccountsListBadRequestCode int = 400

GetAccountsListBadRequestCode is the HTTP code returned for type GetAccountsListBadRequest

View Source
const GetAccountsListNotFoundCode int = 404

GetAccountsListNotFoundCode is the HTTP code returned for type GetAccountsListNotFound

View Source
const GetAccountsListOKCode int = 200

GetAccountsListOKCode is the HTTP code returned for type GetAccountsListOK

View Source
const GetBakersListBadRequestCode int = 400

GetBakersListBadRequestCode is the HTTP code returned for type GetBakersListBadRequest

View Source
const GetBakersListNotFoundCode int = 404

GetBakersListNotFoundCode is the HTTP code returned for type GetBakersListNotFound

View Source
const GetBakersListOKCode int = 200

GetBakersListOKCode is the HTTP code returned for type GetBakersListOK

View Source
const GetContractsListBadRequestCode int = 400

GetContractsListBadRequestCode is the HTTP code returned for type GetContractsListBadRequest

View Source
const GetContractsListNotFoundCode int = 404

GetContractsListNotFoundCode is the HTTP code returned for type GetContractsListNotFound

View Source
const GetContractsListOKCode int = 200

GetContractsListOKCode is the HTTP code returned for type GetContractsListOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAccount

type GetAccount struct {
	Context *middleware.Context
	Handler GetAccountHandler
}

GetAccount swagger:route GET /v2/data/{platform}/{network}/accounts/{accountId} Accounts getAccount

GetAccount get account API

func NewGetAccount

func NewGetAccount(ctx *middleware.Context, handler GetAccountHandler) *GetAccount

NewGetAccount creates a new http.Handler for the get account operation

func (*GetAccount) ServeHTTP

func (o *GetAccount) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetAccountBadRequest

type GetAccountBadRequest struct {
}

GetAccountBadRequest Bad request

swagger:response getAccountBadRequest

func NewGetAccountBadRequest

func NewGetAccountBadRequest() *GetAccountBadRequest

NewGetAccountBadRequest creates GetAccountBadRequest with default headers values

func (*GetAccountBadRequest) WriteResponse

func (o *GetAccountBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountDelegators

type GetAccountDelegators struct {
	Context *middleware.Context
	Handler GetAccountDelegatorsHandler
}

GetAccountDelegators swagger:route GET /v2/data/{platform}/{network}/accounts/{accountId}/delegators Accounts getAccountDelegators

GetAccountDelegators get account delegators API

func NewGetAccountDelegators

func NewGetAccountDelegators(ctx *middleware.Context, handler GetAccountDelegatorsHandler) *GetAccountDelegators

NewGetAccountDelegators creates a new http.Handler for the get account delegators operation

func (*GetAccountDelegators) ServeHTTP

func (o *GetAccountDelegators) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetAccountDelegatorsBadRequest

type GetAccountDelegatorsBadRequest struct {
}

GetAccountDelegatorsBadRequest Bad request

swagger:response getAccountDelegatorsBadRequest

func NewGetAccountDelegatorsBadRequest

func NewGetAccountDelegatorsBadRequest() *GetAccountDelegatorsBadRequest

NewGetAccountDelegatorsBadRequest creates GetAccountDelegatorsBadRequest with default headers values

func (*GetAccountDelegatorsBadRequest) WriteResponse

func (o *GetAccountDelegatorsBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountDelegatorsHandler

type GetAccountDelegatorsHandler interface {
	Handle(GetAccountDelegatorsParams) middleware.Responder
}

GetAccountDelegatorsHandler interface for that can handle valid get account delegators params

type GetAccountDelegatorsHandlerFunc

type GetAccountDelegatorsHandlerFunc func(GetAccountDelegatorsParams) middleware.Responder

GetAccountDelegatorsHandlerFunc turns a function with the right signature into a get account delegators handler

func (GetAccountDelegatorsHandlerFunc) Handle

Handle executing the request and returning a response

type GetAccountDelegatorsInternalServerError

type GetAccountDelegatorsInternalServerError struct {
}

GetAccountDelegatorsInternalServerError Internal error

swagger:response getAccountDelegatorsInternalServerError

func NewGetAccountDelegatorsInternalServerError

func NewGetAccountDelegatorsInternalServerError() *GetAccountDelegatorsInternalServerError

NewGetAccountDelegatorsInternalServerError creates GetAccountDelegatorsInternalServerError with default headers values

func (*GetAccountDelegatorsInternalServerError) WriteResponse

WriteResponse to the client

type GetAccountDelegatorsOK

type GetAccountDelegatorsOK struct {
	/*The total number of data entries.

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.AccountsRow `json:"body,omitempty"`
}

GetAccountDelegatorsOK Endpoint for account delegators

swagger:response getAccountDelegatorsOK

func NewGetAccountDelegatorsOK

func NewGetAccountDelegatorsOK() *GetAccountDelegatorsOK

NewGetAccountDelegatorsOK creates GetAccountDelegatorsOK with default headers values

func (*GetAccountDelegatorsOK) SetPayload

func (o *GetAccountDelegatorsOK) SetPayload(payload []*models.AccountsRow)

SetPayload sets the payload to the get account delegators o k response

func (*GetAccountDelegatorsOK) SetXTotalCount

func (o *GetAccountDelegatorsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the get account delegators o k response

func (*GetAccountDelegatorsOK) WithPayload

WithPayload adds the payload to the get account delegators o k response

func (*GetAccountDelegatorsOK) WithXTotalCount

func (o *GetAccountDelegatorsOK) WithXTotalCount(xTotalCount int64) *GetAccountDelegatorsOK

WithXTotalCount adds the xTotalCount to the get account delegators o k response

func (*GetAccountDelegatorsOK) WriteResponse

func (o *GetAccountDelegatorsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountDelegatorsParams

type GetAccountDelegatorsParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	AccountID string
	/*
	  Maximum: 500
	  Minimum: 1
	  In: query
	  Default: 20
	*/
	Limit *int64
	/*Not used
	  Required: true
	  In: path
	*/
	Network string
	/*Offset
	  Minimum: 0
	  In: query
	  Default: 0
	*/
	Offset *int64
	/*Not used
	  Required: true
	  In: path
	*/
	Platform string
}

GetAccountDelegatorsParams contains all the bound params for the get account delegators operation typically these are obtained from a http.Request

swagger:parameters getAccountDelegators

func NewGetAccountDelegatorsParams

func NewGetAccountDelegatorsParams() GetAccountDelegatorsParams

NewGetAccountDelegatorsParams creates a new GetAccountDelegatorsParams object with the default values initialized.

func (*GetAccountDelegatorsParams) 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 NewGetAccountDelegatorsParams() beforehand.

type GetAccountDelegatorsURL

type GetAccountDelegatorsURL struct {
	AccountID string
	Network   string
	Platform  string

	Limit  *int64
	Offset *int64
	// contains filtered or unexported fields
}

GetAccountDelegatorsURL generates an URL for the get account delegators operation

func (*GetAccountDelegatorsURL) Build

func (o *GetAccountDelegatorsURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetAccountDelegatorsURL) BuildFull

func (o *GetAccountDelegatorsURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetAccountDelegatorsURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetAccountDelegatorsURL) SetBasePath

func (o *GetAccountDelegatorsURL) 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 (*GetAccountDelegatorsURL) String

func (o *GetAccountDelegatorsURL) String() string

String returns the string representation of the path with query string

func (*GetAccountDelegatorsURL) StringFull

func (o *GetAccountDelegatorsURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetAccountDelegatorsURL) 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 GetAccountHandler

type GetAccountHandler interface {
	Handle(GetAccountParams) middleware.Responder
}

GetAccountHandler interface for that can handle valid get account params

type GetAccountHandlerFunc

type GetAccountHandlerFunc func(GetAccountParams) middleware.Responder

GetAccountHandlerFunc turns a function with the right signature into a get account handler

func (GetAccountHandlerFunc) Handle

Handle executing the request and returning a response

type GetAccountInternalServerError

type GetAccountInternalServerError struct {
}

GetAccountInternalServerError Internal error

swagger:response getAccountInternalServerError

func NewGetAccountInternalServerError

func NewGetAccountInternalServerError() *GetAccountInternalServerError

NewGetAccountInternalServerError creates GetAccountInternalServerError with default headers values

func (*GetAccountInternalServerError) WriteResponse

func (o *GetAccountInternalServerError) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountNotFound

type GetAccountNotFound struct {
}

GetAccountNotFound Not Found

swagger:response getAccountNotFound

func NewGetAccountNotFound

func NewGetAccountNotFound() *GetAccountNotFound

NewGetAccountNotFound creates GetAccountNotFound with default headers values

func (*GetAccountNotFound) WriteResponse

func (o *GetAccountNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountOK

type GetAccountOK struct {

	/*
	  In: Body
	*/
	Payload *models.AccountsRow `json:"body,omitempty"`
}

GetAccountOK Query compatibility endpoint for account

swagger:response getAccountOK

func NewGetAccountOK

func NewGetAccountOK() *GetAccountOK

NewGetAccountOK creates GetAccountOK with default headers values

func (*GetAccountOK) SetPayload

func (o *GetAccountOK) SetPayload(payload *models.AccountsRow)

SetPayload sets the payload to the get account o k response

func (*GetAccountOK) WithPayload

func (o *GetAccountOK) WithPayload(payload *models.AccountsRow) *GetAccountOK

WithPayload adds the payload to the get account o k response

func (*GetAccountOK) WriteResponse

func (o *GetAccountOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountParams

type GetAccountParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Required: true
	  In: path
	*/
	AccountID string
	/*Not used
	  Required: true
	  In: path
	*/
	Network string
	/*Not used
	  Required: true
	  In: path
	*/
	Platform string
}

GetAccountParams contains all the bound params for the get account operation typically these are obtained from a http.Request

swagger:parameters getAccount

func NewGetAccountParams

func NewGetAccountParams() GetAccountParams

NewGetAccountParams creates a new GetAccountParams object no default values defined in spec.

func (*GetAccountParams) BindRequest

func (o *GetAccountParams) 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 NewGetAccountParams() beforehand.

type GetAccountURL

type GetAccountURL struct {
	AccountID string
	Network   string
	Platform  string
	// contains filtered or unexported fields
}

GetAccountURL generates an URL for the get account operation

func (*GetAccountURL) Build

func (o *GetAccountURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetAccountURL) BuildFull

func (o *GetAccountURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetAccountURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetAccountURL) SetBasePath

func (o *GetAccountURL) 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 (*GetAccountURL) String

func (o *GetAccountURL) String() string

String returns the string representation of the path with query string

func (*GetAccountURL) StringFull

func (o *GetAccountURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetAccountURL) WithBasePath

func (o *GetAccountURL) WithBasePath(bp string) *GetAccountURL

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 GetAccountsList

type GetAccountsList struct {
	Context *middleware.Context
	Handler GetAccountsListHandler
}

GetAccountsList swagger:route GET /v2/data/{platform}/{network}/accounts Accounts getAccountsList

GetAccountsList get accounts list API

func NewGetAccountsList

func NewGetAccountsList(ctx *middleware.Context, handler GetAccountsListHandler) *GetAccountsList

NewGetAccountsList creates a new http.Handler for the get accounts list operation

func (*GetAccountsList) ServeHTTP

func (o *GetAccountsList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetAccountsListBadRequest

type GetAccountsListBadRequest struct {
}

GetAccountsListBadRequest Bad request

swagger:response getAccountsListBadRequest

func NewGetAccountsListBadRequest

func NewGetAccountsListBadRequest() *GetAccountsListBadRequest

NewGetAccountsListBadRequest creates GetAccountsListBadRequest with default headers values

func (*GetAccountsListBadRequest) WriteResponse

func (o *GetAccountsListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountsListHandler

type GetAccountsListHandler interface {
	Handle(GetAccountsListParams) middleware.Responder
}

GetAccountsListHandler interface for that can handle valid get accounts list params

type GetAccountsListHandlerFunc

type GetAccountsListHandlerFunc func(GetAccountsListParams) middleware.Responder

GetAccountsListHandlerFunc turns a function with the right signature into a get accounts list handler

func (GetAccountsListHandlerFunc) Handle

Handle executing the request and returning a response

type GetAccountsListNotFound

type GetAccountsListNotFound struct {
}

GetAccountsListNotFound Not Found

swagger:response getAccountsListNotFound

func NewGetAccountsListNotFound

func NewGetAccountsListNotFound() *GetAccountsListNotFound

NewGetAccountsListNotFound creates GetAccountsListNotFound with default headers values

func (*GetAccountsListNotFound) WriteResponse

func (o *GetAccountsListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountsListOK

type GetAccountsListOK struct {
	/*The total number of data entries.

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.AccountsRow `json:"body,omitempty"`
}

GetAccountsListOK Query compatibility endpoint for accounts

swagger:response getAccountsListOK

func NewGetAccountsListOK

func NewGetAccountsListOK() *GetAccountsListOK

NewGetAccountsListOK creates GetAccountsListOK with default headers values

func (*GetAccountsListOK) SetPayload

func (o *GetAccountsListOK) SetPayload(payload []*models.AccountsRow)

SetPayload sets the payload to the get accounts list o k response

func (*GetAccountsListOK) SetXTotalCount

func (o *GetAccountsListOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the get accounts list o k response

func (*GetAccountsListOK) WithPayload

func (o *GetAccountsListOK) WithPayload(payload []*models.AccountsRow) *GetAccountsListOK

WithPayload adds the payload to the get accounts list o k response

func (*GetAccountsListOK) WithXTotalCount

func (o *GetAccountsListOK) WithXTotalCount(xTotalCount int64) *GetAccountsListOK

WithXTotalCount adds the xTotalCount to the get accounts list o k response

func (*GetAccountsListOK) WriteResponse

func (o *GetAccountsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetAccountsListParams

type GetAccountsListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Not used
	  In: query
	  Collection Format: multi
	*/
	AccountDelegate []string
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	AccountID []string
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	AccountManager []string
	/*
	  In: query
	*/
	AfterID *string
	/*
	  In: query
	  Collection Format: multi
	*/
	BlockID []string
	/*
	  In: query
	  Collection Format: multi
	*/
	BlockLevel []int64
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	BlockNetid []string
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	BlockProtocol []string
	/*
	  Maximum: 500
	  Minimum: 1
	  In: query
	  Default: 20
	*/
	Limit *int64
	/*Not used
	  Required: true
	  In: path
	*/
	Network string
	/*Offset
	  Minimum: 0
	  In: query
	  Default: 0
	*/
	Offset *int64
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	OperationDestination []string
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	OperationID []string
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	OperationKind []string
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	OperationParticipant []string
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	OperationSource []string
	/*Not used
	  In: query
	*/
	Order *string
	/*Not used
	  Required: true
	  In: path
	*/
	Platform string
	/*Not used
	  In: query
	*/
	SortBy *string
}

GetAccountsListParams contains all the bound params for the get accounts list operation typically these are obtained from a http.Request

swagger:parameters getAccountsList

func NewGetAccountsListParams

func NewGetAccountsListParams() GetAccountsListParams

NewGetAccountsListParams creates a new GetAccountsListParams object with the default values initialized.

func (*GetAccountsListParams) BindRequest

func (o *GetAccountsListParams) 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 NewGetAccountsListParams() beforehand.

type GetAccountsListURL

type GetAccountsListURL struct {
	Network  string
	Platform string

	AccountDelegate      []string
	AccountID            []string
	AccountManager       []string
	AfterID              *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
}

GetAccountsListURL generates an URL for the get accounts list operation

func (*GetAccountsListURL) Build

func (o *GetAccountsListURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetAccountsListURL) BuildFull

func (o *GetAccountsListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetAccountsListURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetAccountsListURL) SetBasePath

func (o *GetAccountsListURL) 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 (*GetAccountsListURL) String

func (o *GetAccountsListURL) String() string

String returns the string representation of the path with query string

func (*GetAccountsListURL) StringFull

func (o *GetAccountsListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetAccountsListURL) WithBasePath

func (o *GetAccountsListURL) WithBasePath(bp string) *GetAccountsListURL

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 GetBakersList

type GetBakersList struct {
	Context *middleware.Context
	Handler GetBakersListHandler
}

GetBakersList swagger:route GET /v2/data/{platform}/{network}/bakers Accounts getBakersList

GetBakersList get bakers list API

func NewGetBakersList

func NewGetBakersList(ctx *middleware.Context, handler GetBakersListHandler) *GetBakersList

NewGetBakersList creates a new http.Handler for the get bakers list operation

func (*GetBakersList) ServeHTTP

func (o *GetBakersList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetBakersListBadRequest

type GetBakersListBadRequest struct {
}

GetBakersListBadRequest Bad request

swagger:response getBakersListBadRequest

func NewGetBakersListBadRequest

func NewGetBakersListBadRequest() *GetBakersListBadRequest

NewGetBakersListBadRequest creates GetBakersListBadRequest with default headers values

func (*GetBakersListBadRequest) WriteResponse

func (o *GetBakersListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetBakersListHandler

type GetBakersListHandler interface {
	Handle(GetBakersListParams) middleware.Responder
}

GetBakersListHandler interface for that can handle valid get bakers list params

type GetBakersListHandlerFunc

type GetBakersListHandlerFunc func(GetBakersListParams) middleware.Responder

GetBakersListHandlerFunc turns a function with the right signature into a get bakers list handler

func (GetBakersListHandlerFunc) Handle

Handle executing the request and returning a response

type GetBakersListNotFound

type GetBakersListNotFound struct {
}

GetBakersListNotFound Not Found

swagger:response getBakersListNotFound

func NewGetBakersListNotFound

func NewGetBakersListNotFound() *GetBakersListNotFound

NewGetBakersListNotFound creates GetBakersListNotFound with default headers values

func (*GetBakersListNotFound) WriteResponse

func (o *GetBakersListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetBakersListOK

type GetBakersListOK struct {
	/*The total number of data entries.

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.BakersRow `json:"body,omitempty"`
}

GetBakersListOK Query Endpoint for getting list of baker accounts ordered by staking balance.

swagger:response getBakersListOK

func NewGetBakersListOK

func NewGetBakersListOK() *GetBakersListOK

NewGetBakersListOK creates GetBakersListOK with default headers values

func (*GetBakersListOK) SetPayload

func (o *GetBakersListOK) SetPayload(payload []*models.BakersRow)

SetPayload sets the payload to the get bakers list o k response

func (*GetBakersListOK) SetXTotalCount

func (o *GetBakersListOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the get bakers list o k response

func (*GetBakersListOK) WithPayload

func (o *GetBakersListOK) WithPayload(payload []*models.BakersRow) *GetBakersListOK

WithPayload adds the payload to the get bakers list o k response

func (*GetBakersListOK) WithXTotalCount

func (o *GetBakersListOK) WithXTotalCount(xTotalCount int64) *GetBakersListOK

WithXTotalCount adds the xTotalCount to the get bakers list o k response

func (*GetBakersListOK) WriteResponse

func (o *GetBakersListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetBakersListParams

type GetBakersListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*
	  Maximum: 500
	  Minimum: 1
	  In: query
	  Default: 20
	*/
	Limit *int64
	/*Not used
	  Required: true
	  In: path
	*/
	Network string
	/*Offset
	  Minimum: 0
	  In: query
	  Default: 0
	*/
	Offset *int64
	/*Not used
	  Required: true
	  In: path
	*/
	Platform string
}

GetBakersListParams contains all the bound params for the get bakers list operation typically these are obtained from a http.Request

swagger:parameters getBakersList

func NewGetBakersListParams

func NewGetBakersListParams() GetBakersListParams

NewGetBakersListParams creates a new GetBakersListParams object with the default values initialized.

func (*GetBakersListParams) BindRequest

func (o *GetBakersListParams) 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 NewGetBakersListParams() beforehand.

type GetBakersListURL

type GetBakersListURL struct {
	Network  string
	Platform string

	Limit  *int64
	Offset *int64
	// contains filtered or unexported fields
}

GetBakersListURL generates an URL for the get bakers list operation

func (*GetBakersListURL) Build

func (o *GetBakersListURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetBakersListURL) BuildFull

func (o *GetBakersListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetBakersListURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetBakersListURL) SetBasePath

func (o *GetBakersListURL) 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 (*GetBakersListURL) String

func (o *GetBakersListURL) String() string

String returns the string representation of the path with query string

func (*GetBakersListURL) StringFull

func (o *GetBakersListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetBakersListURL) WithBasePath

func (o *GetBakersListURL) WithBasePath(bp string) *GetBakersListURL

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 GetContractsList

type GetContractsList struct {
	Context *middleware.Context
	Handler GetContractsListHandler
}

GetContractsList swagger:route GET /v2/data/{platform}/{network}/contracts Accounts getContractsList

GetContractsList get contracts list API

func NewGetContractsList

func NewGetContractsList(ctx *middleware.Context, handler GetContractsListHandler) *GetContractsList

NewGetContractsList creates a new http.Handler for the get contracts list operation

func (*GetContractsList) ServeHTTP

func (o *GetContractsList) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetContractsListBadRequest

type GetContractsListBadRequest struct {
}

GetContractsListBadRequest Bad request

swagger:response getContractsListBadRequest

func NewGetContractsListBadRequest

func NewGetContractsListBadRequest() *GetContractsListBadRequest

NewGetContractsListBadRequest creates GetContractsListBadRequest with default headers values

func (*GetContractsListBadRequest) WriteResponse

func (o *GetContractsListBadRequest) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetContractsListHandler

type GetContractsListHandler interface {
	Handle(GetContractsListParams) middleware.Responder
}

GetContractsListHandler interface for that can handle valid get contracts list params

type GetContractsListHandlerFunc

type GetContractsListHandlerFunc func(GetContractsListParams) middleware.Responder

GetContractsListHandlerFunc turns a function with the right signature into a get contracts list handler

func (GetContractsListHandlerFunc) Handle

Handle executing the request and returning a response

type GetContractsListNotFound

type GetContractsListNotFound struct {
}

GetContractsListNotFound Not Found

swagger:response getContractsListNotFound

func NewGetContractsListNotFound

func NewGetContractsListNotFound() *GetContractsListNotFound

NewGetContractsListNotFound creates GetContractsListNotFound with default headers values

func (*GetContractsListNotFound) WriteResponse

func (o *GetContractsListNotFound) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetContractsListOK

type GetContractsListOK struct {
	/*The total number of data entries.

	 */
	XTotalCount int64 `json:"X-Total-Count"`

	/*
	  In: Body
	*/
	Payload []*models.AccountsRow `json:"body,omitempty"`
}

GetContractsListOK Query compatibility endpoint for contract accounts

swagger:response getContractsListOK

func NewGetContractsListOK

func NewGetContractsListOK() *GetContractsListOK

NewGetContractsListOK creates GetContractsListOK with default headers values

func (*GetContractsListOK) SetPayload

func (o *GetContractsListOK) SetPayload(payload []*models.AccountsRow)

SetPayload sets the payload to the get contracts list o k response

func (*GetContractsListOK) SetXTotalCount

func (o *GetContractsListOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the get contracts list o k response

func (*GetContractsListOK) WithPayload

func (o *GetContractsListOK) WithPayload(payload []*models.AccountsRow) *GetContractsListOK

WithPayload adds the payload to the get contracts list o k response

func (*GetContractsListOK) WithXTotalCount

func (o *GetContractsListOK) WithXTotalCount(xTotalCount int64) *GetContractsListOK

WithXTotalCount adds the xTotalCount to the get contracts list o k response

func (*GetContractsListOK) WriteResponse

func (o *GetContractsListOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetContractsListParams

type GetContractsListParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`

	/*Not used
	  In: query
	  Collection Format: multi
	*/
	AccountDelegate []string
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	AccountID []string
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	AccountManager []string
	/*
	  In: query
	*/
	AfterID *string
	/*
	  Maximum: 500
	  Minimum: 1
	  In: query
	  Default: 20
	*/
	Limit *int64
	/*Not used
	  Required: true
	  In: path
	*/
	Network string
	/*Offset
	  Minimum: 0
	  In: query
	  Default: 0
	*/
	Offset *int64
	/*Not used
	  In: query
	*/
	Order *string
	/*Not used
	  Required: true
	  In: path
	*/
	Platform string
	/*Not used
	  In: query
	*/
	SortBy *string
}

GetContractsListParams contains all the bound params for the get contracts list operation typically these are obtained from a http.Request

swagger:parameters getContractsList

func NewGetContractsListParams

func NewGetContractsListParams() GetContractsListParams

NewGetContractsListParams creates a new GetContractsListParams object with the default values initialized.

func (*GetContractsListParams) BindRequest

func (o *GetContractsListParams) 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 NewGetContractsListParams() beforehand.

type GetContractsListURL

type GetContractsListURL struct {
	Network  string
	Platform string

	AccountDelegate []string
	AccountID       []string
	AccountManager  []string
	AfterID         *string
	Limit           *int64
	Offset          *int64
	Order           *string
	SortBy          *string
	// contains filtered or unexported fields
}

GetContractsListURL generates an URL for the get contracts list operation

func (*GetContractsListURL) Build

func (o *GetContractsListURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetContractsListURL) BuildFull

func (o *GetContractsListURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetContractsListURL) Must

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

Must is a helper function to panic when the url builder returns an error

func (*GetContractsListURL) SetBasePath

func (o *GetContractsListURL) 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 (*GetContractsListURL) String

func (o *GetContractsListURL) String() string

String returns the string representation of the path with query string

func (*GetContractsListURL) StringFull

func (o *GetContractsListURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetContractsListURL) WithBasePath

func (o *GetContractsListURL) WithBasePath(bp string) *GetContractsListURL

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