Documentation ¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type ListDealsBadRequest
- func (o *ListDealsBadRequest) Code() int
- func (o *ListDealsBadRequest) Error() string
- func (o *ListDealsBadRequest) GetPayload() *models.APIHTTPError
- func (o *ListDealsBadRequest) IsClientError() bool
- func (o *ListDealsBadRequest) IsCode(code int) bool
- func (o *ListDealsBadRequest) IsRedirect() bool
- func (o *ListDealsBadRequest) IsServerError() bool
- func (o *ListDealsBadRequest) IsSuccess() bool
- func (o *ListDealsBadRequest) String() string
- type ListDealsInternalServerError
- func (o *ListDealsInternalServerError) Code() int
- func (o *ListDealsInternalServerError) Error() string
- func (o *ListDealsInternalServerError) GetPayload() *models.APIHTTPError
- func (o *ListDealsInternalServerError) IsClientError() bool
- func (o *ListDealsInternalServerError) IsCode(code int) bool
- func (o *ListDealsInternalServerError) IsRedirect() bool
- func (o *ListDealsInternalServerError) IsServerError() bool
- func (o *ListDealsInternalServerError) IsSuccess() bool
- func (o *ListDealsInternalServerError) String() string
- type ListDealsOK
- func (o *ListDealsOK) Code() int
- func (o *ListDealsOK) Error() string
- func (o *ListDealsOK) GetPayload() []*models.ModelDeal
- func (o *ListDealsOK) IsClientError() bool
- func (o *ListDealsOK) IsCode(code int) bool
- func (o *ListDealsOK) IsRedirect() bool
- func (o *ListDealsOK) IsServerError() bool
- func (o *ListDealsOK) IsSuccess() bool
- func (o *ListDealsOK) String() string
- type ListDealsParams
- func (o *ListDealsParams) SetContext(ctx context.Context)
- func (o *ListDealsParams) SetDefaults()
- func (o *ListDealsParams) SetHTTPClient(client *http.Client)
- func (o *ListDealsParams) SetRequest(request *models.DealListDealRequest)
- func (o *ListDealsParams) SetTimeout(timeout time.Duration)
- func (o *ListDealsParams) WithContext(ctx context.Context) *ListDealsParams
- func (o *ListDealsParams) WithDefaults() *ListDealsParams
- func (o *ListDealsParams) WithHTTPClient(client *http.Client) *ListDealsParams
- func (o *ListDealsParams) WithRequest(request *models.DealListDealRequest) *ListDealsParams
- func (o *ListDealsParams) WithTimeout(timeout time.Duration) *ListDealsParams
- func (o *ListDealsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDealsReader
- type SendManualBadRequest
- func (o *SendManualBadRequest) Code() int
- func (o *SendManualBadRequest) Error() string
- func (o *SendManualBadRequest) GetPayload() *models.APIHTTPError
- func (o *SendManualBadRequest) IsClientError() bool
- func (o *SendManualBadRequest) IsCode(code int) bool
- func (o *SendManualBadRequest) IsRedirect() bool
- func (o *SendManualBadRequest) IsServerError() bool
- func (o *SendManualBadRequest) IsSuccess() bool
- func (o *SendManualBadRequest) String() string
- type SendManualInternalServerError
- func (o *SendManualInternalServerError) Code() int
- func (o *SendManualInternalServerError) Error() string
- func (o *SendManualInternalServerError) GetPayload() *models.APIHTTPError
- func (o *SendManualInternalServerError) IsClientError() bool
- func (o *SendManualInternalServerError) IsCode(code int) bool
- func (o *SendManualInternalServerError) IsRedirect() bool
- func (o *SendManualInternalServerError) IsServerError() bool
- func (o *SendManualInternalServerError) IsSuccess() bool
- func (o *SendManualInternalServerError) String() string
- type SendManualOK
- func (o *SendManualOK) Code() int
- func (o *SendManualOK) Error() string
- func (o *SendManualOK) GetPayload() *models.ModelDeal
- func (o *SendManualOK) IsClientError() bool
- func (o *SendManualOK) IsCode(code int) bool
- func (o *SendManualOK) IsRedirect() bool
- func (o *SendManualOK) IsServerError() bool
- func (o *SendManualOK) IsSuccess() bool
- func (o *SendManualOK) String() string
- type SendManualParams
- func (o *SendManualParams) SetContext(ctx context.Context)
- func (o *SendManualParams) SetDefaults()
- func (o *SendManualParams) SetHTTPClient(client *http.Client)
- func (o *SendManualParams) SetProposal(proposal *models.DealProposal)
- func (o *SendManualParams) SetTimeout(timeout time.Duration)
- func (o *SendManualParams) WithContext(ctx context.Context) *SendManualParams
- func (o *SendManualParams) WithDefaults() *SendManualParams
- func (o *SendManualParams) WithHTTPClient(client *http.Client) *SendManualParams
- func (o *SendManualParams) WithProposal(proposal *models.DealProposal) *SendManualParams
- func (o *SendManualParams) WithTimeout(timeout time.Duration) *SendManualParams
- func (o *SendManualParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendManualReader
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 deal API
func (*Client) ListDeals ¶ added in v0.4.1
func (a *Client) ListDeals(params *ListDealsParams, opts ...ClientOption) (*ListDealsOK, error)
ListDeals lists all deals
List all deals
func (*Client) SendManual ¶ added in v0.4.1
func (a *Client) SendManual(params *SendManualParams, opts ...ClientOption) (*SendManualOK, error)
SendManual sends a manual deal proposal
Send a manual deal proposal
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption may be used to customize the behavior of Client methods.
type ClientService ¶
type ClientService interface { ListDeals(params *ListDealsParams, opts ...ClientOption) (*ListDealsOK, error) SendManual(params *SendManualParams, opts ...ClientOption) (*SendManualOK, 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 deal API client.
func NewClientWithBasicAuth ¶ added in v0.5.15
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new deal API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶ added in v0.5.15
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new deal API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type ListDealsBadRequest ¶ added in v0.4.1
type ListDealsBadRequest struct {
Payload *models.APIHTTPError
}
ListDealsBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewListDealsBadRequest ¶ added in v0.4.1
func NewListDealsBadRequest() *ListDealsBadRequest
NewListDealsBadRequest creates a ListDealsBadRequest with default headers values
func (*ListDealsBadRequest) Code ¶ added in v0.4.1
func (o *ListDealsBadRequest) Code() int
Code gets the status code for the list deals bad request response
func (*ListDealsBadRequest) Error ¶ added in v0.4.1
func (o *ListDealsBadRequest) Error() string
func (*ListDealsBadRequest) GetPayload ¶ added in v0.4.1
func (o *ListDealsBadRequest) GetPayload() *models.APIHTTPError
func (*ListDealsBadRequest) IsClientError ¶ added in v0.4.1
func (o *ListDealsBadRequest) IsClientError() bool
IsClientError returns true when this list deals bad request response has a 4xx status code
func (*ListDealsBadRequest) IsCode ¶ added in v0.4.1
func (o *ListDealsBadRequest) IsCode(code int) bool
IsCode returns true when this list deals bad request response a status code equal to that given
func (*ListDealsBadRequest) IsRedirect ¶ added in v0.4.1
func (o *ListDealsBadRequest) IsRedirect() bool
IsRedirect returns true when this list deals bad request response has a 3xx status code
func (*ListDealsBadRequest) IsServerError ¶ added in v0.4.1
func (o *ListDealsBadRequest) IsServerError() bool
IsServerError returns true when this list deals bad request response has a 5xx status code
func (*ListDealsBadRequest) IsSuccess ¶ added in v0.4.1
func (o *ListDealsBadRequest) IsSuccess() bool
IsSuccess returns true when this list deals bad request response has a 2xx status code
func (*ListDealsBadRequest) String ¶ added in v0.4.1
func (o *ListDealsBadRequest) String() string
type ListDealsInternalServerError ¶ added in v0.4.1
type ListDealsInternalServerError struct {
Payload *models.APIHTTPError
}
ListDealsInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewListDealsInternalServerError ¶ added in v0.4.1
func NewListDealsInternalServerError() *ListDealsInternalServerError
NewListDealsInternalServerError creates a ListDealsInternalServerError with default headers values
func (*ListDealsInternalServerError) Code ¶ added in v0.4.1
func (o *ListDealsInternalServerError) Code() int
Code gets the status code for the list deals internal server error response
func (*ListDealsInternalServerError) Error ¶ added in v0.4.1
func (o *ListDealsInternalServerError) Error() string
func (*ListDealsInternalServerError) GetPayload ¶ added in v0.4.1
func (o *ListDealsInternalServerError) GetPayload() *models.APIHTTPError
func (*ListDealsInternalServerError) IsClientError ¶ added in v0.4.1
func (o *ListDealsInternalServerError) IsClientError() bool
IsClientError returns true when this list deals internal server error response has a 4xx status code
func (*ListDealsInternalServerError) IsCode ¶ added in v0.4.1
func (o *ListDealsInternalServerError) IsCode(code int) bool
IsCode returns true when this list deals internal server error response a status code equal to that given
func (*ListDealsInternalServerError) IsRedirect ¶ added in v0.4.1
func (o *ListDealsInternalServerError) IsRedirect() bool
IsRedirect returns true when this list deals internal server error response has a 3xx status code
func (*ListDealsInternalServerError) IsServerError ¶ added in v0.4.1
func (o *ListDealsInternalServerError) IsServerError() bool
IsServerError returns true when this list deals internal server error response has a 5xx status code
func (*ListDealsInternalServerError) IsSuccess ¶ added in v0.4.1
func (o *ListDealsInternalServerError) IsSuccess() bool
IsSuccess returns true when this list deals internal server error response has a 2xx status code
func (*ListDealsInternalServerError) String ¶ added in v0.4.1
func (o *ListDealsInternalServerError) String() string
type ListDealsOK ¶ added in v0.4.1
ListDealsOK describes a response with status code 200, with default header values.
OK
func NewListDealsOK ¶ added in v0.4.1
func NewListDealsOK() *ListDealsOK
NewListDealsOK creates a ListDealsOK with default headers values
func (*ListDealsOK) Code ¶ added in v0.4.1
func (o *ListDealsOK) Code() int
Code gets the status code for the list deals o k response
func (*ListDealsOK) Error ¶ added in v0.4.1
func (o *ListDealsOK) Error() string
func (*ListDealsOK) GetPayload ¶ added in v0.4.1
func (o *ListDealsOK) GetPayload() []*models.ModelDeal
func (*ListDealsOK) IsClientError ¶ added in v0.4.1
func (o *ListDealsOK) IsClientError() bool
IsClientError returns true when this list deals o k response has a 4xx status code
func (*ListDealsOK) IsCode ¶ added in v0.4.1
func (o *ListDealsOK) IsCode(code int) bool
IsCode returns true when this list deals o k response a status code equal to that given
func (*ListDealsOK) IsRedirect ¶ added in v0.4.1
func (o *ListDealsOK) IsRedirect() bool
IsRedirect returns true when this list deals o k response has a 3xx status code
func (*ListDealsOK) IsServerError ¶ added in v0.4.1
func (o *ListDealsOK) IsServerError() bool
IsServerError returns true when this list deals o k response has a 5xx status code
func (*ListDealsOK) IsSuccess ¶ added in v0.4.1
func (o *ListDealsOK) IsSuccess() bool
IsSuccess returns true when this list deals o k response has a 2xx status code
func (*ListDealsOK) String ¶ added in v0.4.1
func (o *ListDealsOK) String() string
type ListDealsParams ¶ added in v0.4.1
type ListDealsParams struct { /* Request. ListDealRequest */ Request *models.DealListDealRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListDealsParams contains all the parameters to send to the API endpoint
for the list deals operation. Typically these are written to a http.Request.
func NewListDealsParams ¶ added in v0.4.1
func NewListDealsParams() *ListDealsParams
NewListDealsParams creates a new ListDealsParams 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 NewListDealsParamsWithContext ¶ added in v0.4.1
func NewListDealsParamsWithContext(ctx context.Context) *ListDealsParams
NewListDealsParamsWithContext creates a new ListDealsParams object with the ability to set a context for a request.
func NewListDealsParamsWithHTTPClient ¶ added in v0.4.1
func NewListDealsParamsWithHTTPClient(client *http.Client) *ListDealsParams
NewListDealsParamsWithHTTPClient creates a new ListDealsParams object with the ability to set a custom HTTPClient for a request.
func NewListDealsParamsWithTimeout ¶ added in v0.4.1
func NewListDealsParamsWithTimeout(timeout time.Duration) *ListDealsParams
NewListDealsParamsWithTimeout creates a new ListDealsParams object with the ability to set a timeout on a request.
func (*ListDealsParams) SetContext ¶ added in v0.4.1
func (o *ListDealsParams) SetContext(ctx context.Context)
SetContext adds the context to the list deals params
func (*ListDealsParams) SetDefaults ¶ added in v0.4.1
func (o *ListDealsParams) SetDefaults()
SetDefaults hydrates default values in the list deals params (not the query body).
All values with no default are reset to their zero value.
func (*ListDealsParams) SetHTTPClient ¶ added in v0.4.1
func (o *ListDealsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list deals params
func (*ListDealsParams) SetRequest ¶ added in v0.4.1
func (o *ListDealsParams) SetRequest(request *models.DealListDealRequest)
SetRequest adds the request to the list deals params
func (*ListDealsParams) SetTimeout ¶ added in v0.4.1
func (o *ListDealsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list deals params
func (*ListDealsParams) WithContext ¶ added in v0.4.1
func (o *ListDealsParams) WithContext(ctx context.Context) *ListDealsParams
WithContext adds the context to the list deals params
func (*ListDealsParams) WithDefaults ¶ added in v0.4.1
func (o *ListDealsParams) WithDefaults() *ListDealsParams
WithDefaults hydrates default values in the list deals params (not the query body).
All values with no default are reset to their zero value.
func (*ListDealsParams) WithHTTPClient ¶ added in v0.4.1
func (o *ListDealsParams) WithHTTPClient(client *http.Client) *ListDealsParams
WithHTTPClient adds the HTTPClient to the list deals params
func (*ListDealsParams) WithRequest ¶ added in v0.4.1
func (o *ListDealsParams) WithRequest(request *models.DealListDealRequest) *ListDealsParams
WithRequest adds the request to the list deals params
func (*ListDealsParams) WithTimeout ¶ added in v0.4.1
func (o *ListDealsParams) WithTimeout(timeout time.Duration) *ListDealsParams
WithTimeout adds the timeout to the list deals params
func (*ListDealsParams) WriteToRequest ¶ added in v0.4.1
func (o *ListDealsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListDealsReader ¶ added in v0.4.1
type ListDealsReader struct {
// contains filtered or unexported fields
}
ListDealsReader is a Reader for the ListDeals structure.
func (*ListDealsReader) ReadResponse ¶ added in v0.4.1
func (o *ListDealsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type SendManualBadRequest ¶ added in v0.4.1
type SendManualBadRequest struct {
Payload *models.APIHTTPError
}
SendManualBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewSendManualBadRequest ¶ added in v0.4.1
func NewSendManualBadRequest() *SendManualBadRequest
NewSendManualBadRequest creates a SendManualBadRequest with default headers values
func (*SendManualBadRequest) Code ¶ added in v0.4.1
func (o *SendManualBadRequest) Code() int
Code gets the status code for the send manual bad request response
func (*SendManualBadRequest) Error ¶ added in v0.4.1
func (o *SendManualBadRequest) Error() string
func (*SendManualBadRequest) GetPayload ¶ added in v0.4.1
func (o *SendManualBadRequest) GetPayload() *models.APIHTTPError
func (*SendManualBadRequest) IsClientError ¶ added in v0.4.1
func (o *SendManualBadRequest) IsClientError() bool
IsClientError returns true when this send manual bad request response has a 4xx status code
func (*SendManualBadRequest) IsCode ¶ added in v0.4.1
func (o *SendManualBadRequest) IsCode(code int) bool
IsCode returns true when this send manual bad request response a status code equal to that given
func (*SendManualBadRequest) IsRedirect ¶ added in v0.4.1
func (o *SendManualBadRequest) IsRedirect() bool
IsRedirect returns true when this send manual bad request response has a 3xx status code
func (*SendManualBadRequest) IsServerError ¶ added in v0.4.1
func (o *SendManualBadRequest) IsServerError() bool
IsServerError returns true when this send manual bad request response has a 5xx status code
func (*SendManualBadRequest) IsSuccess ¶ added in v0.4.1
func (o *SendManualBadRequest) IsSuccess() bool
IsSuccess returns true when this send manual bad request response has a 2xx status code
func (*SendManualBadRequest) String ¶ added in v0.4.1
func (o *SendManualBadRequest) String() string
type SendManualInternalServerError ¶ added in v0.4.1
type SendManualInternalServerError struct {
Payload *models.APIHTTPError
}
SendManualInternalServerError describes a response with status code 500, with default header values.
Internal Server Error
func NewSendManualInternalServerError ¶ added in v0.4.1
func NewSendManualInternalServerError() *SendManualInternalServerError
NewSendManualInternalServerError creates a SendManualInternalServerError with default headers values
func (*SendManualInternalServerError) Code ¶ added in v0.4.1
func (o *SendManualInternalServerError) Code() int
Code gets the status code for the send manual internal server error response
func (*SendManualInternalServerError) Error ¶ added in v0.4.1
func (o *SendManualInternalServerError) Error() string
func (*SendManualInternalServerError) GetPayload ¶ added in v0.4.1
func (o *SendManualInternalServerError) GetPayload() *models.APIHTTPError
func (*SendManualInternalServerError) IsClientError ¶ added in v0.4.1
func (o *SendManualInternalServerError) IsClientError() bool
IsClientError returns true when this send manual internal server error response has a 4xx status code
func (*SendManualInternalServerError) IsCode ¶ added in v0.4.1
func (o *SendManualInternalServerError) IsCode(code int) bool
IsCode returns true when this send manual internal server error response a status code equal to that given
func (*SendManualInternalServerError) IsRedirect ¶ added in v0.4.1
func (o *SendManualInternalServerError) IsRedirect() bool
IsRedirect returns true when this send manual internal server error response has a 3xx status code
func (*SendManualInternalServerError) IsServerError ¶ added in v0.4.1
func (o *SendManualInternalServerError) IsServerError() bool
IsServerError returns true when this send manual internal server error response has a 5xx status code
func (*SendManualInternalServerError) IsSuccess ¶ added in v0.4.1
func (o *SendManualInternalServerError) IsSuccess() bool
IsSuccess returns true when this send manual internal server error response has a 2xx status code
func (*SendManualInternalServerError) String ¶ added in v0.4.1
func (o *SendManualInternalServerError) String() string
type SendManualOK ¶ added in v0.4.1
SendManualOK describes a response with status code 200, with default header values.
OK
func NewSendManualOK ¶ added in v0.4.1
func NewSendManualOK() *SendManualOK
NewSendManualOK creates a SendManualOK with default headers values
func (*SendManualOK) Code ¶ added in v0.4.1
func (o *SendManualOK) Code() int
Code gets the status code for the send manual o k response
func (*SendManualOK) Error ¶ added in v0.4.1
func (o *SendManualOK) Error() string
func (*SendManualOK) GetPayload ¶ added in v0.4.1
func (o *SendManualOK) GetPayload() *models.ModelDeal
func (*SendManualOK) IsClientError ¶ added in v0.4.1
func (o *SendManualOK) IsClientError() bool
IsClientError returns true when this send manual o k response has a 4xx status code
func (*SendManualOK) IsCode ¶ added in v0.4.1
func (o *SendManualOK) IsCode(code int) bool
IsCode returns true when this send manual o k response a status code equal to that given
func (*SendManualOK) IsRedirect ¶ added in v0.4.1
func (o *SendManualOK) IsRedirect() bool
IsRedirect returns true when this send manual o k response has a 3xx status code
func (*SendManualOK) IsServerError ¶ added in v0.4.1
func (o *SendManualOK) IsServerError() bool
IsServerError returns true when this send manual o k response has a 5xx status code
func (*SendManualOK) IsSuccess ¶ added in v0.4.1
func (o *SendManualOK) IsSuccess() bool
IsSuccess returns true when this send manual o k response has a 2xx status code
func (*SendManualOK) String ¶ added in v0.4.1
func (o *SendManualOK) String() string
type SendManualParams ¶ added in v0.4.1
type SendManualParams struct { /* Proposal. Proposal */ Proposal *models.DealProposal Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendManualParams contains all the parameters to send to the API endpoint
for the send manual operation. Typically these are written to a http.Request.
func NewSendManualParams ¶ added in v0.4.1
func NewSendManualParams() *SendManualParams
NewSendManualParams creates a new SendManualParams 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 NewSendManualParamsWithContext ¶ added in v0.4.1
func NewSendManualParamsWithContext(ctx context.Context) *SendManualParams
NewSendManualParamsWithContext creates a new SendManualParams object with the ability to set a context for a request.
func NewSendManualParamsWithHTTPClient ¶ added in v0.4.1
func NewSendManualParamsWithHTTPClient(client *http.Client) *SendManualParams
NewSendManualParamsWithHTTPClient creates a new SendManualParams object with the ability to set a custom HTTPClient for a request.
func NewSendManualParamsWithTimeout ¶ added in v0.4.1
func NewSendManualParamsWithTimeout(timeout time.Duration) *SendManualParams
NewSendManualParamsWithTimeout creates a new SendManualParams object with the ability to set a timeout on a request.
func (*SendManualParams) SetContext ¶ added in v0.4.1
func (o *SendManualParams) SetContext(ctx context.Context)
SetContext adds the context to the send manual params
func (*SendManualParams) SetDefaults ¶ added in v0.4.1
func (o *SendManualParams) SetDefaults()
SetDefaults hydrates default values in the send manual params (not the query body).
All values with no default are reset to their zero value.
func (*SendManualParams) SetHTTPClient ¶ added in v0.4.1
func (o *SendManualParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send manual params
func (*SendManualParams) SetProposal ¶ added in v0.4.1
func (o *SendManualParams) SetProposal(proposal *models.DealProposal)
SetProposal adds the proposal to the send manual params
func (*SendManualParams) SetTimeout ¶ added in v0.4.1
func (o *SendManualParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send manual params
func (*SendManualParams) WithContext ¶ added in v0.4.1
func (o *SendManualParams) WithContext(ctx context.Context) *SendManualParams
WithContext adds the context to the send manual params
func (*SendManualParams) WithDefaults ¶ added in v0.4.1
func (o *SendManualParams) WithDefaults() *SendManualParams
WithDefaults hydrates default values in the send manual params (not the query body).
All values with no default are reset to their zero value.
func (*SendManualParams) WithHTTPClient ¶ added in v0.4.1
func (o *SendManualParams) WithHTTPClient(client *http.Client) *SendManualParams
WithHTTPClient adds the HTTPClient to the send manual params
func (*SendManualParams) WithProposal ¶ added in v0.4.1
func (o *SendManualParams) WithProposal(proposal *models.DealProposal) *SendManualParams
WithProposal adds the proposal to the send manual params
func (*SendManualParams) WithTimeout ¶ added in v0.4.1
func (o *SendManualParams) WithTimeout(timeout time.Duration) *SendManualParams
WithTimeout adds the timeout to the send manual params
func (*SendManualParams) WriteToRequest ¶ added in v0.4.1
func (o *SendManualParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendManualReader ¶ added in v0.4.1
type SendManualReader struct {
// contains filtered or unexported fields
}
SendManualReader is a Reader for the SendManual structure.
func (*SendManualReader) ReadResponse ¶ added in v0.4.1
func (o *SendManualReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.