blocks

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 GetBakingRightsBadRequestCode int = 400

GetBakingRightsBadRequestCode is the HTTP code returned for type GetBakingRightsBadRequest

View Source
const GetBakingRightsNotFoundCode int = 404

GetBakingRightsNotFoundCode is the HTTP code returned for type GetBakingRightsNotFound

View Source
const GetBakingRightsOKCode int = 200

GetBakingRightsOKCode is the HTTP code returned for type GetBakingRightsOK

View Source
const GetBlockBadRequestCode int = 400

GetBlockBadRequestCode is the HTTP code returned for type GetBlockBadRequest

View Source
const GetBlockBakingRightsBadRequestCode int = 400

GetBlockBakingRightsBadRequestCode is the HTTP code returned for type GetBlockBakingRightsBadRequest

View Source
const GetBlockBakingRightsInternalServerErrorCode int = 500

GetBlockBakingRightsInternalServerErrorCode is the HTTP code returned for type GetBlockBakingRightsInternalServerError

View Source
const GetBlockBakingRightsNotFoundCode int = 404

GetBlockBakingRightsNotFoundCode is the HTTP code returned for type GetBlockBakingRightsNotFound

View Source
const GetBlockBakingRightsOKCode int = 200

GetBlockBakingRightsOKCode is the HTTP code returned for type GetBlockBakingRightsOK

View Source
const GetBlockEndorsementsBadRequestCode int = 400

GetBlockEndorsementsBadRequestCode is the HTTP code returned for type GetBlockEndorsementsBadRequest

View Source
const GetBlockEndorsementsInternalServerErrorCode int = 500

GetBlockEndorsementsInternalServerErrorCode is the HTTP code returned for type GetBlockEndorsementsInternalServerError

View Source
const GetBlockEndorsementsNotFoundCode int = 404

GetBlockEndorsementsNotFoundCode is the HTTP code returned for type GetBlockEndorsementsNotFound

View Source
const GetBlockEndorsementsOKCode int = 200

GetBlockEndorsementsOKCode is the HTTP code returned for type GetBlockEndorsementsOK

View Source
const GetBlockInternalServerErrorCode int = 500

GetBlockInternalServerErrorCode is the HTTP code returned for type GetBlockInternalServerError

View Source
const GetBlockNotFoundCode int = 404

GetBlockNotFoundCode is the HTTP code returned for type GetBlockNotFound

View Source
const GetBlockOKCode int = 200

GetBlockOKCode is the HTTP code returned for type GetBlockOK

View Source
const GetBlocksHeadBadRequestCode int = 400

GetBlocksHeadBadRequestCode is the HTTP code returned for type GetBlocksHeadBadRequest

View Source
const GetBlocksHeadInternalServerErrorCode int = 500

GetBlocksHeadInternalServerErrorCode is the HTTP code returned for type GetBlocksHeadInternalServerError

View Source
const GetBlocksHeadOKCode int = 200

GetBlocksHeadOKCode is the HTTP code returned for type GetBlocksHeadOK

View Source
const GetBlocksListBadRequestCode int = 400

GetBlocksListBadRequestCode is the HTTP code returned for type GetBlocksListBadRequest

View Source
const GetBlocksListNotFoundCode int = 404

GetBlocksListNotFoundCode is the HTTP code returned for type GetBlocksListNotFound

View Source
const GetBlocksListOKCode int = 200

GetBlocksListOKCode is the HTTP code returned for type GetBlocksListOK

View Source
const GetFutureBakingRightsBadRequestCode int = 400

GetFutureBakingRightsBadRequestCode is the HTTP code returned for type GetFutureBakingRightsBadRequest

View Source
const GetFutureBakingRightsNotFoundCode int = 404

GetFutureBakingRightsNotFoundCode is the HTTP code returned for type GetFutureBakingRightsNotFound

View Source
const GetFutureBakingRightsOKCode int = 200

GetFutureBakingRightsOKCode is the HTTP code returned for type GetFutureBakingRightsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetBakingRights

type GetBakingRights struct {
	Context *middleware.Context
	Handler GetBakingRightsHandler
}

GetBakingRights swagger:route GET /v2/data/{platform}/{network}/baking_rights Blocks getBakingRights

GetBakingRights get baking rights API

func NewGetBakingRights

func NewGetBakingRights(ctx *middleware.Context, handler GetBakingRightsHandler) *GetBakingRights

NewGetBakingRights creates a new http.Handler for the get baking rights operation

