Documentation ¶
Index ¶
- type Client
- func (a *Client) GetMiner(params *GetMinerParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerOK, error)
- func (a *Client) GetMinerHeader(params *GetMinerHeaderParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerHeaderOK, error)
- func (a *Client) GetMinerStart(params *GetMinerStartParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerStartOK, error)
- func (a *Client) GetMinerStop(params *GetMinerStopParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerStopOK, error)
- func (a *Client) PostMinerHeader(params *PostMinerHeaderParams, authInfo runtime.ClientAuthInfoWriter) (*PostMinerHeaderOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type GetMinerDefault
- type GetMinerHeaderDefault
- type GetMinerHeaderOK
- type GetMinerHeaderParams
- func NewGetMinerHeaderParams() *GetMinerHeaderParams
- func NewGetMinerHeaderParamsWithContext(ctx context.Context) *GetMinerHeaderParams
- func NewGetMinerHeaderParamsWithHTTPClient(client *http.Client) *GetMinerHeaderParams
- func NewGetMinerHeaderParamsWithTimeout(timeout time.Duration) *GetMinerHeaderParams
- func (o *GetMinerHeaderParams) SetContext(ctx context.Context)
- func (o *GetMinerHeaderParams) SetDefaults()
- func (o *GetMinerHeaderParams) SetHTTPClient(client *http.Client)
- func (o *GetMinerHeaderParams) SetTimeout(timeout time.Duration)
- func (o *GetMinerHeaderParams) WithContext(ctx context.Context) *GetMinerHeaderParams
- func (o *GetMinerHeaderParams) WithDefaults() *GetMinerHeaderParams
- func (o *GetMinerHeaderParams) WithHTTPClient(client *http.Client) *GetMinerHeaderParams
- func (o *GetMinerHeaderParams) WithTimeout(timeout time.Duration) *GetMinerHeaderParams
- func (o *GetMinerHeaderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMinerHeaderReader
- type GetMinerOK
- type GetMinerOKBody
- type GetMinerParams
- func (o *GetMinerParams) SetContext(ctx context.Context)
- func (o *GetMinerParams) SetDefaults()
- func (o *GetMinerParams) SetHTTPClient(client *http.Client)
- func (o *GetMinerParams) SetTimeout(timeout time.Duration)
- func (o *GetMinerParams) WithContext(ctx context.Context) *GetMinerParams
- func (o *GetMinerParams) WithDefaults() *GetMinerParams
- func (o *GetMinerParams) WithHTTPClient(client *http.Client) *GetMinerParams
- func (o *GetMinerParams) WithTimeout(timeout time.Duration) *GetMinerParams
- func (o *GetMinerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMinerReader
- type GetMinerStartDefault
- type GetMinerStartOK
- type GetMinerStartParams
- func (o *GetMinerStartParams) SetContext(ctx context.Context)
- func (o *GetMinerStartParams) SetDefaults()
- func (o *GetMinerStartParams) SetHTTPClient(client *http.Client)
- func (o *GetMinerStartParams) SetTimeout(timeout time.Duration)
- func (o *GetMinerStartParams) WithContext(ctx context.Context) *GetMinerStartParams
- func (o *GetMinerStartParams) WithDefaults() *GetMinerStartParams
- func (o *GetMinerStartParams) WithHTTPClient(client *http.Client) *GetMinerStartParams
- func (o *GetMinerStartParams) WithTimeout(timeout time.Duration) *GetMinerStartParams
- func (o *GetMinerStartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMinerStartReader
- type GetMinerStopDefault
- type GetMinerStopOK
- type GetMinerStopParams
- func (o *GetMinerStopParams) SetContext(ctx context.Context)
- func (o *GetMinerStopParams) SetDefaults()
- func (o *GetMinerStopParams) SetHTTPClient(client *http.Client)
- func (o *GetMinerStopParams) SetTimeout(timeout time.Duration)
- func (o *GetMinerStopParams) WithContext(ctx context.Context) *GetMinerStopParams
- func (o *GetMinerStopParams) WithDefaults() *GetMinerStopParams
- func (o *GetMinerStopParams) WithHTTPClient(client *http.Client) *GetMinerStopParams
- func (o *GetMinerStopParams) WithTimeout(timeout time.Duration) *GetMinerStopParams
- func (o *GetMinerStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetMinerStopReader
- type PostMinerHeaderDefault
- type PostMinerHeaderOK
- type PostMinerHeaderParams
- func NewPostMinerHeaderParams() *PostMinerHeaderParams
- func NewPostMinerHeaderParamsWithContext(ctx context.Context) *PostMinerHeaderParams
- func NewPostMinerHeaderParamsWithHTTPClient(client *http.Client) *PostMinerHeaderParams
- func NewPostMinerHeaderParamsWithTimeout(timeout time.Duration) *PostMinerHeaderParams
- func (o *PostMinerHeaderParams) SetContext(ctx context.Context)
- func (o *PostMinerHeaderParams) SetDefaults()
- func (o *PostMinerHeaderParams) SetHTTPClient(client *http.Client)
- func (o *PostMinerHeaderParams) SetTimeout(timeout time.Duration)
- func (o *PostMinerHeaderParams) WithContext(ctx context.Context) *PostMinerHeaderParams
- func (o *PostMinerHeaderParams) WithDefaults() *PostMinerHeaderParams
- func (o *PostMinerHeaderParams) WithHTTPClient(client *http.Client) *PostMinerHeaderParams
- func (o *PostMinerHeaderParams) WithTimeout(timeout time.Duration) *PostMinerHeaderParams
- func (o *PostMinerHeaderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostMinerHeaderReader
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 miner API
func (*Client) GetMiner ¶
func (a *Client) GetMiner(params *GetMinerParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerOK, error)
GetMiner returns the status of the miner.
func (*Client) GetMinerHeader ¶
func (a *Client) GetMinerHeader(params *GetMinerHeaderParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerHeaderOK, error)
GetMinerHeader provides a block header that is ready to be grinded on for work.
func (*Client) GetMinerStart ¶
func (a *Client) GetMinerStart(params *GetMinerStartParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerStartOK, error)
GetMinerStart starts a single threaded cpu miner. Does nothing if the cpu miner is already running.
func (*Client) GetMinerStop ¶
func (a *Client) GetMinerStop(params *GetMinerStopParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerStopOK, error)
GetMinerStop stops the cpu miner. Does nothing if the cpu miner is not running.
func (*Client) PostMinerHeader ¶
func (a *Client) PostMinerHeader(params *PostMinerHeaderParams, authInfo runtime.ClientAuthInfoWriter) (*PostMinerHeaderOK, error)
PostMinerHeader submits a header that has passed the POW.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶ added in v0.5.9
type ClientService interface { GetMiner(params *GetMinerParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerOK, error) GetMinerHeader(params *GetMinerHeaderParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerHeaderOK, error) GetMinerStart(params *GetMinerStartParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerStartOK, error) GetMinerStop(params *GetMinerStopParams, authInfo runtime.ClientAuthInfoWriter) (*GetMinerStopOK, error) PostMinerHeader(params *PostMinerHeaderParams, authInfo runtime.ClientAuthInfoWriter) (*PostMinerHeaderOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new miner API client.
type GetMinerDefault ¶
type GetMinerDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetMinerDefault describes a response with status code -1, with default header values.
Error Response
func NewGetMinerDefault ¶
func NewGetMinerDefault(code int) *GetMinerDefault
NewGetMinerDefault creates a GetMinerDefault with default headers values
func (*GetMinerDefault) Code ¶
func (o *GetMinerDefault) Code() int
Code gets the status code for the get miner default response
func (*GetMinerDefault) Error ¶
func (o *GetMinerDefault) Error() string
func (*GetMinerDefault) GetPayload ¶ added in v0.5.4
func (o *GetMinerDefault) GetPayload() *models.StandardError
type GetMinerHeaderDefault ¶
type GetMinerHeaderDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetMinerHeaderDefault describes a response with status code -1, with default header values.
Error Response
func NewGetMinerHeaderDefault ¶
func NewGetMinerHeaderDefault(code int) *GetMinerHeaderDefault
NewGetMinerHeaderDefault creates a GetMinerHeaderDefault with default headers values
func (*GetMinerHeaderDefault) Code ¶
func (o *GetMinerHeaderDefault) Code() int
Code gets the status code for the get miner header default response
func (*GetMinerHeaderDefault) Error ¶
func (o *GetMinerHeaderDefault) Error() string
func (*GetMinerHeaderDefault) GetPayload ¶ added in v0.5.4
func (o *GetMinerHeaderDefault) GetPayload() *models.StandardError
type GetMinerHeaderOK ¶
type GetMinerHeaderOK struct { }
GetMinerHeaderOK describes a response with status code 200, with default header values.
Successful Response
func NewGetMinerHeaderOK ¶
func NewGetMinerHeaderOK() *GetMinerHeaderOK
NewGetMinerHeaderOK creates a GetMinerHeaderOK with default headers values
func (*GetMinerHeaderOK) Error ¶
func (o *GetMinerHeaderOK) Error() string
type GetMinerHeaderParams ¶
type GetMinerHeaderParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMinerHeaderParams contains all the parameters to send to the API endpoint
for the get miner header operation. Typically these are written to a http.Request.
func NewGetMinerHeaderParams ¶
func NewGetMinerHeaderParams() *GetMinerHeaderParams
NewGetMinerHeaderParams creates a new GetMinerHeaderParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetMinerHeaderParamsWithContext ¶
func NewGetMinerHeaderParamsWithContext(ctx context.Context) *GetMinerHeaderParams
NewGetMinerHeaderParamsWithContext creates a new GetMinerHeaderParams object with the ability to set a context for a request.
func NewGetMinerHeaderParamsWithHTTPClient ¶
func NewGetMinerHeaderParamsWithHTTPClient(client *http.Client) *GetMinerHeaderParams
NewGetMinerHeaderParamsWithHTTPClient creates a new GetMinerHeaderParams object with the ability to set a custom HTTPClient for a request.
func NewGetMinerHeaderParamsWithTimeout ¶
func NewGetMinerHeaderParamsWithTimeout(timeout time.Duration) *GetMinerHeaderParams
NewGetMinerHeaderParamsWithTimeout creates a new GetMinerHeaderParams object with the ability to set a timeout on a request.
func (*GetMinerHeaderParams) SetContext ¶
func (o *GetMinerHeaderParams) SetContext(ctx context.Context)
SetContext adds the context to the get miner header params
func (*GetMinerHeaderParams) SetDefaults ¶ added in v0.5.9
func (o *GetMinerHeaderParams) SetDefaults()
SetDefaults hydrates default values in the get miner header params (not the query body).
All values with no default are reset to their zero value.
func (*GetMinerHeaderParams) SetHTTPClient ¶
func (o *GetMinerHeaderParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get miner header params
func (*GetMinerHeaderParams) SetTimeout ¶
func (o *GetMinerHeaderParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get miner header params
func (*GetMinerHeaderParams) WithContext ¶
func (o *GetMinerHeaderParams) WithContext(ctx context.Context) *GetMinerHeaderParams
WithContext adds the context to the get miner header params
func (*GetMinerHeaderParams) WithDefaults ¶ added in v0.5.9
func (o *GetMinerHeaderParams) WithDefaults() *GetMinerHeaderParams
WithDefaults hydrates default values in the get miner header params (not the query body).
All values with no default are reset to their zero value.
func (*GetMinerHeaderParams) WithHTTPClient ¶
func (o *GetMinerHeaderParams) WithHTTPClient(client *http.Client) *GetMinerHeaderParams
WithHTTPClient adds the HTTPClient to the get miner header params
func (*GetMinerHeaderParams) WithTimeout ¶
func (o *GetMinerHeaderParams) WithTimeout(timeout time.Duration) *GetMinerHeaderParams
WithTimeout adds the timeout to the get miner header params
func (*GetMinerHeaderParams) WriteToRequest ¶
func (o *GetMinerHeaderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMinerHeaderReader ¶
type GetMinerHeaderReader struct {
// contains filtered or unexported fields
}
GetMinerHeaderReader is a Reader for the GetMinerHeader structure.
func (*GetMinerHeaderReader) ReadResponse ¶
func (o *GetMinerHeaderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMinerOK ¶
type GetMinerOK struct {
Payload *GetMinerOKBody
}
GetMinerOK describes a response with status code 200, with default header values.
Successful Response
func NewGetMinerOK ¶
func NewGetMinerOK() *GetMinerOK
NewGetMinerOK creates a GetMinerOK with default headers values
func (*GetMinerOK) Error ¶
func (o *GetMinerOK) Error() string
func (*GetMinerOK) GetPayload ¶ added in v0.5.4
func (o *GetMinerOK) GetPayload() *GetMinerOKBody
type GetMinerOKBody ¶
type GetMinerOKBody struct { // Number of mined blocks. This value is remembered after restarting. // Example: 9001 Blocksmined int64 `json:"blocksmined,omitempty"` // How fast the cpu is hashing, in hashes per second. // Example: 1337 Cpuhashrate int64 `json:"cpuhashrate,omitempty"` // true if the cpu miner is active. // Example: false Cpumining bool `json:"cpumining,omitempty"` // Number of mined blocks that are stale, indicating that they are not // included in the current longest chain, likely because some other block at // the same height had its chain extended first. // // Example: 0 Staleblocksmined int64 `json:"staleblocksmined,omitempty"` }
GetMinerOKBody get miner o k body swagger:model GetMinerOKBody
func (*GetMinerOKBody) ContextValidate ¶ added in v0.5.9
ContextValidate validates this get miner o k body based on context it is used
func (*GetMinerOKBody) MarshalBinary ¶
func (o *GetMinerOKBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetMinerOKBody) UnmarshalBinary ¶
func (o *GetMinerOKBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetMinerParams ¶
type GetMinerParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMinerParams contains all the parameters to send to the API endpoint
for the get miner operation. Typically these are written to a http.Request.
func NewGetMinerParams ¶
func NewGetMinerParams() *GetMinerParams
NewGetMinerParams creates a new GetMinerParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetMinerParamsWithContext ¶
func NewGetMinerParamsWithContext(ctx context.Context) *GetMinerParams
NewGetMinerParamsWithContext creates a new GetMinerParams object with the ability to set a context for a request.
func NewGetMinerParamsWithHTTPClient ¶
func NewGetMinerParamsWithHTTPClient(client *http.Client) *GetMinerParams
NewGetMinerParamsWithHTTPClient creates a new GetMinerParams object with the ability to set a custom HTTPClient for a request.
func NewGetMinerParamsWithTimeout ¶
func NewGetMinerParamsWithTimeout(timeout time.Duration) *GetMinerParams
NewGetMinerParamsWithTimeout creates a new GetMinerParams object with the ability to set a timeout on a request.
func (*GetMinerParams) SetContext ¶
func (o *GetMinerParams) SetContext(ctx context.Context)
SetContext adds the context to the get miner params
func (*GetMinerParams) SetDefaults ¶ added in v0.5.9
func (o *GetMinerParams) SetDefaults()
SetDefaults hydrates default values in the get miner params (not the query body).
All values with no default are reset to their zero value.
func (*GetMinerParams) SetHTTPClient ¶
func (o *GetMinerParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get miner params
func (*GetMinerParams) SetTimeout ¶
func (o *GetMinerParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get miner params
func (*GetMinerParams) WithContext ¶
func (o *GetMinerParams) WithContext(ctx context.Context) *GetMinerParams
WithContext adds the context to the get miner params
func (*GetMinerParams) WithDefaults ¶ added in v0.5.9
func (o *GetMinerParams) WithDefaults() *GetMinerParams
WithDefaults hydrates default values in the get miner params (not the query body).
All values with no default are reset to their zero value.
func (*GetMinerParams) WithHTTPClient ¶
func (o *GetMinerParams) WithHTTPClient(client *http.Client) *GetMinerParams
WithHTTPClient adds the HTTPClient to the get miner params
func (*GetMinerParams) WithTimeout ¶
func (o *GetMinerParams) WithTimeout(timeout time.Duration) *GetMinerParams
WithTimeout adds the timeout to the get miner params
func (*GetMinerParams) WriteToRequest ¶
func (o *GetMinerParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMinerReader ¶
type GetMinerReader struct {
// contains filtered or unexported fields
}
GetMinerReader is a Reader for the GetMiner structure.
func (*GetMinerReader) ReadResponse ¶
func (o *GetMinerReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMinerStartDefault ¶
type GetMinerStartDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetMinerStartDefault describes a response with status code -1, with default header values.
Error Response
func NewGetMinerStartDefault ¶
func NewGetMinerStartDefault(code int) *GetMinerStartDefault
NewGetMinerStartDefault creates a GetMinerStartDefault with default headers values
func (*GetMinerStartDefault) Code ¶
func (o *GetMinerStartDefault) Code() int
Code gets the status code for the get miner start default response
func (*GetMinerStartDefault) Error ¶
func (o *GetMinerStartDefault) Error() string
func (*GetMinerStartDefault) GetPayload ¶ added in v0.5.4
func (o *GetMinerStartDefault) GetPayload() *models.StandardError
type GetMinerStartOK ¶
type GetMinerStartOK struct { }
GetMinerStartOK describes a response with status code 200, with default header values.
Successful Response
func NewGetMinerStartOK ¶
func NewGetMinerStartOK() *GetMinerStartOK
NewGetMinerStartOK creates a GetMinerStartOK with default headers values
func (*GetMinerStartOK) Error ¶
func (o *GetMinerStartOK) Error() string
type GetMinerStartParams ¶
type GetMinerStartParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMinerStartParams contains all the parameters to send to the API endpoint
for the get miner start operation. Typically these are written to a http.Request.
func NewGetMinerStartParams ¶
func NewGetMinerStartParams() *GetMinerStartParams
NewGetMinerStartParams creates a new GetMinerStartParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetMinerStartParamsWithContext ¶
func NewGetMinerStartParamsWithContext(ctx context.Context) *GetMinerStartParams
NewGetMinerStartParamsWithContext creates a new GetMinerStartParams object with the ability to set a context for a request.
func NewGetMinerStartParamsWithHTTPClient ¶
func NewGetMinerStartParamsWithHTTPClient(client *http.Client) *GetMinerStartParams
NewGetMinerStartParamsWithHTTPClient creates a new GetMinerStartParams object with the ability to set a custom HTTPClient for a request.
func NewGetMinerStartParamsWithTimeout ¶
func NewGetMinerStartParamsWithTimeout(timeout time.Duration) *GetMinerStartParams
NewGetMinerStartParamsWithTimeout creates a new GetMinerStartParams object with the ability to set a timeout on a request.
func (*GetMinerStartParams) SetContext ¶
func (o *GetMinerStartParams) SetContext(ctx context.Context)
SetContext adds the context to the get miner start params
func (*GetMinerStartParams) SetDefaults ¶ added in v0.5.9
func (o *GetMinerStartParams) SetDefaults()
SetDefaults hydrates default values in the get miner start params (not the query body).
All values with no default are reset to their zero value.
func (*GetMinerStartParams) SetHTTPClient ¶
func (o *GetMinerStartParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get miner start params
func (*GetMinerStartParams) SetTimeout ¶
func (o *GetMinerStartParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get miner start params
func (*GetMinerStartParams) WithContext ¶
func (o *GetMinerStartParams) WithContext(ctx context.Context) *GetMinerStartParams
WithContext adds the context to the get miner start params
func (*GetMinerStartParams) WithDefaults ¶ added in v0.5.9
func (o *GetMinerStartParams) WithDefaults() *GetMinerStartParams
WithDefaults hydrates default values in the get miner start params (not the query body).
All values with no default are reset to their zero value.
func (*GetMinerStartParams) WithHTTPClient ¶
func (o *GetMinerStartParams) WithHTTPClient(client *http.Client) *GetMinerStartParams
WithHTTPClient adds the HTTPClient to the get miner start params
func (*GetMinerStartParams) WithTimeout ¶
func (o *GetMinerStartParams) WithTimeout(timeout time.Duration) *GetMinerStartParams
WithTimeout adds the timeout to the get miner start params
func (*GetMinerStartParams) WriteToRequest ¶
func (o *GetMinerStartParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMinerStartReader ¶
type GetMinerStartReader struct {
// contains filtered or unexported fields
}
GetMinerStartReader is a Reader for the GetMinerStart structure.
func (*GetMinerStartReader) ReadResponse ¶
func (o *GetMinerStartReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetMinerStopDefault ¶
type GetMinerStopDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
GetMinerStopDefault describes a response with status code -1, with default header values.
Error Response
func NewGetMinerStopDefault ¶
func NewGetMinerStopDefault(code int) *GetMinerStopDefault
NewGetMinerStopDefault creates a GetMinerStopDefault with default headers values
func (*GetMinerStopDefault) Code ¶
func (o *GetMinerStopDefault) Code() int
Code gets the status code for the get miner stop default response
func (*GetMinerStopDefault) Error ¶
func (o *GetMinerStopDefault) Error() string
func (*GetMinerStopDefault) GetPayload ¶ added in v0.5.4
func (o *GetMinerStopDefault) GetPayload() *models.StandardError
type GetMinerStopOK ¶
type GetMinerStopOK struct { }
GetMinerStopOK describes a response with status code 200, with default header values.
Successful Response
func NewGetMinerStopOK ¶
func NewGetMinerStopOK() *GetMinerStopOK
NewGetMinerStopOK creates a GetMinerStopOK with default headers values
func (*GetMinerStopOK) Error ¶
func (o *GetMinerStopOK) Error() string
type GetMinerStopParams ¶
type GetMinerStopParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetMinerStopParams contains all the parameters to send to the API endpoint
for the get miner stop operation. Typically these are written to a http.Request.
func NewGetMinerStopParams ¶
func NewGetMinerStopParams() *GetMinerStopParams
NewGetMinerStopParams creates a new GetMinerStopParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewGetMinerStopParamsWithContext ¶
func NewGetMinerStopParamsWithContext(ctx context.Context) *GetMinerStopParams
NewGetMinerStopParamsWithContext creates a new GetMinerStopParams object with the ability to set a context for a request.
func NewGetMinerStopParamsWithHTTPClient ¶
func NewGetMinerStopParamsWithHTTPClient(client *http.Client) *GetMinerStopParams
NewGetMinerStopParamsWithHTTPClient creates a new GetMinerStopParams object with the ability to set a custom HTTPClient for a request.
func NewGetMinerStopParamsWithTimeout ¶
func NewGetMinerStopParamsWithTimeout(timeout time.Duration) *GetMinerStopParams
NewGetMinerStopParamsWithTimeout creates a new GetMinerStopParams object with the ability to set a timeout on a request.
func (*GetMinerStopParams) SetContext ¶
func (o *GetMinerStopParams) SetContext(ctx context.Context)
SetContext adds the context to the get miner stop params
func (*GetMinerStopParams) SetDefaults ¶ added in v0.5.9
func (o *GetMinerStopParams) SetDefaults()
SetDefaults hydrates default values in the get miner stop params (not the query body).
All values with no default are reset to their zero value.
func (*GetMinerStopParams) SetHTTPClient ¶
func (o *GetMinerStopParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get miner stop params
func (*GetMinerStopParams) SetTimeout ¶
func (o *GetMinerStopParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get miner stop params
func (*GetMinerStopParams) WithContext ¶
func (o *GetMinerStopParams) WithContext(ctx context.Context) *GetMinerStopParams
WithContext adds the context to the get miner stop params
func (*GetMinerStopParams) WithDefaults ¶ added in v0.5.9
func (o *GetMinerStopParams) WithDefaults() *GetMinerStopParams
WithDefaults hydrates default values in the get miner stop params (not the query body).
All values with no default are reset to their zero value.
func (*GetMinerStopParams) WithHTTPClient ¶
func (o *GetMinerStopParams) WithHTTPClient(client *http.Client) *GetMinerStopParams
WithHTTPClient adds the HTTPClient to the get miner stop params
func (*GetMinerStopParams) WithTimeout ¶
func (o *GetMinerStopParams) WithTimeout(timeout time.Duration) *GetMinerStopParams
WithTimeout adds the timeout to the get miner stop params
func (*GetMinerStopParams) WriteToRequest ¶
func (o *GetMinerStopParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetMinerStopReader ¶
type GetMinerStopReader struct {
// contains filtered or unexported fields
}
GetMinerStopReader is a Reader for the GetMinerStop structure.
func (*GetMinerStopReader) ReadResponse ¶
func (o *GetMinerStopReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostMinerHeaderDefault ¶
type PostMinerHeaderDefault struct { Payload *models.StandardError // contains filtered or unexported fields }
PostMinerHeaderDefault describes a response with status code -1, with default header values.
Error Response
func NewPostMinerHeaderDefault ¶
func NewPostMinerHeaderDefault(code int) *PostMinerHeaderDefault
NewPostMinerHeaderDefault creates a PostMinerHeaderDefault with default headers values
func (*PostMinerHeaderDefault) Code ¶
func (o *PostMinerHeaderDefault) Code() int
Code gets the status code for the post miner header default response
func (*PostMinerHeaderDefault) Error ¶
func (o *PostMinerHeaderDefault) Error() string
func (*PostMinerHeaderDefault) GetPayload ¶ added in v0.5.4
func (o *PostMinerHeaderDefault) GetPayload() *models.StandardError
type PostMinerHeaderOK ¶
type PostMinerHeaderOK struct { }
PostMinerHeaderOK describes a response with status code 200, with default header values.
Successful Response
func NewPostMinerHeaderOK ¶
func NewPostMinerHeaderOK() *PostMinerHeaderOK
NewPostMinerHeaderOK creates a PostMinerHeaderOK with default headers values
func (*PostMinerHeaderOK) Error ¶
func (o *PostMinerHeaderOK) Error() string
type PostMinerHeaderParams ¶
type PostMinerHeaderParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostMinerHeaderParams contains all the parameters to send to the API endpoint
for the post miner header operation. Typically these are written to a http.Request.
func NewPostMinerHeaderParams ¶
func NewPostMinerHeaderParams() *PostMinerHeaderParams
NewPostMinerHeaderParams creates a new PostMinerHeaderParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPostMinerHeaderParamsWithContext ¶
func NewPostMinerHeaderParamsWithContext(ctx context.Context) *PostMinerHeaderParams
NewPostMinerHeaderParamsWithContext creates a new PostMinerHeaderParams object with the ability to set a context for a request.
func NewPostMinerHeaderParamsWithHTTPClient ¶
func NewPostMinerHeaderParamsWithHTTPClient(client *http.Client) *PostMinerHeaderParams
NewPostMinerHeaderParamsWithHTTPClient creates a new PostMinerHeaderParams object with the ability to set a custom HTTPClient for a request.
func NewPostMinerHeaderParamsWithTimeout ¶
func NewPostMinerHeaderParamsWithTimeout(timeout time.Duration) *PostMinerHeaderParams
NewPostMinerHeaderParamsWithTimeout creates a new PostMinerHeaderParams object with the ability to set a timeout on a request.
func (*PostMinerHeaderParams) SetContext ¶
func (o *PostMinerHeaderParams) SetContext(ctx context.Context)
SetContext adds the context to the post miner header params
func (*PostMinerHeaderParams) SetDefaults ¶ added in v0.5.9
func (o *PostMinerHeaderParams) SetDefaults()
SetDefaults hydrates default values in the post miner header params (not the query body).
All values with no default are reset to their zero value.
func (*PostMinerHeaderParams) SetHTTPClient ¶
func (o *PostMinerHeaderParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post miner header params
func (*PostMinerHeaderParams) SetTimeout ¶
func (o *PostMinerHeaderParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post miner header params
func (*PostMinerHeaderParams) WithContext ¶
func (o *PostMinerHeaderParams) WithContext(ctx context.Context) *PostMinerHeaderParams
WithContext adds the context to the post miner header params
func (*PostMinerHeaderParams) WithDefaults ¶ added in v0.5.9
func (o *PostMinerHeaderParams) WithDefaults() *PostMinerHeaderParams
WithDefaults hydrates default values in the post miner header params (not the query body).
All values with no default are reset to their zero value.
func (*PostMinerHeaderParams) WithHTTPClient ¶
func (o *PostMinerHeaderParams) WithHTTPClient(client *http.Client) *PostMinerHeaderParams
WithHTTPClient adds the HTTPClient to the post miner header params
func (*PostMinerHeaderParams) WithTimeout ¶
func (o *PostMinerHeaderParams) WithTimeout(timeout time.Duration) *PostMinerHeaderParams
WithTimeout adds the timeout to the post miner header params
func (*PostMinerHeaderParams) WriteToRequest ¶
func (o *PostMinerHeaderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostMinerHeaderReader ¶
type PostMinerHeaderReader struct {
// contains filtered or unexported fields
}
PostMinerHeaderReader is a Reader for the PostMinerHeader structure.
func (*PostMinerHeaderReader) ReadResponse ¶
func (o *PostMinerHeaderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- get_miner_header_parameters.go
- get_miner_header_responses.go
- get_miner_parameters.go
- get_miner_responses.go
- get_miner_start_parameters.go
- get_miner_start_responses.go
- get_miner_stop_parameters.go
- get_miner_stop_responses.go
- miner_client.go
- post_miner_header_parameters.go
- post_miner_header_responses.go