baking_rights

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for baking rights API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new baking rights API client.

func (*Client) GetBakingRights

func (a *Client) GetBakingRights(params *GetBakingRightsParams) (*GetBakingRightsOK, error)

GetBakingRights get baking rights API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type GetBakingRightsInternalServerError

type GetBakingRightsInternalServerError struct {
}

GetBakingRightsInternalServerError handles this case with default header values.

Internal error

func NewGetBakingRightsInternalServerError

func NewGetBakingRightsInternalServerError() *GetBakingRightsInternalServerError

NewGetBakingRightsInternalServerError creates a GetBakingRightsInternalServerError with default headers values

func (*GetBakingRightsInternalServerError) Error

type GetBakingRightsOK

type GetBakingRightsOK struct {
	Payload []*models.BakingRight
}

GetBakingRightsOK handles this case with default header values.

Query compatibility endpoint for account

func NewGetBakingRightsOK

func NewGetBakingRightsOK() *GetBakingRightsOK

NewGetBakingRightsOK creates a GetBakingRightsOK with default headers values

func (*GetBakingRightsOK) Error

func (o *GetBakingRightsOK) Error() string

func (*GetBakingRightsOK) GetPayload

func (o *GetBakingRightsOK) GetPayload() []*models.BakingRight

type GetBakingRightsParams

type GetBakingRightsParams struct {

	/*All*/
	All *bool
	/*Block*/
	Block string
	/*Level*/
	Level []string
	/*Network*/
	Network string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetBakingRightsParams contains all the parameters to send to the API endpoint for the get baking rights operation typically these are written to a http.Request

func NewGetBakingRightsParams

func NewGetBakingRightsParams() *GetBakingRightsParams

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

func NewGetBakingRightsParamsWithContext

func NewGetBakingRightsParamsWithContext(ctx context.Context) *GetBakingRightsParams

NewGetBakingRightsParamsWithContext creates a new GetBakingRightsParams object with the default values initialized, and the ability to set a context for a request

func NewGetBakingRightsParamsWithHTTPClient

func NewGetBakingRightsParamsWithHTTPClient(client *http.Client) *GetBakingRightsParams

NewGetBakingRightsParamsWithHTTPClient creates a new GetBakingRightsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetBakingRightsParamsWithTimeout

func NewGetBakingRightsParamsWithTimeout(timeout time.Duration) *GetBakingRightsParams

NewGetBakingRightsParamsWithTimeout creates a new GetBakingRightsParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetBakingRightsParams) SetAll

func (o *GetBakingRightsParams) SetAll(all *bool)

SetAll adds the all to the get baking rights params

func (*GetBakingRightsParams) SetBlock

func (o *GetBakingRightsParams) SetBlock(block string)

SetBlock adds the block to the get baking rights params

func (*GetBakingRightsParams) SetContext

func (o *GetBakingRightsParams) SetContext(ctx context.Context)

SetContext adds the context to the get baking rights params

func (*GetBakingRightsParams) SetHTTPClient

func (o *GetBakingRightsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get baking rights params

func (*GetBakingRightsParams) SetLevel

func (o *GetBakingRightsParams) SetLevel(level []string)

SetLevel adds the level to the get baking rights params

func (*GetBakingRightsParams) SetNetwork

func (o *GetBakingRightsParams) SetNetwork(network string)

SetNetwork adds the network to the get baking rights params

func (*GetBakingRightsParams) SetTimeout

func (o *GetBakingRightsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get baking rights params

func (*GetBakingRightsParams) WithAll

WithAll adds the all to the get baking rights params

func (*GetBakingRightsParams) WithBlock

func (o *GetBakingRightsParams) WithBlock(block string) *GetBakingRightsParams

WithBlock adds the block to the get baking rights params

func (*GetBakingRightsParams) WithContext

WithContext adds the context to the get baking rights params

func (*GetBakingRightsParams) WithHTTPClient

func (o *GetBakingRightsParams) WithHTTPClient(client *http.Client) *GetBakingRightsParams

WithHTTPClient adds the HTTPClient to the get baking rights params

func (*GetBakingRightsParams) WithLevel

func (o *GetBakingRightsParams) WithLevel(level []string) *GetBakingRightsParams

WithLevel adds the level to the get baking rights params

func (*GetBakingRightsParams) WithNetwork

func (o *GetBakingRightsParams) WithNetwork(network string) *GetBakingRightsParams

WithNetwork adds the network to the get baking rights params

func (*GetBakingRightsParams) WithTimeout

func (o *GetBakingRightsParams) WithTimeout(timeout time.Duration) *GetBakingRightsParams

WithTimeout adds the timeout to the get baking rights params

func (*GetBakingRightsParams) WriteToRequest

func (o *GetBakingRightsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetBakingRightsReader

type GetBakingRightsReader struct {
	// contains filtered or unexported fields
}

GetBakingRightsReader is a Reader for the GetBakingRights structure.

func (*GetBakingRightsReader) ReadResponse

func (o *GetBakingRightsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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