func (*GetBakingRights) ServeHTTP

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

type GetBakingRightsBadRequest

type GetBakingRightsBadRequest struct {
}

GetBakingRightsBadRequest Bad request

swagger:response getBakingRightsBadRequest

func NewGetBakingRightsBadRequest

func NewGetBakingRightsBadRequest() *GetBakingRightsBadRequest

NewGetBakingRightsBadRequest creates GetBakingRightsBadRequest with default headers values

func (*GetBakingRightsBadRequest) WriteResponse

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

WriteResponse to the client

type GetBakingRightsHandler

type GetBakingRightsHandler interface {
	Handle(GetBakingRightsParams) middleware.Responder
}

GetBakingRightsHandler interface for that can handle valid get baking rights params

type GetBakingRightsHandlerFunc

type GetBakingRightsHandlerFunc func(GetBakingRightsParams) middleware.Responder

GetBakingRightsHandlerFunc turns a function with the right signature into a get baking rights handler

func (GetBakingRightsHandlerFunc) Handle

Handle executing the request and returning a response

type GetBakingRightsNotFound

type GetBakingRightsNotFound struct {
}

GetBakingRightsNotFound Not Found

swagger:response getBakingRightsNotFound

func NewGetBakingRightsNotFound

func NewGetBakingRightsNotFound() *GetBakingRightsNotFound

NewGetBakingRightsNotFound creates GetBakingRightsNotFound with default headers values

func (*GetBakingRightsNotFound) WriteResponse

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

WriteResponse to the client

type GetBakingRightsOK

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

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

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

GetBakingRightsOK Endpoint for baking rights

swagger:response getBakingRightsOK

func NewGetBakingRightsOK

func NewGetBakingRightsOK() *GetBakingRightsOK

NewGetBakingRightsOK creates GetBakingRightsOK with default headers values

func (*GetBakingRightsOK) SetPayload

func (o *GetBakingRightsOK) SetPayload(payload []*models.BakingRightsPerBlock)

SetPayload sets the payload to the get baking rights o k response

func (*GetBakingRightsOK) SetXTotalCount

