Documentation ¶
Index ¶
- type Client
- type GetBakingRightsInternalServerError
- type GetBakingRightsOK
- type GetBakingRightsParams
- func NewGetBakingRightsParams() *GetBakingRightsParams
- func NewGetBakingRightsParamsWithContext(ctx context.Context) *GetBakingRightsParams
- func NewGetBakingRightsParamsWithHTTPClient(client *http.Client) *GetBakingRightsParams
- func NewGetBakingRightsParamsWithTimeout(timeout time.Duration) *GetBakingRightsParams
- func (o *GetBakingRightsParams) SetAll(all *bool)
- func (o *GetBakingRightsParams) SetBlock(block string)
- func (o *GetBakingRightsParams) SetContext(ctx context.Context)
- func (o *GetBakingRightsParams) SetHTTPClient(client *http.Client)
- func (o *GetBakingRightsParams) SetLevel(level []string)
- func (o *GetBakingRightsParams) SetNetwork(network string)
- func (o *GetBakingRightsParams) SetTimeout(timeout time.Duration)
- func (o *GetBakingRightsParams) WithAll(all *bool) *GetBakingRightsParams
- func (o *GetBakingRightsParams) WithBlock(block string) *GetBakingRightsParams
- func (o *GetBakingRightsParams) WithContext(ctx context.Context) *GetBakingRightsParams
- func (o *GetBakingRightsParams) WithHTTPClient(client *http.Client) *GetBakingRightsParams
- func (o *GetBakingRightsParams) WithLevel(level []string) *GetBakingRightsParams
- func (o *GetBakingRightsParams) WithNetwork(network string) *GetBakingRightsParams
- func (o *GetBakingRightsParams) WithTimeout(timeout time.Duration) *GetBakingRightsParams
- func (o *GetBakingRightsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBakingRightsReader
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 ¶
func (o *GetBakingRightsInternalServerError) Error() string
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 ¶
func (o *GetBakingRightsParams) WithAll(all *bool) *GetBakingRightsParams
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 ¶
func (o *GetBakingRightsParams) WithContext(ctx context.Context) *GetBakingRightsParams
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.