endorsing_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 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

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

WithBlock adds the block to the get endorsing rights params

func (*GetEndorsingRightsParams) WithContext

WithContext adds the context to the get endorsing rights params

func (*GetEndorsingRightsParams) WithCycle

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

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

WithTimeout adds the timeout to the get endorsing rights params

func (*GetEndorsingRightsParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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