func (o *GetBakingRightsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the get baking rights o k response

func (*GetBakingRightsOK) WithPayload

func (o *GetBakingRightsOK) WithPayload(payload []*models.BakingRightsPerBlock) *GetBakingRightsOK

WithPayload adds the payload to the get baking rights o k response

func (*GetBakingRightsOK) WithXTotalCount

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

WithXTotalCount adds the xTotalCount to the get baking rights o k response

func (*GetBakingRightsOK) WriteResponse

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

WriteResponse to the client

type GetBakingRightsParams

type GetBakingRightsParams struct {

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

	/*
	  In: query
	  Collection Format: multi
	*/
	BlockID []string
	/*
	  Maximum: 50
	  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
	/*
	  Maximum: 64
	  Minimum: 0
	  In: query
	  Default: 10
	*/
	PrioritiesTo *int64
}

GetBakingRightsParams contains all the bound params for the get baking rights operation typically these are obtained from a http.Request

swagger:parameters getBakingRights

func NewGetBakingRightsParams

func NewGetBakingRightsParams() GetBakingRightsParams

NewGetBakingRightsParams creates a new GetBakingRightsParams object with the default values initialized.

func (*GetBakingRightsParams) BindRequest

func (o *GetBakingRightsParams) 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 NewGetBakingRightsParams() beforehand.

type GetBakingRightsURL

type GetBakingRightsURL struct {
	Network  string
	Platform string

	BlockID      []string
	Limit        *int64
	Offset       *int64
	PrioritiesTo *int64
	// contains filtered or unexported fields
}

GetBakingRightsURL generates an URL for the get baking rights operation

func (*GetBakingRightsURL) Build

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

Build a url path and query string

func (*GetBakingRightsURL) BuildFull

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

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

func (*GetBakingRightsURL) Must

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

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

func (*GetBakingRightsURL) SetBasePath

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

func (o *GetBakingRightsURL) String() string

String returns the string representation of the path with query string

func (*GetBakingRightsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBakingRightsURL) WithBasePath

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

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 GetBlock

type GetBlock struct {
	Context *middleware.Context
	Handler GetBlockHandler
}

GetBlock swagger:route GET /v2/data/{platform}/{network}/blocks/{hash} Blocks getBlock

GetBlock get block API

func NewGetBlock

func NewGetBlock(ctx *middleware.Context, handler GetBlockHandler) *GetBlock

NewGetBlock creates a new http.Handler for the get block operation

func (*GetBlock) ServeHTTP

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

type GetBlockBadRequest

type GetBlockBadRequest struct {
}

GetBlockBadRequest Bad request

swagger:response getBlockBadRequest

func NewGetBlockBadRequest

func NewGetBlockBadRequest() *GetBlockBadRequest

NewGetBlockBadRequest creates GetBlockBadRequest with default headers values

func (*GetBlockBadRequest) WriteResponse

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

WriteResponse to the client

type GetBlockBakingRights

type GetBlockBakingRights struct {
	Context *middleware.Context
	Handler GetBlockBakingRightsHandler
}

GetBlockBakingRights swagger:route GET /v2/data/{platform}/{network}/blocks/{hash}/baking_rights Blocks getBlockBakingRights

GetBlockBakingRights get block baking rights API

func NewGetBlockBakingRights

func NewGetBlockBakingRights(ctx *middleware.Context, handler GetBlockBakingRightsHandler) *GetBlockBakingRights

NewGetBlockBakingRights creates a new http.Handler for the get block baking rights operation

func (*GetBlockBakingRights) ServeHTTP

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

type GetBlockBakingRightsBadRequest

type GetBlockBakingRightsBadRequest struct {
}

GetBlockBakingRightsBadRequest Bad request

swagger:response getBlockBakingRightsBadRequest

func NewGetBlockBakingRightsBadRequest

func NewGetBlockBakingRightsBadRequest() *GetBlockBakingRightsBadRequest

NewGetBlockBakingRightsBadRequest creates GetBlockBakingRightsBadRequest with default headers values

func (*GetBlockBakingRightsBadRequest) WriteResponse

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

WriteResponse to the client

type GetBlockBakingRightsHandler

type GetBlockBakingRightsHandler interface {
	Handle(GetBlockBakingRightsParams) middleware.Responder
}

GetBlockBakingRightsHandler interface for that can handle valid get block baking rights params

type GetBlockBakingRightsHandlerFunc

type GetBlockBakingRightsHandlerFunc func(GetBlockBakingRightsParams) middleware.Responder

GetBlockBakingRightsHandlerFunc turns a function with the right signature into a get block baking rights handler

func (GetBlockBakingRightsHandlerFunc) Handle

Handle executing the request and returning a response

type GetBlockBakingRightsInternalServerError

type GetBlockBakingRightsInternalServerError struct {
}

GetBlockBakingRightsInternalServerError Internal error

swagger:response getBlockBakingRightsInternalServerError

func NewGetBlockBakingRightsInternalServerError

func NewGetBlockBakingRightsInternalServerError() *GetBlockBakingRightsInternalServerError

NewGetBlockBakingRightsInternalServerError creates GetBlockBakingRightsInternalServerError with default headers values

func (*GetBlockBakingRightsInternalServerError) WriteResponse

WriteResponse to the client

type GetBlockBakingRightsNotFound

type GetBlockBakingRightsNotFound struct {
}

GetBlockBakingRightsNotFound Not Found

swagger:response getBlockBakingRightsNotFound

func NewGetBlockBakingRightsNotFound

func NewGetBlockBakingRightsNotFound() *GetBlockBakingRightsNotFound

NewGetBlockBakingRightsNotFound creates GetBlockBakingRightsNotFound with default headers values

func (*GetBlockBakingRightsNotFound) WriteResponse

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

WriteResponse to the client

type GetBlockBakingRightsOK

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

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

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

GetBlockBakingRightsOK Endpoint for baking rights of a block by hash or level

swagger:response getBlockBakingRightsOK

func NewGetBlockBakingRightsOK

func NewGetBlockBakingRightsOK() *GetBlockBakingRightsOK

NewGetBlockBakingRightsOK creates GetBlockBakingRightsOK with default headers values

func (*GetBlockBakingRightsOK) SetPayload

func (o *GetBlockBakingRightsOK) SetPayload(payload []*models.BakingRightsRow)

SetPayload sets the payload to the get block baking rights o k response

func (*GetBlockBakingRightsOK) SetXTotalCount

func (o *GetBlockBakingRightsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the get block baking rights o k response

func (*GetBlockBakingRightsOK) WithPayload

WithPayload adds the payload to the get block baking rights o k response

func (*GetBlockBakingRightsOK) WithXTotalCount

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

WithXTotalCount adds the xTotalCount to the get block baking rights o k response

func (*GetBlockBakingRightsOK) WriteResponse

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

WriteResponse to the client

type GetBlockBakingRightsParams

type GetBlockBakingRightsParams struct {

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

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

GetBlockBakingRightsParams contains all the bound params for the get block baking rights operation typically these are obtained from a http.Request

swagger:parameters getBlockBakingRights

func NewGetBlockBakingRightsParams

func NewGetBlockBakingRightsParams() GetBlockBakingRightsParams

NewGetBlockBakingRightsParams creates a new GetBlockBakingRightsParams object no default values defined in spec.

func (*GetBlockBakingRightsParams) 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 NewGetBlockBakingRightsParams() beforehand.

type GetBlockBakingRightsURL

type GetBlockBakingRightsURL struct {
	Hash     string
	Network  string
	Platform string
	// contains filtered or unexported fields
}

GetBlockBakingRightsURL generates an URL for the get block baking rights operation

func (*GetBlockBakingRightsURL) Build

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

Build a url path and query string

func (*GetBlockBakingRightsURL) BuildFull

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

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

func (*GetBlockBakingRightsURL) Must

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

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

func (*GetBlockBakingRightsURL) SetBasePath

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

func (o *GetBlockBakingRightsURL) String() string

String returns the string representation of the path with query string

func (*GetBlockBakingRightsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBlockBakingRightsURL) 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 GetBlockEndorsements

type GetBlockEndorsements struct {
	Context *middleware.Context
	Handler GetBlockEndorsementsHandler
}

GetBlockEndorsements swagger:route GET /v2/data/{platform}/{network}/blocks/{hash}/endorsements Blocks getBlockEndorsements

GetBlockEndorsements get block endorsements API

func NewGetBlockEndorsements

func NewGetBlockEndorsements(ctx *middleware.Context, handler GetBlockEndorsementsHandler) *GetBlockEndorsements

NewGetBlockEndorsements creates a new http.Handler for the get block endorsements operation

func (*GetBlockEndorsements) ServeHTTP

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

type GetBlockEndorsementsBadRequest

type GetBlockEndorsementsBadRequest struct {
}

GetBlockEndorsementsBadRequest Bad request

swagger:response getBlockEndorsementsBadRequest

func NewGetBlockEndorsementsBadRequest

func NewGetBlockEndorsementsBadRequest() *GetBlockEndorsementsBadRequest

NewGetBlockEndorsementsBadRequest creates GetBlockEndorsementsBadRequest with default headers values

func (*GetBlockEndorsementsBadRequest) WriteResponse

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

WriteResponse to the client

type GetBlockEndorsementsHandler

type GetBlockEndorsementsHandler interface {
	Handle(GetBlockEndorsementsParams) middleware.Responder
}

GetBlockEndorsementsHandler interface for that can handle valid get block endorsements params

type GetBlockEndorsementsHandlerFunc

type GetBlockEndorsementsHandlerFunc func(GetBlockEndorsementsParams) middleware.Responder

GetBlockEndorsementsHandlerFunc turns a function with the right signature into a get block endorsements handler

func (GetBlockEndorsementsHandlerFunc) Handle

Handle executing the request and returning a response

type GetBlockEndorsementsInternalServerError

type GetBlockEndorsementsInternalServerError struct {
}

GetBlockEndorsementsInternalServerError Internal error

swagger:response getBlockEndorsementsInternalServerError

func NewGetBlockEndorsementsInternalServerError

func NewGetBlockEndorsementsInternalServerError() *GetBlockEndorsementsInternalServerError

NewGetBlockEndorsementsInternalServerError creates GetBlockEndorsementsInternalServerError with default headers values

func (*GetBlockEndorsementsInternalServerError) WriteResponse

WriteResponse to the client

type GetBlockEndorsementsNotFound

type GetBlockEndorsementsNotFound struct {
}

GetBlockEndorsementsNotFound Not Found

swagger:response getBlockEndorsementsNotFound

func NewGetBlockEndorsementsNotFound

func NewGetBlockEndorsementsNotFound() *GetBlockEndorsementsNotFound

NewGetBlockEndorsementsNotFound creates GetBlockEndorsementsNotFound with default headers values

func (*GetBlockEndorsementsNotFound) WriteResponse

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

WriteResponse to the client

type GetBlockEndorsementsOK

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

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

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

GetBlockEndorsementsOK Endpoint for endorsements of a block by hash or level

swagger:response getBlockEndorsementsOK

func NewGetBlockEndorsementsOK

func NewGetBlockEndorsementsOK() *GetBlockEndorsementsOK

NewGetBlockEndorsementsOK creates GetBlockEndorsementsOK with default headers values

func (*GetBlockEndorsementsOK) SetPayload

func (o *GetBlockEndorsementsOK) SetPayload(payload []*models.OperationsRow)

SetPayload sets the payload to the get block endorsements o k response

func (*GetBlockEndorsementsOK) SetXTotalCount

func (o *GetBlockEndorsementsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the get block endorsements o k response

func (*GetBlockEndorsementsOK) WithPayload

WithPayload adds the payload to the get block endorsements o k response

func (*GetBlockEndorsementsOK) WithXTotalCount

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

WithXTotalCount adds the xTotalCount to the get block endorsements o k response

func (*GetBlockEndorsementsOK) WriteResponse

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

WriteResponse to the client

type GetBlockEndorsementsParams

type GetBlockEndorsementsParams struct {

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

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

GetBlockEndorsementsParams contains all the bound params for the get block endorsements operation typically these are obtained from a http.Request

swagger:parameters getBlockEndorsements

func NewGetBlockEndorsementsParams

func NewGetBlockEndorsementsParams() GetBlockEndorsementsParams

NewGetBlockEndorsementsParams creates a new GetBlockEndorsementsParams object no default values defined in spec.

func (*GetBlockEndorsementsParams) 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 NewGetBlockEndorsementsParams() beforehand.

type GetBlockEndorsementsURL

type GetBlockEndorsementsURL struct {
	Hash     string
	Network  string
	Platform string
	// contains filtered or unexported fields
}

GetBlockEndorsementsURL generates an URL for the get block endorsements operation

func (*GetBlockEndorsementsURL) Build

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

Build a url path and query string

func (*GetBlockEndorsementsURL) BuildFull

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

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

func (*GetBlockEndorsementsURL) Must

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

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

func (*GetBlockEndorsementsURL) SetBasePath

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

func (o *GetBlockEndorsementsURL) String() string

String returns the string representation of the path with query string

func (*GetBlockEndorsementsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBlockEndorsementsURL) 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 GetBlockHandler

type GetBlockHandler interface {
	Handle(GetBlockParams) middleware.Responder
}

GetBlockHandler interface for that can handle valid get block params

type GetBlockHandlerFunc

type GetBlockHandlerFunc func(GetBlockParams) middleware.Responder

GetBlockHandlerFunc turns a function with the right signature into a get block handler

func (GetBlockHandlerFunc) Handle

Handle executing the request and returning a response

type GetBlockInternalServerError

type GetBlockInternalServerError struct {
}

GetBlockInternalServerError Internal error

swagger:response getBlockInternalServerError

func NewGetBlockInternalServerError

func NewGetBlockInternalServerError() *GetBlockInternalServerError

NewGetBlockInternalServerError creates GetBlockInternalServerError with default headers values

func (*GetBlockInternalServerError) WriteResponse

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

WriteResponse to the client

type GetBlockNotFound

type GetBlockNotFound struct {
}

GetBlockNotFound Not Found

swagger:response getBlockNotFound

func NewGetBlockNotFound

func NewGetBlockNotFound() *GetBlockNotFound

NewGetBlockNotFound creates GetBlockNotFound with default headers values

func (*GetBlockNotFound) WriteResponse

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

WriteResponse to the client

type GetBlockOK

type GetBlockOK struct {

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

GetBlockOK Query compatibility endpoint for block by hash

swagger:response getBlockOK

func NewGetBlockOK

func NewGetBlockOK() *GetBlockOK

NewGetBlockOK creates GetBlockOK with default headers values

func (*GetBlockOK) SetPayload

func (o *GetBlockOK) SetPayload(payload *models.BlockResult)

SetPayload sets the payload to the get block o k response

func (*GetBlockOK) WithPayload

func (o *GetBlockOK) WithPayload(payload *models.BlockResult) *GetBlockOK

WithPayload adds the payload to the get block o k response

func (*GetBlockOK) WriteResponse

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

WriteResponse to the client

type GetBlockParams

type GetBlockParams struct {

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

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

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

swagger:parameters getBlock

func NewGetBlockParams

func NewGetBlockParams() GetBlockParams

NewGetBlockParams creates a new GetBlockParams object no default values defined in spec.

func (*GetBlockParams) BindRequest

func (o *GetBlockParams) 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 NewGetBlockParams() beforehand.

type GetBlockURL

type GetBlockURL struct {
	Hash     string
	Network  string
	Platform string
	// contains filtered or unexported fields
}

GetBlockURL generates an URL for the get block operation

func (*GetBlockURL) Build

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

Build a url path and query string

func (*GetBlockURL) BuildFull

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

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

func (*GetBlockURL) Must

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

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

func (*GetBlockURL) SetBasePath

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

func (o *GetBlockURL) String() string

String returns the string representation of the path with query string

func (*GetBlockURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBlockURL) WithBasePath

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

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 GetBlocksHead

type GetBlocksHead struct {
	Context *middleware.Context
	Handler GetBlocksHeadHandler
}

GetBlocksHead swagger:route GET /v2/data/{platform}/{network}/blocks/head Blocks getBlocksHead

GetBlocksHead get blocks head API

func NewGetBlocksHead

func NewGetBlocksHead(ctx *middleware.Context, handler GetBlocksHeadHandler) *GetBlocksHead

NewGetBlocksHead creates a new http.Handler for the get blocks head operation

func (*GetBlocksHead) ServeHTTP

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

type GetBlocksHeadBadRequest

type GetBlocksHeadBadRequest struct {
}

GetBlocksHeadBadRequest Bad request

swagger:response getBlocksHeadBadRequest

func NewGetBlocksHeadBadRequest

func NewGetBlocksHeadBadRequest() *GetBlocksHeadBadRequest

NewGetBlocksHeadBadRequest creates GetBlocksHeadBadRequest with default headers values

func (*GetBlocksHeadBadRequest) WriteResponse

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

WriteResponse to the client

type GetBlocksHeadHandler

type GetBlocksHeadHandler interface {
	Handle(GetBlocksHeadParams) middleware.Responder
}

GetBlocksHeadHandler interface for that can handle valid get blocks head params

type GetBlocksHeadHandlerFunc

type GetBlocksHeadHandlerFunc func(GetBlocksHeadParams) middleware.Responder

GetBlocksHeadHandlerFunc turns a function with the right signature into a get blocks head handler

func (GetBlocksHeadHandlerFunc) Handle

Handle executing the request and returning a response

type GetBlocksHeadInternalServerError

type GetBlocksHeadInternalServerError struct {
}

GetBlocksHeadInternalServerError Not initialized

swagger:response getBlocksHeadInternalServerError

func NewGetBlocksHeadInternalServerError

func NewGetBlocksHeadInternalServerError() *GetBlocksHeadInternalServerError

NewGetBlocksHeadInternalServerError creates GetBlocksHeadInternalServerError with default headers values

func (*GetBlocksHeadInternalServerError) WriteResponse

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

WriteResponse to the client

type GetBlocksHeadOK

type GetBlocksHeadOK struct {

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

GetBlocksHeadOK Query compatibility endpoint for blocks head

swagger:response getBlocksHeadOK

func NewGetBlocksHeadOK

func NewGetBlocksHeadOK() *GetBlocksHeadOK

NewGetBlocksHeadOK creates GetBlocksHeadOK with default headers values

func (*GetBlocksHeadOK) SetPayload

func (o *GetBlocksHeadOK) SetPayload(payload *models.BlocksRow)

SetPayload sets the payload to the get blocks head o k response

func (*GetBlocksHeadOK) WithPayload

func (o *GetBlocksHeadOK) WithPayload(payload *models.BlocksRow) *GetBlocksHeadOK

WithPayload adds the payload to the get blocks head o k response

func (*GetBlocksHeadOK) WriteResponse

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

WriteResponse to the client

type GetBlocksHeadParams

type GetBlocksHeadParams struct {

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

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

GetBlocksHeadParams contains all the bound params for the get blocks head operation typically these are obtained from a http.Request

swagger:parameters getBlocksHead

func NewGetBlocksHeadParams

func NewGetBlocksHeadParams() GetBlocksHeadParams

NewGetBlocksHeadParams creates a new GetBlocksHeadParams object no default values defined in spec.

func (*GetBlocksHeadParams) BindRequest

func (o *GetBlocksHeadParams) 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 NewGetBlocksHeadParams() beforehand.

type GetBlocksHeadURL

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

GetBlocksHeadURL generates an URL for the get blocks head operation

func (*GetBlocksHeadURL) Build

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

Build a url path and query string

func (*GetBlocksHeadURL) BuildFull

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

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

func (*GetBlocksHeadURL) Must

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

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

func (*GetBlocksHeadURL) SetBasePath

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

func (o *GetBlocksHeadURL) String() string

String returns the string representation of the path with query string

func (*GetBlocksHeadURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBlocksHeadURL) WithBasePath

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

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 GetBlocksList

type GetBlocksList struct {
	Context *middleware.Context
	Handler GetBlocksListHandler
}

GetBlocksList swagger:route GET /v2/data/{platform}/{network}/blocks Blocks getBlocksList

GetBlocksList get blocks list API

func NewGetBlocksList

func NewGetBlocksList(ctx *middleware.Context, handler GetBlocksListHandler) *GetBlocksList

NewGetBlocksList creates a new http.Handler for the get blocks list operation

func (*GetBlocksList) ServeHTTP

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

type GetBlocksListBadRequest

type GetBlocksListBadRequest struct {
}

GetBlocksListBadRequest Bad request

swagger:response getBlocksListBadRequest

func NewGetBlocksListBadRequest

func NewGetBlocksListBadRequest() *GetBlocksListBadRequest

NewGetBlocksListBadRequest creates GetBlocksListBadRequest with default headers values

func (*GetBlocksListBadRequest) WriteResponse

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

WriteResponse to the client

type GetBlocksListHandler

type GetBlocksListHandler interface {
	Handle(GetBlocksListParams) middleware.Responder
}

GetBlocksListHandler interface for that can handle valid get blocks list params

type GetBlocksListHandlerFunc

type GetBlocksListHandlerFunc func(GetBlocksListParams) middleware.Responder

GetBlocksListHandlerFunc turns a function with the right signature into a get blocks list handler

func (GetBlocksListHandlerFunc) Handle

Handle executing the request and returning a response

type GetBlocksListNotFound

type GetBlocksListNotFound struct {
}

GetBlocksListNotFound Not Found

swagger:response getBlocksListNotFound

func NewGetBlocksListNotFound

func NewGetBlocksListNotFound() *GetBlocksListNotFound

NewGetBlocksListNotFound creates GetBlocksListNotFound with default headers values

func (*GetBlocksListNotFound) WriteResponse

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

WriteResponse to the client

type GetBlocksListOK

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

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

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

GetBlocksListOK Query compatibility endpoint for blocks

swagger:response getBlocksListOK

func NewGetBlocksListOK

func NewGetBlocksListOK() *GetBlocksListOK

NewGetBlocksListOK creates GetBlocksListOK with default headers values

func (*GetBlocksListOK) SetPayload

func (o *GetBlocksListOK) SetPayload(payload []*models.BlocksRow)

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

func (*GetBlocksListOK) SetXTotalCount

func (o *GetBlocksListOK) SetXTotalCount(xTotalCount int64)

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

func (*GetBlocksListOK) WithPayload

func (o *GetBlocksListOK) WithPayload(payload []*models.BlocksRow) *GetBlocksListOK

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

func (*GetBlocksListOK) WithXTotalCount

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

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

func (*GetBlocksListOK) WriteResponse

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

WriteResponse to the client

type GetBlocksListParams

type GetBlocksListParams 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
	*/
	BeforeLevel *int64
	/*Not used
	  In: query
	  Collection Format: multi
	*/
	BlockID []string
	/*Not used
	  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
}

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

swagger:parameters getBlocksList

func NewGetBlocksListParams

func NewGetBlocksListParams() GetBlocksListParams

NewGetBlocksListParams creates a new GetBlocksListParams object with the default values initialized.

func (*GetBlocksListParams) BindRequest

func (o *GetBlocksListParams) 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 NewGetBlocksListParams() beforehand.

type GetBlocksListURL

type GetBlocksListURL struct {
	Network  string
	Platform string

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

GetBlocksListURL generates an URL for the get blocks list operation

func (*GetBlocksListURL) Build

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

Build a url path and query string

func (*GetBlocksListURL) BuildFull

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

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

func (*GetBlocksListURL) Must

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

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

func (*GetBlocksListURL) SetBasePath

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

func (o *GetBlocksListURL) String() string

String returns the string representation of the path with query string

func (*GetBlocksListURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetBlocksListURL) WithBasePath

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

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 GetFutureBakingRights

type GetFutureBakingRights struct {
	Context *middleware.Context
	Handler GetFutureBakingRightsHandler
}

GetFutureBakingRights swagger:route GET /v2/data/{platform}/{network}/future_baking_rights Blocks getFutureBakingRights

GetFutureBakingRights get future baking rights API

func NewGetFutureBakingRights

func NewGetFutureBakingRights(ctx *middleware.Context, handler GetFutureBakingRightsHandler) *GetFutureBakingRights

NewGetFutureBakingRights creates a new http.Handler for the get future baking rights operation

func (*GetFutureBakingRights) ServeHTTP

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

type GetFutureBakingRightsBadRequest

type GetFutureBakingRightsBadRequest struct {
}

GetFutureBakingRightsBadRequest Bad request

swagger:response getFutureBakingRightsBadRequest

func NewGetFutureBakingRightsBadRequest

func NewGetFutureBakingRightsBadRequest() *GetFutureBakingRightsBadRequest

NewGetFutureBakingRightsBadRequest creates GetFutureBakingRightsBadRequest with default headers values

func (*GetFutureBakingRightsBadRequest) WriteResponse

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

WriteResponse to the client

type GetFutureBakingRightsHandler

type GetFutureBakingRightsHandler interface {
	Handle(GetFutureBakingRightsParams) middleware.Responder
}

GetFutureBakingRightsHandler interface for that can handle valid get future baking rights params

type GetFutureBakingRightsHandlerFunc

type GetFutureBakingRightsHandlerFunc func(GetFutureBakingRightsParams) middleware.Responder

GetFutureBakingRightsHandlerFunc turns a function with the right signature into a get future baking rights handler

func (GetFutureBakingRightsHandlerFunc) Handle

Handle executing the request and returning a response

type GetFutureBakingRightsNotFound

type GetFutureBakingRightsNotFound struct {
}

GetFutureBakingRightsNotFound Not Found

swagger:response getFutureBakingRightsNotFound

func NewGetFutureBakingRightsNotFound

func NewGetFutureBakingRightsNotFound() *GetFutureBakingRightsNotFound

NewGetFutureBakingRightsNotFound creates GetFutureBakingRightsNotFound with default headers values

func (*GetFutureBakingRightsNotFound) WriteResponse

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

WriteResponse to the client

type GetFutureBakingRightsOK

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

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

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

GetFutureBakingRightsOK Endpoint for future baking rights

swagger:response getFutureBakingRightsOK

func NewGetFutureBakingRightsOK

func NewGetFutureBakingRightsOK() *GetFutureBakingRightsOK

NewGetFutureBakingRightsOK creates GetFutureBakingRightsOK with default headers values

func (*GetFutureBakingRightsOK) SetPayload

func (o *GetFutureBakingRightsOK) SetPayload(payload []*models.FutureBakingRightsPerBlock)

SetPayload sets the payload to the get future baking rights o k response

func (*GetFutureBakingRightsOK) SetXTotalCount

func (o *GetFutureBakingRightsOK) SetXTotalCount(xTotalCount int64)

SetXTotalCount sets the xTotalCount to the get future baking rights o k response

func (*GetFutureBakingRightsOK) WithPayload

WithPayload adds the payload to the get future baking rights o k response

func (*GetFutureBakingRightsOK) WithXTotalCount

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

WithXTotalCount adds the xTotalCount to the get future baking rights o k response

func (*GetFutureBakingRightsOK) WriteResponse

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

WriteResponse to the client

type GetFutureBakingRightsParams

type GetFutureBakingRightsParams struct {

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

	/*
	  Maximum: 50
	  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
	/*
	  Maximum: 64
	  Minimum: 1
	  In: query
	  Default: 10
	*/
	PrioritiesTo *int64
}

GetFutureBakingRightsParams contains all the bound params for the get future baking rights operation typically these are obtained from a http.Request

swagger:parameters getFutureBakingRights

func NewGetFutureBakingRightsParams

func NewGetFutureBakingRightsParams() GetFutureBakingRightsParams

NewGetFutureBakingRightsParams creates a new GetFutureBakingRightsParams object with the default values initialized.

func (*GetFutureBakingRightsParams) 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 NewGetFutureBakingRightsParams() beforehand.

type GetFutureBakingRightsURL

type GetFutureBakingRightsURL struct {
	Network  string
	Platform string

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

GetFutureBakingRightsURL generates an URL for the get future baking rights operation

func (*GetFutureBakingRightsURL) Build

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

Build a url path and query string

func (*GetFutureBakingRightsURL) BuildFull

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

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

func (*GetFutureBakingRightsURL) Must

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

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

func (*GetFutureBakingRightsURL) SetBasePath

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

func (o *GetFutureBakingRightsURL) String() string

String returns the string representation of the path with query string

func (*GetFutureBakingRightsURL) StringFull

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

StringFull returns the string representation of a complete url

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

Jump to

Keyboard shortcuts

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