Documentation
¶
Index ¶
- type CashDefault
- type CashOK
- type CashParams
- func (o *CashParams) SetArgs(args model.Treasure)
- func (o *CashParams) SetContext(ctx context.Context)
- func (o *CashParams) SetHTTPClient(client *http.Client)
- func (o *CashParams) SetTimeout(timeout time.Duration)
- func (o *CashParams) WithArgs(args model.Treasure) *CashParams
- func (o *CashParams) WithContext(ctx context.Context) *CashParams
- func (o *CashParams) WithHTTPClient(client *http.Client) *CashParams
- func (o *CashParams) WithTimeout(timeout time.Duration) *CashParams
- func (o *CashParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CashReader
- type Client
- func (a *Client) Cash(params *CashParams) (*CashOK, error)
- func (a *Client) Dig(params *DigParams) (*DigOK, error)
- func (a *Client) ExploreArea(params *ExploreAreaParams) (*ExploreAreaOK, error)
- func (a *Client) GetBalance(params *GetBalanceParams) (*GetBalanceOK, error)
- func (a *Client) HealthCheck(params *HealthCheckParams) (*HealthCheckOK, error)
- func (a *Client) IssueLicense(params *IssueLicenseParams) (*IssueLicenseOK, error)
- func (a *Client) ListLicenses(params *ListLicensesParams) (*ListLicensesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type DigDefault
- type DigOK
- type DigParams
- func (o *DigParams) SetArgs(args *model.Dig)
- func (o *DigParams) SetContext(ctx context.Context)
- func (o *DigParams) SetHTTPClient(client *http.Client)
- func (o *DigParams) SetTimeout(timeout time.Duration)
- func (o *DigParams) WithArgs(args *model.Dig) *DigParams
- func (o *DigParams) WithContext(ctx context.Context) *DigParams
- func (o *DigParams) WithHTTPClient(client *http.Client) *DigParams
- func (o *DigParams) WithTimeout(timeout time.Duration) *DigParams
- func (o *DigParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DigReader
- type ExploreAreaDefault
- type ExploreAreaOK
- type ExploreAreaParams
- func (o *ExploreAreaParams) SetArgs(args *model.Area)
- func (o *ExploreAreaParams) SetContext(ctx context.Context)
- func (o *ExploreAreaParams) SetHTTPClient(client *http.Client)
- func (o *ExploreAreaParams) SetTimeout(timeout time.Duration)
- func (o *ExploreAreaParams) WithArgs(args *model.Area) *ExploreAreaParams
- func (o *ExploreAreaParams) WithContext(ctx context.Context) *ExploreAreaParams
- func (o *ExploreAreaParams) WithHTTPClient(client *http.Client) *ExploreAreaParams
- func (o *ExploreAreaParams) WithTimeout(timeout time.Duration) *ExploreAreaParams
- func (o *ExploreAreaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ExploreAreaReader
- type GetBalanceDefault
- type GetBalanceOK
- type GetBalanceParams
- func (o *GetBalanceParams) SetContext(ctx context.Context)
- func (o *GetBalanceParams) SetHTTPClient(client *http.Client)
- func (o *GetBalanceParams) SetTimeout(timeout time.Duration)
- func (o *GetBalanceParams) WithContext(ctx context.Context) *GetBalanceParams
- func (o *GetBalanceParams) WithHTTPClient(client *http.Client) *GetBalanceParams
- func (o *GetBalanceParams) WithTimeout(timeout time.Duration) *GetBalanceParams
- func (o *GetBalanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetBalanceReader
- type HealthCheckDefault
- type HealthCheckOK
- type HealthCheckParams
- func (o *HealthCheckParams) SetContext(ctx context.Context)
- func (o *HealthCheckParams) SetHTTPClient(client *http.Client)
- func (o *HealthCheckParams) SetTimeout(timeout time.Duration)
- func (o *HealthCheckParams) WithContext(ctx context.Context) *HealthCheckParams
- func (o *HealthCheckParams) WithHTTPClient(client *http.Client) *HealthCheckParams
- func (o *HealthCheckParams) WithTimeout(timeout time.Duration) *HealthCheckParams
- func (o *HealthCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type HealthCheckReader
- type IssueLicenseDefault
- type IssueLicenseOK
- type IssueLicenseParams
- func (o *IssueLicenseParams) SetArgs(args model.Wallet)
- func (o *IssueLicenseParams) SetContext(ctx context.Context)
- func (o *IssueLicenseParams) SetHTTPClient(client *http.Client)
- func (o *IssueLicenseParams) SetTimeout(timeout time.Duration)
- func (o *IssueLicenseParams) WithArgs(args model.Wallet) *IssueLicenseParams
- func (o *IssueLicenseParams) WithContext(ctx context.Context) *IssueLicenseParams
- func (o *IssueLicenseParams) WithHTTPClient(client *http.Client) *IssueLicenseParams
- func (o *IssueLicenseParams) WithTimeout(timeout time.Duration) *IssueLicenseParams
- func (o *IssueLicenseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type IssueLicenseReader
- type ListLicensesDefault
- type ListLicensesOK
- type ListLicensesParams
- func (o *ListLicensesParams) SetContext(ctx context.Context)
- func (o *ListLicensesParams) SetHTTPClient(client *http.Client)
- func (o *ListLicensesParams) SetTimeout(timeout time.Duration)
- func (o *ListLicensesParams) WithContext(ctx context.Context) *ListLicensesParams
- func (o *ListLicensesParams) WithHTTPClient(client *http.Client) *ListLicensesParams
- func (o *ListLicensesParams) WithTimeout(timeout time.Duration) *ListLicensesParams
- func (o *ListLicensesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListLicensesReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CashDefault ¶
CashDefault handles this case with default header values.
- 409.1003: treasure is not digged
func NewCashDefault ¶
func NewCashDefault(code int) *CashDefault
NewCashDefault creates a CashDefault with default headers values
func (*CashDefault) Code ¶
func (o *CashDefault) Code() int
Code gets the status code for the cash default response
func (*CashDefault) Error ¶
func (o *CashDefault) Error() string
func (*CashDefault) GetPayload ¶
func (o *CashDefault) GetPayload() *model.Error
type CashOK ¶
CashOK handles this case with default header values.
Payment for treasure.
func (*CashOK) GetPayload ¶
type CashParams ¶
type CashParams struct {
/*Args
Treasure for exchange.
*/
Args model.Treasure
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
CashParams contains all the parameters to send to the API endpoint for the cash operation typically these are written to a http.Request
func NewCashParams ¶
func NewCashParams() *CashParams
NewCashParams creates a new CashParams object with the default values initialized.
func NewCashParamsWithContext ¶
func NewCashParamsWithContext(ctx context.Context) *CashParams
NewCashParamsWithContext creates a new CashParams object with the default values initialized, and the ability to set a context for a request
func NewCashParamsWithHTTPClient ¶
func NewCashParamsWithHTTPClient(client *http.Client) *CashParams
NewCashParamsWithHTTPClient creates a new CashParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCashParamsWithTimeout ¶
func NewCashParamsWithTimeout(timeout time.Duration) *CashParams
NewCashParamsWithTimeout creates a new CashParams object with the default values initialized, and the ability to set a timeout on a request
func (*CashParams) SetArgs ¶
func (o *CashParams) SetArgs(args model.Treasure)
SetArgs adds the args to the cash params
func (*CashParams) SetContext ¶
func (o *CashParams) SetContext(ctx context.Context)
SetContext adds the context to the cash params
func (*CashParams) SetHTTPClient ¶
func (o *CashParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the cash params
func (*CashParams) SetTimeout ¶
func (o *CashParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the cash params
func (*CashParams) WithArgs ¶
func (o *CashParams) WithArgs(args model.Treasure) *CashParams
WithArgs adds the args to the cash params
func (*CashParams) WithContext ¶
func (o *CashParams) WithContext(ctx context.Context) *CashParams
WithContext adds the context to the cash params
func (*CashParams) WithHTTPClient ¶
func (o *CashParams) WithHTTPClient(client *http.Client) *CashParams
WithHTTPClient adds the HTTPClient to the cash params
func (*CashParams) WithTimeout ¶
func (o *CashParams) WithTimeout(timeout time.Duration) *CashParams
WithTimeout adds the timeout to the cash params
func (*CashParams) WriteToRequest ¶
func (o *CashParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CashReader ¶
type CashReader struct {
// contains filtered or unexported fields
}
CashReader is a Reader for the Cash structure.
func (*CashReader) ReadResponse ¶
func (o *CashReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for op API
func (*Client) Cash ¶
func (a *Client) Cash(params *CashParams) (*CashOK, error)
Cash Exchange provided treasure for money.
func (*Client) ExploreArea ¶
func (a *Client) ExploreArea(params *ExploreAreaParams) (*ExploreAreaOK, error)
ExploreArea Returns amount of treasures in the provided area at full depth.
func (*Client) GetBalance ¶
func (a *Client) GetBalance(params *GetBalanceParams) (*GetBalanceOK, error)
GetBalance Returns a current balance.
func (*Client) HealthCheck ¶ added in v0.2.4
func (a *Client) HealthCheck(params *HealthCheckParams) (*HealthCheckOK, error)
HealthCheck Returns 200 if service works okay.
func (*Client) IssueLicense ¶
func (a *Client) IssueLicense(params *IssueLicenseParams) (*IssueLicenseOK, error)
IssueLicense Issue a new license.
func (*Client) ListLicenses ¶
func (a *Client) ListLicenses(params *ListLicensesParams) (*ListLicensesOK, error)
ListLicenses Returns a list of issued licenses.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface {
Cash(params *CashParams) (*CashOK, error)
Dig(params *DigParams) (*DigOK, error)
ExploreArea(params *ExploreAreaParams) (*ExploreAreaOK, error)
GetBalance(params *GetBalanceParams) (*GetBalanceOK, error)
HealthCheck(params *HealthCheckParams) (*HealthCheckOK, error)
IssueLicense(params *IssueLicenseParams) (*IssueLicenseOK, error)
ListLicenses(params *ListLicensesParams) (*ListLicensesOK, 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 op API client.
type DigDefault ¶
DigDefault handles this case with default header values.
- 422.1000: wrong coordinates - 422.1001: wrong depth
func NewDigDefault ¶
func NewDigDefault(code int) *DigDefault
NewDigDefault creates a DigDefault with default headers values
func (*DigDefault) Code ¶
func (o *DigDefault) Code() int
Code gets the status code for the dig default response
func (*DigDefault) Error ¶
func (o *DigDefault) Error() string
func (*DigDefault) GetPayload ¶
func (o *DigDefault) GetPayload() *model.Error
type DigOK ¶
type DigOK struct {
Payload model.TreasureList
}
DigOK handles this case with default header values.
List of treasures found.
func (*DigOK) GetPayload ¶
func (o *DigOK) GetPayload() model.TreasureList
type DigParams ¶
type DigParams struct {
/*Args
License, place and depth to dig.
*/
Args *model.Dig
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
DigParams contains all the parameters to send to the API endpoint for the dig operation typically these are written to a http.Request
func NewDigParams ¶
func NewDigParams() *DigParams
NewDigParams creates a new DigParams object with the default values initialized.
func NewDigParamsWithContext ¶
NewDigParamsWithContext creates a new DigParams object with the default values initialized, and the ability to set a context for a request
func NewDigParamsWithHTTPClient ¶
NewDigParamsWithHTTPClient creates a new DigParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDigParamsWithTimeout ¶
NewDigParamsWithTimeout creates a new DigParams object with the default values initialized, and the ability to set a timeout on a request
func (*DigParams) SetContext ¶
SetContext adds the context to the dig params
func (*DigParams) SetHTTPClient ¶
SetHTTPClient adds the HTTPClient to the dig params
func (*DigParams) SetTimeout ¶
SetTimeout adds the timeout to the dig params
func (*DigParams) WithContext ¶
WithContext adds the context to the dig params
func (*DigParams) WithHTTPClient ¶
WithHTTPClient adds the HTTPClient to the dig params
func (*DigParams) WithTimeout ¶
WithTimeout adds the timeout to the dig params
func (*DigParams) WriteToRequest ¶
WriteToRequest writes these params to a swagger request
type DigReader ¶
type DigReader struct {
// contains filtered or unexported fields
}
DigReader is a Reader for the Dig structure.
func (*DigReader) ReadResponse ¶
func (o *DigReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ExploreAreaDefault ¶
ExploreAreaDefault handles this case with default header values.
- 422.1000: wrong coordinates
func NewExploreAreaDefault ¶
func NewExploreAreaDefault(code int) *ExploreAreaDefault
NewExploreAreaDefault creates a ExploreAreaDefault with default headers values
func (*ExploreAreaDefault) Code ¶
func (o *ExploreAreaDefault) Code() int
Code gets the status code for the explore area default response
func (*ExploreAreaDefault) Error ¶
func (o *ExploreAreaDefault) Error() string
func (*ExploreAreaDefault) GetPayload ¶
func (o *ExploreAreaDefault) GetPayload() *model.Error
type ExploreAreaOK ¶
ExploreAreaOK handles this case with default header values.
Report about found treasures.
func NewExploreAreaOK ¶
func NewExploreAreaOK() *ExploreAreaOK
NewExploreAreaOK creates a ExploreAreaOK with default headers values
func (*ExploreAreaOK) Error ¶
func (o *ExploreAreaOK) Error() string
func (*ExploreAreaOK) GetPayload ¶
func (o *ExploreAreaOK) GetPayload() *model.Report
type ExploreAreaParams ¶
type ExploreAreaParams struct {
/*Args
Area to be explored.
*/
Args *model.Area
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ExploreAreaParams contains all the parameters to send to the API endpoint for the explore area operation typically these are written to a http.Request
func NewExploreAreaParams ¶
func NewExploreAreaParams() *ExploreAreaParams
NewExploreAreaParams creates a new ExploreAreaParams object with the default values initialized.
func NewExploreAreaParamsWithContext ¶
func NewExploreAreaParamsWithContext(ctx context.Context) *ExploreAreaParams
NewExploreAreaParamsWithContext creates a new ExploreAreaParams object with the default values initialized, and the ability to set a context for a request
func NewExploreAreaParamsWithHTTPClient ¶
func NewExploreAreaParamsWithHTTPClient(client *http.Client) *ExploreAreaParams
NewExploreAreaParamsWithHTTPClient creates a new ExploreAreaParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewExploreAreaParamsWithTimeout ¶
func NewExploreAreaParamsWithTimeout(timeout time.Duration) *ExploreAreaParams
NewExploreAreaParamsWithTimeout creates a new ExploreAreaParams object with the default values initialized, and the ability to set a timeout on a request
func (*ExploreAreaParams) SetArgs ¶
func (o *ExploreAreaParams) SetArgs(args *model.Area)
SetArgs adds the args to the explore area params
func (*ExploreAreaParams) SetContext ¶
func (o *ExploreAreaParams) SetContext(ctx context.Context)
SetContext adds the context to the explore area params
func (*ExploreAreaParams) SetHTTPClient ¶
func (o *ExploreAreaParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the explore area params
func (*ExploreAreaParams) SetTimeout ¶
func (o *ExploreAreaParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the explore area params
func (*ExploreAreaParams) WithArgs ¶
func (o *ExploreAreaParams) WithArgs(args *model.Area) *ExploreAreaParams
WithArgs adds the args to the explore area params
func (*ExploreAreaParams) WithContext ¶
func (o *ExploreAreaParams) WithContext(ctx context.Context) *ExploreAreaParams
WithContext adds the context to the explore area params
func (*ExploreAreaParams) WithHTTPClient ¶
func (o *ExploreAreaParams) WithHTTPClient(client *http.Client) *ExploreAreaParams
WithHTTPClient adds the HTTPClient to the explore area params
func (*ExploreAreaParams) WithTimeout ¶
func (o *ExploreAreaParams) WithTimeout(timeout time.Duration) *ExploreAreaParams
WithTimeout adds the timeout to the explore area params
func (*ExploreAreaParams) WriteToRequest ¶
func (o *ExploreAreaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ExploreAreaReader ¶
type ExploreAreaReader struct {
// contains filtered or unexported fields
}
ExploreAreaReader is a Reader for the ExploreArea structure.
func (*ExploreAreaReader) ReadResponse ¶
func (o *ExploreAreaReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetBalanceDefault ¶
GetBalanceDefault handles this case with default header values.
General errors using same model as used by go-swagger for validation errors.
func NewGetBalanceDefault ¶
func NewGetBalanceDefault(code int) *GetBalanceDefault
NewGetBalanceDefault creates a GetBalanceDefault with default headers values
func (*GetBalanceDefault) Code ¶
func (o *GetBalanceDefault) Code() int
Code gets the status code for the get balance default response
func (*GetBalanceDefault) Error ¶
func (o *GetBalanceDefault) Error() string
func (*GetBalanceDefault) GetPayload ¶
func (o *GetBalanceDefault) GetPayload() *model.Error
type GetBalanceOK ¶
GetBalanceOK handles this case with default header values.
Current balance.
func NewGetBalanceOK ¶
func NewGetBalanceOK() *GetBalanceOK
NewGetBalanceOK creates a GetBalanceOK with default headers values
func (*GetBalanceOK) Error ¶
func (o *GetBalanceOK) Error() string
func (*GetBalanceOK) GetPayload ¶
func (o *GetBalanceOK) GetPayload() *model.Balance
type GetBalanceParams ¶
type GetBalanceParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
GetBalanceParams contains all the parameters to send to the API endpoint for the get balance operation typically these are written to a http.Request
func NewGetBalanceParams ¶
func NewGetBalanceParams() *GetBalanceParams
NewGetBalanceParams creates a new GetBalanceParams object with the default values initialized.
func NewGetBalanceParamsWithContext ¶
func NewGetBalanceParamsWithContext(ctx context.Context) *GetBalanceParams
NewGetBalanceParamsWithContext creates a new GetBalanceParams object with the default values initialized, and the ability to set a context for a request
func NewGetBalanceParamsWithHTTPClient ¶
func NewGetBalanceParamsWithHTTPClient(client *http.Client) *GetBalanceParams
NewGetBalanceParamsWithHTTPClient creates a new GetBalanceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetBalanceParamsWithTimeout ¶
func NewGetBalanceParamsWithTimeout(timeout time.Duration) *GetBalanceParams
NewGetBalanceParamsWithTimeout creates a new GetBalanceParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetBalanceParams) SetContext ¶
func (o *GetBalanceParams) SetContext(ctx context.Context)
SetContext adds the context to the get balance params
func (*GetBalanceParams) SetHTTPClient ¶
func (o *GetBalanceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get balance params
func (*GetBalanceParams) SetTimeout ¶
func (o *GetBalanceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get balance params
func (*GetBalanceParams) WithContext ¶
func (o *GetBalanceParams) WithContext(ctx context.Context) *GetBalanceParams
WithContext adds the context to the get balance params
func (*GetBalanceParams) WithHTTPClient ¶
func (o *GetBalanceParams) WithHTTPClient(client *http.Client) *GetBalanceParams
WithHTTPClient adds the HTTPClient to the get balance params
func (*GetBalanceParams) WithTimeout ¶
func (o *GetBalanceParams) WithTimeout(timeout time.Duration) *GetBalanceParams
WithTimeout adds the timeout to the get balance params
func (*GetBalanceParams) WriteToRequest ¶
func (o *GetBalanceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetBalanceReader ¶
type GetBalanceReader struct {
// contains filtered or unexported fields
}
GetBalanceReader is a Reader for the GetBalance structure.
func (*GetBalanceReader) ReadResponse ¶
func (o *GetBalanceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type HealthCheckDefault ¶ added in v0.2.4
HealthCheckDefault handles this case with default header values.
General errors using same model as used by go-swagger for validation errors.
func NewHealthCheckDefault ¶ added in v0.2.4
func NewHealthCheckDefault(code int) *HealthCheckDefault
NewHealthCheckDefault creates a HealthCheckDefault with default headers values
func (*HealthCheckDefault) Code ¶ added in v0.2.4
func (o *HealthCheckDefault) Code() int
Code gets the status code for the health check default response
func (*HealthCheckDefault) Error ¶ added in v0.2.4
func (o *HealthCheckDefault) Error() string
func (*HealthCheckDefault) GetPayload ¶ added in v0.2.4
func (o *HealthCheckDefault) GetPayload() *model.Error
type HealthCheckOK ¶ added in v0.2.4
type HealthCheckOK struct {
Payload interface{}
}
HealthCheckOK handles this case with default header values.
Extra details about service status, if any.
func NewHealthCheckOK ¶ added in v0.2.4
func NewHealthCheckOK() *HealthCheckOK
NewHealthCheckOK creates a HealthCheckOK with default headers values
func (*HealthCheckOK) Error ¶ added in v0.2.4
func (o *HealthCheckOK) Error() string
func (*HealthCheckOK) GetPayload ¶ added in v0.2.4
func (o *HealthCheckOK) GetPayload() interface{}
type HealthCheckParams ¶ added in v0.2.4
type HealthCheckParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
HealthCheckParams contains all the parameters to send to the API endpoint for the health check operation typically these are written to a http.Request
func NewHealthCheckParams ¶ added in v0.2.4
func NewHealthCheckParams() *HealthCheckParams
NewHealthCheckParams creates a new HealthCheckParams object with the default values initialized.
func NewHealthCheckParamsWithContext ¶ added in v0.2.4
func NewHealthCheckParamsWithContext(ctx context.Context) *HealthCheckParams
NewHealthCheckParamsWithContext creates a new HealthCheckParams object with the default values initialized, and the ability to set a context for a request
func NewHealthCheckParamsWithHTTPClient ¶ added in v0.2.4
func NewHealthCheckParamsWithHTTPClient(client *http.Client) *HealthCheckParams
NewHealthCheckParamsWithHTTPClient creates a new HealthCheckParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewHealthCheckParamsWithTimeout ¶ added in v0.2.4
func NewHealthCheckParamsWithTimeout(timeout time.Duration) *HealthCheckParams
NewHealthCheckParamsWithTimeout creates a new HealthCheckParams object with the default values initialized, and the ability to set a timeout on a request
func (*HealthCheckParams) SetContext ¶ added in v0.2.4
func (o *HealthCheckParams) SetContext(ctx context.Context)
SetContext adds the context to the health check params
func (*HealthCheckParams) SetHTTPClient ¶ added in v0.2.4
func (o *HealthCheckParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the health check params
func (*HealthCheckParams) SetTimeout ¶ added in v0.2.4
func (o *HealthCheckParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the health check params
func (*HealthCheckParams) WithContext ¶ added in v0.2.4
func (o *HealthCheckParams) WithContext(ctx context.Context) *HealthCheckParams
WithContext adds the context to the health check params
func (*HealthCheckParams) WithHTTPClient ¶ added in v0.2.4
func (o *HealthCheckParams) WithHTTPClient(client *http.Client) *HealthCheckParams
WithHTTPClient adds the HTTPClient to the health check params
func (*HealthCheckParams) WithTimeout ¶ added in v0.2.4
func (o *HealthCheckParams) WithTimeout(timeout time.Duration) *HealthCheckParams
WithTimeout adds the timeout to the health check params
func (*HealthCheckParams) WriteToRequest ¶ added in v0.2.4
func (o *HealthCheckParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type HealthCheckReader ¶ added in v0.2.4
type HealthCheckReader struct {
// contains filtered or unexported fields
}
HealthCheckReader is a Reader for the HealthCheck structure.
func (*HealthCheckReader) ReadResponse ¶ added in v0.2.4
func (o *HealthCheckReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type IssueLicenseDefault ¶
IssueLicenseDefault handles this case with default header values.
- 409.1002: no more active licenses allowed
func NewIssueLicenseDefault ¶
func NewIssueLicenseDefault(code int) *IssueLicenseDefault
NewIssueLicenseDefault creates a IssueLicenseDefault with default headers values
func (*IssueLicenseDefault) Code ¶
func (o *IssueLicenseDefault) Code() int
Code gets the status code for the issue license default response
func (*IssueLicenseDefault) Error ¶
func (o *IssueLicenseDefault) Error() string
func (*IssueLicenseDefault) GetPayload ¶
func (o *IssueLicenseDefault) GetPayload() *model.Error
type IssueLicenseOK ¶
IssueLicenseOK handles this case with default header values.
Issued license.
func NewIssueLicenseOK ¶
func NewIssueLicenseOK() *IssueLicenseOK
NewIssueLicenseOK creates a IssueLicenseOK with default headers values
func (*IssueLicenseOK) Error ¶
func (o *IssueLicenseOK) Error() string
func (*IssueLicenseOK) GetPayload ¶
func (o *IssueLicenseOK) GetPayload() *model.License
type IssueLicenseParams ¶
type IssueLicenseParams struct {
/*Args
Amount of money to spend for a license.
*/
Args model.Wallet
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
IssueLicenseParams contains all the parameters to send to the API endpoint for the issue license operation typically these are written to a http.Request
func NewIssueLicenseParams ¶
func NewIssueLicenseParams() *IssueLicenseParams
NewIssueLicenseParams creates a new IssueLicenseParams object with the default values initialized.
func NewIssueLicenseParamsWithContext ¶
func NewIssueLicenseParamsWithContext(ctx context.Context) *IssueLicenseParams
NewIssueLicenseParamsWithContext creates a new IssueLicenseParams object with the default values initialized, and the ability to set a context for a request
func NewIssueLicenseParamsWithHTTPClient ¶
func NewIssueLicenseParamsWithHTTPClient(client *http.Client) *IssueLicenseParams
NewIssueLicenseParamsWithHTTPClient creates a new IssueLicenseParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewIssueLicenseParamsWithTimeout ¶
func NewIssueLicenseParamsWithTimeout(timeout time.Duration) *IssueLicenseParams
NewIssueLicenseParamsWithTimeout creates a new IssueLicenseParams object with the default values initialized, and the ability to set a timeout on a request
func (*IssueLicenseParams) SetArgs ¶
func (o *IssueLicenseParams) SetArgs(args model.Wallet)
SetArgs adds the args to the issue license params
func (*IssueLicenseParams) SetContext ¶
func (o *IssueLicenseParams) SetContext(ctx context.Context)
SetContext adds the context to the issue license params
func (*IssueLicenseParams) SetHTTPClient ¶
func (o *IssueLicenseParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the issue license params
func (*IssueLicenseParams) SetTimeout ¶
func (o *IssueLicenseParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the issue license params
func (*IssueLicenseParams) WithArgs ¶
func (o *IssueLicenseParams) WithArgs(args model.Wallet) *IssueLicenseParams
WithArgs adds the args to the issue license params
func (*IssueLicenseParams) WithContext ¶
func (o *IssueLicenseParams) WithContext(ctx context.Context) *IssueLicenseParams
WithContext adds the context to the issue license params
func (*IssueLicenseParams) WithHTTPClient ¶
func (o *IssueLicenseParams) WithHTTPClient(client *http.Client) *IssueLicenseParams
WithHTTPClient adds the HTTPClient to the issue license params
func (*IssueLicenseParams) WithTimeout ¶
func (o *IssueLicenseParams) WithTimeout(timeout time.Duration) *IssueLicenseParams
WithTimeout adds the timeout to the issue license params
func (*IssueLicenseParams) WriteToRequest ¶
func (o *IssueLicenseParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type IssueLicenseReader ¶
type IssueLicenseReader struct {
// contains filtered or unexported fields
}
IssueLicenseReader is a Reader for the IssueLicense structure.
func (*IssueLicenseReader) ReadResponse ¶
func (o *IssueLicenseReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListLicensesDefault ¶
ListLicensesDefault handles this case with default header values.
General errors using same model as used by go-swagger for validation errors.
func NewListLicensesDefault ¶
func NewListLicensesDefault(code int) *ListLicensesDefault
NewListLicensesDefault creates a ListLicensesDefault with default headers values
func (*ListLicensesDefault) Code ¶
func (o *ListLicensesDefault) Code() int
Code gets the status code for the list licenses default response
func (*ListLicensesDefault) Error ¶
func (o *ListLicensesDefault) Error() string
func (*ListLicensesDefault) GetPayload ¶
func (o *ListLicensesDefault) GetPayload() *model.Error
type ListLicensesOK ¶
type ListLicensesOK struct {
Payload model.LicenseList
}
ListLicensesOK handles this case with default header values.
List of issued licenses.
func NewListLicensesOK ¶
func NewListLicensesOK() *ListLicensesOK
NewListLicensesOK creates a ListLicensesOK with default headers values
func (*ListLicensesOK) Error ¶
func (o *ListLicensesOK) Error() string
func (*ListLicensesOK) GetPayload ¶
func (o *ListLicensesOK) GetPayload() model.LicenseList
type ListLicensesParams ¶
type ListLicensesParams struct {
Context context.Context
HTTPClient *http.Client
// contains filtered or unexported fields
}
ListLicensesParams contains all the parameters to send to the API endpoint for the list licenses operation typically these are written to a http.Request
func NewListLicensesParams ¶
func NewListLicensesParams() *ListLicensesParams
NewListLicensesParams creates a new ListLicensesParams object with the default values initialized.
func NewListLicensesParamsWithContext ¶
func NewListLicensesParamsWithContext(ctx context.Context) *ListLicensesParams
NewListLicensesParamsWithContext creates a new ListLicensesParams object with the default values initialized, and the ability to set a context for a request
func NewListLicensesParamsWithHTTPClient ¶
func NewListLicensesParamsWithHTTPClient(client *http.Client) *ListLicensesParams
NewListLicensesParamsWithHTTPClient creates a new ListLicensesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListLicensesParamsWithTimeout ¶
func NewListLicensesParamsWithTimeout(timeout time.Duration) *ListLicensesParams
NewListLicensesParamsWithTimeout creates a new ListLicensesParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListLicensesParams) SetContext ¶
func (o *ListLicensesParams) SetContext(ctx context.Context)
SetContext adds the context to the list licenses params
func (*ListLicensesParams) SetHTTPClient ¶
func (o *ListLicensesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list licenses params
func (*ListLicensesParams) SetTimeout ¶
func (o *ListLicensesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list licenses params
func (*ListLicensesParams) WithContext ¶
func (o *ListLicensesParams) WithContext(ctx context.Context) *ListLicensesParams
WithContext adds the context to the list licenses params
func (*ListLicensesParams) WithHTTPClient ¶
func (o *ListLicensesParams) WithHTTPClient(client *http.Client) *ListLicensesParams
WithHTTPClient adds the HTTPClient to the list licenses params
func (*ListLicensesParams) WithTimeout ¶
func (o *ListLicensesParams) WithTimeout(timeout time.Duration) *ListLicensesParams
WithTimeout adds the timeout to the list licenses params
func (*ListLicensesParams) WriteToRequest ¶
func (o *ListLicensesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListLicensesReader ¶
type ListLicensesReader struct {
// contains filtered or unexported fields
}
ListLicensesReader is a Reader for the ListLicenses structure.
func (*ListLicensesReader) ReadResponse ¶
func (o *ListLicensesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files
¶
- cash_parameters.go
- cash_responses.go
- dig_parameters.go
- dig_responses.go
- explore_area_parameters.go
- explore_area_responses.go
- get_balance_parameters.go
- get_balance_responses.go
- health_check_parameters.go
- health_check_responses.go
- issue_license_parameters.go
- issue_license_responses.go
- list_licenses_parameters.go
- list_licenses_responses.go
- op_client.go