Documentation ¶
Index ¶
- type Client
- type GetEndorsingRightsInternalServerError
- type GetEndorsingRightsOK
- type GetEndorsingRightsParams
- func NewGetEndorsingRightsParams() *GetEndorsingRightsParams
- func NewGetEndorsingRightsParamsWithContext(ctx context.Context) *GetEndorsingRightsParams
- func NewGetEndorsingRightsParamsWithHTTPClient(client *http.Client) *GetEndorsingRightsParams
- func NewGetEndorsingRightsParamsWithTimeout(timeout time.Duration) *GetEndorsingRightsParams
- func (o *GetEndorsingRightsParams) SetBlock(block string)
- func (o *GetEndorsingRightsParams) SetContext(ctx context.Context)
- func (o *GetEndorsingRightsParams) SetCycle(cycle *string)
- func (o *GetEndorsingRightsParams) SetDelegate(delegate *string)
- func (o *GetEndorsingRightsParams) SetHTTPClient(client *http.Client)
- func (o *GetEndorsingRightsParams) SetLevel(level []string)
- func (o *GetEndorsingRightsParams) SetNetwork(network string)
- func (o *GetEndorsingRightsParams) SetTimeout(timeout time.Duration)
- func (o *GetEndorsingRightsParams) WithBlock(block string) *GetEndorsingRightsParams
- func (o *GetEndorsingRightsParams) WithContext(ctx context.Context) *GetEndorsingRightsParams
- func (o *GetEndorsingRightsParams) WithCycle(cycle *string) *GetEndorsingRightsParams
- func (o *GetEndorsingRightsParams) WithDelegate(delegate *string) *GetEndorsingRightsParams
- func (o *GetEndorsingRightsParams) WithHTTPClient(client *http.Client) *GetEndorsingRightsParams
- func (o *GetEndorsingRightsParams) WithLevel(level []string) *GetEndorsingRightsParams
- func (o *GetEndorsingRightsParams) WithNetwork(network string) *GetEndorsingRightsParams
- func (o *GetEndorsingRightsParams) WithTimeout(timeout time.Duration) *GetEndorsingRightsParams
- func (o *GetEndorsingRightsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetEndorsingRightsReader
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 endorsing rights API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new endorsing rights API client.
func (*Client) GetEndorsingRights ¶
func (a *Client) GetEndorsingRights(params *GetEndorsingRightsParams) (*GetEndorsingRightsOK, error)
GetEndorsingRights get endorsing rights API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type GetEndorsingRightsInternalServerError ¶
type GetEndorsingRightsInternalServerError struct { }
GetEndorsingRightsInternalServerError handles this case with default header values.
Internal error
func NewGetEndorsingRightsInternalServerError ¶
func NewGetEndorsingRightsInternalServerError() *GetEndorsingRightsInternalServerError
NewGetEndorsingRightsInternalServerError creates a GetEndorsingRightsInternalServerError with default headers values
func (*GetEndorsingRightsInternalServerError) Error ¶
func (o *GetEndorsingRightsInternalServerError) Error() string
type GetEndorsingRightsOK ¶
type GetEndorsingRightsOK struct {
Payload []*models.EndorsementRight
}
GetEndorsingRightsOK handles this case with default header values.
Query compatibility endpoint for account
func NewGetEndorsingRightsOK ¶
func NewGetEndorsingRightsOK() *GetEndorsingRightsOK
NewGetEndorsingRightsOK creates a GetEndorsingRightsOK with default headers values
func (*GetEndorsingRightsOK) Error ¶
func (o *GetEndorsingRightsOK) Error() string
func (*GetEndorsingRightsOK) GetPayload ¶
func (o *GetEndorsingRightsOK) GetPayload() []*models.EndorsementRight
type GetEndorsingRightsParams ¶
type GetEndorsingRightsParams struct { /*Block*/ Block string /*Cycle*/ Cycle *string /*Delegate*/ Delegate *string /*Level*/ Level []string /*Network*/ Network string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetEndorsingRightsParams contains all the parameters to send to the API endpoint for the get endorsing rights operation typically these are written to a http.Request
func NewGetEndorsingRightsParams ¶
func NewGetEndorsingRightsParams() *GetEndorsingRightsParams
NewGetEndorsingRightsParams creates a new GetEndorsingRightsParams object with the default values initialized.
func NewGetEndorsingRightsParamsWithContext ¶
func NewGetEndorsingRightsParamsWithContext(ctx context.Context) *GetEndorsingRightsParams
NewGetEndorsingRightsParamsWithContext creates a new GetEndorsingRightsParams object with the default values initialized, and the ability to set a context for a request
func NewGetEndorsingRightsParamsWithHTTPClient ¶
func NewGetEndorsingRightsParamsWithHTTPClient(client *http.Client) *GetEndorsingRightsParams
NewGetEndorsingRightsParamsWithHTTPClient creates a new GetEndorsingRightsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetEndorsingRightsParamsWithTimeout ¶
func NewGetEndorsingRightsParamsWithTimeout(timeout time.Duration) *GetEndorsingRightsParams
NewGetEndorsingRightsParamsWithTimeout creates a new GetEndorsingRightsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetEndorsingRightsParams) SetBlock ¶
func (o *GetEndorsingRightsParams) SetBlock(block string)
SetBlock adds the block to the get endorsing rights params
func (*GetEndorsingRightsParams) SetContext ¶
func (o *GetEndorsingRightsParams) SetContext(ctx context.Context)
SetContext adds the context to the get endorsing rights params
func (*GetEndorsingRightsParams) SetCycle ¶
func (o *GetEndorsingRightsParams) SetCycle(cycle *string)
SetCycle adds the cycle to the get endorsing rights params
func (*GetEndorsingRightsParams) SetDelegate ¶
func (o *GetEndorsingRightsParams) SetDelegate(delegate *string)
SetDelegate adds the delegate to the get endorsing rights params
func (*GetEndorsingRightsParams) SetHTTPClient ¶
func (o *GetEndorsingRightsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get endorsing rights params
func (*GetEndorsingRightsParams) SetLevel ¶
func (o *GetEndorsingRightsParams) SetLevel(level []string)
SetLevel adds the level to the get endorsing rights params
func (*GetEndorsingRightsParams) SetNetwork ¶
func (o *GetEndorsingRightsParams) SetNetwork(network string)
SetNetwork adds the network to the get endorsing rights params
func (*GetEndorsingRightsParams) SetTimeout ¶
func (o *GetEndorsingRightsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get endorsing rights params
func (*GetEndorsingRightsParams) WithBlock ¶
func (o *GetEndorsingRightsParams) WithBlock(block string) *GetEndorsingRightsParams
WithBlock adds the block to the get endorsing rights params
func (*GetEndorsingRightsParams) WithContext ¶
func (o *GetEndorsingRightsParams) WithContext(ctx context.Context) *GetEndorsingRightsParams
WithContext adds the context to the get endorsing rights params
func (*GetEndorsingRightsParams) WithCycle ¶
func (o *GetEndorsingRightsParams) WithCycle(cycle *string) *GetEndorsingRightsParams
WithCycle adds the cycle to the get endorsing rights params
func (*GetEndorsingRightsParams) WithDelegate ¶
func (o *GetEndorsingRightsParams) WithDelegate(delegate *string) *GetEndorsingRightsParams
WithDelegate adds the delegate to the get endorsing rights params
func (*GetEndorsingRightsParams) WithHTTPClient ¶
func (o *GetEndorsingRightsParams) WithHTTPClient(client *http.Client) *GetEndorsingRightsParams
WithHTTPClient adds the HTTPClient to the get endorsing rights params
func (*GetEndorsingRightsParams) WithLevel ¶
func (o *GetEndorsingRightsParams) WithLevel(level []string) *GetEndorsingRightsParams
WithLevel adds the level to the get endorsing rights params
func (*GetEndorsingRightsParams) WithNetwork ¶
func (o *GetEndorsingRightsParams) WithNetwork(network string) *GetEndorsingRightsParams
WithNetwork adds the network to the get endorsing rights params
func (*GetEndorsingRightsParams) WithTimeout ¶
func (o *GetEndorsingRightsParams) WithTimeout(timeout time.Duration) *GetEndorsingRightsParams
WithTimeout adds the timeout to the get endorsing rights params
func (*GetEndorsingRightsParams) WriteToRequest ¶
func (o *GetEndorsingRightsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetEndorsingRightsReader ¶
type GetEndorsingRightsReader struct {
// contains filtered or unexported fields
}
GetEndorsingRightsReader is a Reader for the GetEndorsingRights structure.
func (*GetEndorsingRightsReader) ReadResponse ¶
func (o *GetEndorsingRightsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.