Documentation
¶
Index ¶
- type Client
- func (a *Client) CrmProspectGet(params *CrmProspectGetParams, authInfo runtime.ClientAuthInfoWriter) (*CrmProspectGetOK, error)
- func (a *Client) CrmProspectSearch(params *CrmProspectSearchParams, authInfo runtime.ClientAuthInfoWriter) (*CrmProspectSearchOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type CrmProspectGetOK
- type CrmProspectGetParams
- func NewCrmProspectGetParams() *CrmProspectGetParams
- func NewCrmProspectGetParamsWithContext(ctx context.Context) *CrmProspectGetParams
- func NewCrmProspectGetParamsWithHTTPClient(client *http.Client) *CrmProspectGetParams
- func NewCrmProspectGetParamsWithTimeout(timeout time.Duration) *CrmProspectGetParams
- func (o *CrmProspectGetParams) SetContext(ctx context.Context)
- func (o *CrmProspectGetParams) SetFields(fields *string)
- func (o *CrmProspectGetParams) SetHTTPClient(client *http.Client)
- func (o *CrmProspectGetParams) SetID(id int32)
- func (o *CrmProspectGetParams) SetTimeout(timeout time.Duration)
- func (o *CrmProspectGetParams) WithContext(ctx context.Context) *CrmProspectGetParams
- func (o *CrmProspectGetParams) WithFields(fields *string) *CrmProspectGetParams
- func (o *CrmProspectGetParams) WithHTTPClient(client *http.Client) *CrmProspectGetParams
- func (o *CrmProspectGetParams) WithID(id int32) *CrmProspectGetParams
- func (o *CrmProspectGetParams) WithTimeout(timeout time.Duration) *CrmProspectGetParams
- func (o *CrmProspectGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CrmProspectGetReader
- type CrmProspectSearchOK
- type CrmProspectSearchParams
- func NewCrmProspectSearchParams() *CrmProspectSearchParams
- func NewCrmProspectSearchParamsWithContext(ctx context.Context) *CrmProspectSearchParams
- func NewCrmProspectSearchParamsWithHTTPClient(client *http.Client) *CrmProspectSearchParams
- func NewCrmProspectSearchParamsWithTimeout(timeout time.Duration) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) SetClosedDateFrom(closedDateFrom *string)
- func (o *CrmProspectSearchParams) SetClosedDateTo(closedDateTo *string)
- func (o *CrmProspectSearchParams) SetClosedReason(closedReason *string)
- func (o *CrmProspectSearchParams) SetCompetitor(competitor *string)
- func (o *CrmProspectSearchParams) SetContext(ctx context.Context)
- func (o *CrmProspectSearchParams) SetCount(count *int64)
- func (o *CrmProspectSearchParams) SetCreatedDateFrom(createdDateFrom *string)
- func (o *CrmProspectSearchParams) SetCreatedDateTo(createdDateTo *string)
- func (o *CrmProspectSearchParams) SetCustomerID(customerID *string)
- func (o *CrmProspectSearchParams) SetDescription(description *string)
- func (o *CrmProspectSearchParams) SetFields(fields *string)
- func (o *CrmProspectSearchParams) SetFrom(from *int64)
- func (o *CrmProspectSearchParams) SetHTTPClient(client *http.Client)
- func (o *CrmProspectSearchParams) SetIsClosed(isClosed *bool)
- func (o *CrmProspectSearchParams) SetName(name *string)
- func (o *CrmProspectSearchParams) SetProjectID(projectID *string)
- func (o *CrmProspectSearchParams) SetProjectOfferID(projectOfferID *string)
- func (o *CrmProspectSearchParams) SetProspectType(prospectType *string)
- func (o *CrmProspectSearchParams) SetSalesEmployeeID(salesEmployeeID *string)
- func (o *CrmProspectSearchParams) SetSorting(sorting *string)
- func (o *CrmProspectSearchParams) SetTimeout(timeout time.Duration)
- func (o *CrmProspectSearchParams) WithClosedDateFrom(closedDateFrom *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithClosedDateTo(closedDateTo *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithClosedReason(closedReason *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithCompetitor(competitor *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithContext(ctx context.Context) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithCount(count *int64) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithCreatedDateFrom(createdDateFrom *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithCreatedDateTo(createdDateTo *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithCustomerID(customerID *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithDescription(description *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithFields(fields *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithFrom(from *int64) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithHTTPClient(client *http.Client) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithIsClosed(isClosed *bool) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithName(name *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithProjectID(projectID *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithProjectOfferID(projectOfferID *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithProspectType(prospectType *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithSalesEmployeeID(salesEmployeeID *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithSorting(sorting *string) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WithTimeout(timeout time.Duration) *CrmProspectSearchParams
- func (o *CrmProspectSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CrmProspectSearchReader
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 prospect API
func (*Client) CrmProspectGet ¶
func (a *Client) CrmProspectGet(params *CrmProspectGetParams, authInfo runtime.ClientAuthInfoWriter) (*CrmProspectGetOK, error)
CrmProspectGet gets prospect by ID
func (*Client) CrmProspectSearch ¶
func (a *Client) CrmProspectSearch(params *CrmProspectSearchParams, authInfo runtime.ClientAuthInfoWriter) (*CrmProspectSearchOK, error)
CrmProspectSearch finds prospects corresponding with sent data
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { CrmProspectGet(params *CrmProspectGetParams, authInfo runtime.ClientAuthInfoWriter) (*CrmProspectGetOK, error) CrmProspectSearch(params *CrmProspectSearchParams, authInfo runtime.ClientAuthInfoWriter) (*CrmProspectSearchOK, 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 prospect API client.
type CrmProspectGetOK ¶
type CrmProspectGetOK struct {
Payload *models.ResponseWrapperProspect
}
CrmProspectGetOK handles this case with default header values.
successful operation
func NewCrmProspectGetOK ¶
func NewCrmProspectGetOK() *CrmProspectGetOK
NewCrmProspectGetOK creates a CrmProspectGetOK with default headers values
func (*CrmProspectGetOK) Error ¶
func (o *CrmProspectGetOK) Error() string
func (*CrmProspectGetOK) GetPayload ¶
func (o *CrmProspectGetOK) GetPayload() *models.ResponseWrapperProspect
type CrmProspectGetParams ¶
type CrmProspectGetParams struct { /*Fields Fields filter pattern */ Fields *string /*ID Element ID */ ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CrmProspectGetParams contains all the parameters to send to the API endpoint for the crm prospect get operation typically these are written to a http.Request
func NewCrmProspectGetParams ¶
func NewCrmProspectGetParams() *CrmProspectGetParams
NewCrmProspectGetParams creates a new CrmProspectGetParams object with the default values initialized.
func NewCrmProspectGetParamsWithContext ¶
func NewCrmProspectGetParamsWithContext(ctx context.Context) *CrmProspectGetParams
NewCrmProspectGetParamsWithContext creates a new CrmProspectGetParams object with the default values initialized, and the ability to set a context for a request
func NewCrmProspectGetParamsWithHTTPClient ¶
func NewCrmProspectGetParamsWithHTTPClient(client *http.Client) *CrmProspectGetParams
NewCrmProspectGetParamsWithHTTPClient creates a new CrmProspectGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCrmProspectGetParamsWithTimeout ¶
func NewCrmProspectGetParamsWithTimeout(timeout time.Duration) *CrmProspectGetParams
NewCrmProspectGetParamsWithTimeout creates a new CrmProspectGetParams object with the default values initialized, and the ability to set a timeout on a request
func (*CrmProspectGetParams) SetContext ¶
func (o *CrmProspectGetParams) SetContext(ctx context.Context)
SetContext adds the context to the crm prospect get params
func (*CrmProspectGetParams) SetFields ¶
func (o *CrmProspectGetParams) SetFields(fields *string)
SetFields adds the fields to the crm prospect get params
func (*CrmProspectGetParams) SetHTTPClient ¶
func (o *CrmProspectGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the crm prospect get params
func (*CrmProspectGetParams) SetID ¶
func (o *CrmProspectGetParams) SetID(id int32)
SetID adds the id to the crm prospect get params
func (*CrmProspectGetParams) SetTimeout ¶
func (o *CrmProspectGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the crm prospect get params
func (*CrmProspectGetParams) WithContext ¶
func (o *CrmProspectGetParams) WithContext(ctx context.Context) *CrmProspectGetParams
WithContext adds the context to the crm prospect get params
func (*CrmProspectGetParams) WithFields ¶
func (o *CrmProspectGetParams) WithFields(fields *string) *CrmProspectGetParams
WithFields adds the fields to the crm prospect get params
func (*CrmProspectGetParams) WithHTTPClient ¶
func (o *CrmProspectGetParams) WithHTTPClient(client *http.Client) *CrmProspectGetParams
WithHTTPClient adds the HTTPClient to the crm prospect get params
func (*CrmProspectGetParams) WithID ¶
func (o *CrmProspectGetParams) WithID(id int32) *CrmProspectGetParams
WithID adds the id to the crm prospect get params
func (*CrmProspectGetParams) WithTimeout ¶
func (o *CrmProspectGetParams) WithTimeout(timeout time.Duration) *CrmProspectGetParams
WithTimeout adds the timeout to the crm prospect get params
func (*CrmProspectGetParams) WriteToRequest ¶
func (o *CrmProspectGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CrmProspectGetReader ¶
type CrmProspectGetReader struct {
// contains filtered or unexported fields
}
CrmProspectGetReader is a Reader for the CrmProspectGet structure.
func (*CrmProspectGetReader) ReadResponse ¶
func (o *CrmProspectGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CrmProspectSearchOK ¶
type CrmProspectSearchOK struct {
Payload *models.ListResponseProspect
}
CrmProspectSearchOK handles this case with default header values.
successful operation
func NewCrmProspectSearchOK ¶
func NewCrmProspectSearchOK() *CrmProspectSearchOK
NewCrmProspectSearchOK creates a CrmProspectSearchOK with default headers values
func (*CrmProspectSearchOK) Error ¶
func (o *CrmProspectSearchOK) Error() string
func (*CrmProspectSearchOK) GetPayload ¶
func (o *CrmProspectSearchOK) GetPayload() *models.ListResponseProspect
type CrmProspectSearchParams ¶
type CrmProspectSearchParams struct { /*ClosedDateFrom From and including */ ClosedDateFrom *string /*ClosedDateTo To and excluding */ ClosedDateTo *string /*ClosedReason Equals */ ClosedReason *string /*Competitor Containing */ Competitor *string /*Count Number of elements to return */ Count *int64 /*CreatedDateFrom From and including */ CreatedDateFrom *string /*CreatedDateTo To and excluding */ CreatedDateTo *string /*CustomerID Equals */ CustomerID *string /*Description Containing */ Description *string /*Fields Fields filter pattern */ Fields *string /*From From index */ From *int64 /*IsClosed Equals */ IsClosed *bool /*Name Containing */ Name *string /*ProjectID Equals */ ProjectID *string /*ProjectOfferID Equals */ ProjectOfferID *string /*ProspectType Equals */ ProspectType *string /*SalesEmployeeID Equals */ SalesEmployeeID *string /*Sorting Sorting pattern */ Sorting *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CrmProspectSearchParams contains all the parameters to send to the API endpoint for the crm prospect search operation typically these are written to a http.Request
func NewCrmProspectSearchParams ¶
func NewCrmProspectSearchParams() *CrmProspectSearchParams
NewCrmProspectSearchParams creates a new CrmProspectSearchParams object with the default values initialized.
func NewCrmProspectSearchParamsWithContext ¶
func NewCrmProspectSearchParamsWithContext(ctx context.Context) *CrmProspectSearchParams
NewCrmProspectSearchParamsWithContext creates a new CrmProspectSearchParams object with the default values initialized, and the ability to set a context for a request
func NewCrmProspectSearchParamsWithHTTPClient ¶
func NewCrmProspectSearchParamsWithHTTPClient(client *http.Client) *CrmProspectSearchParams
NewCrmProspectSearchParamsWithHTTPClient creates a new CrmProspectSearchParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCrmProspectSearchParamsWithTimeout ¶
func NewCrmProspectSearchParamsWithTimeout(timeout time.Duration) *CrmProspectSearchParams
NewCrmProspectSearchParamsWithTimeout creates a new CrmProspectSearchParams object with the default values initialized, and the ability to set a timeout on a request
func (*CrmProspectSearchParams) SetClosedDateFrom ¶
func (o *CrmProspectSearchParams) SetClosedDateFrom(closedDateFrom *string)
SetClosedDateFrom adds the closedDateFrom to the crm prospect search params
func (*CrmProspectSearchParams) SetClosedDateTo ¶
func (o *CrmProspectSearchParams) SetClosedDateTo(closedDateTo *string)
SetClosedDateTo adds the closedDateTo to the crm prospect search params
func (*CrmProspectSearchParams) SetClosedReason ¶
func (o *CrmProspectSearchParams) SetClosedReason(closedReason *string)
SetClosedReason adds the closedReason to the crm prospect search params
func (*CrmProspectSearchParams) SetCompetitor ¶
func (o *CrmProspectSearchParams) SetCompetitor(competitor *string)
SetCompetitor adds the competitor to the crm prospect search params
func (*CrmProspectSearchParams) SetContext ¶
func (o *CrmProspectSearchParams) SetContext(ctx context.Context)
SetContext adds the context to the crm prospect search params
func (*CrmProspectSearchParams) SetCount ¶
func (o *CrmProspectSearchParams) SetCount(count *int64)
SetCount adds the count to the crm prospect search params
func (*CrmProspectSearchParams) SetCreatedDateFrom ¶
func (o *CrmProspectSearchParams) SetCreatedDateFrom(createdDateFrom *string)
SetCreatedDateFrom adds the createdDateFrom to the crm prospect search params
func (*CrmProspectSearchParams) SetCreatedDateTo ¶
func (o *CrmProspectSearchParams) SetCreatedDateTo(createdDateTo *string)
SetCreatedDateTo adds the createdDateTo to the crm prospect search params
func (*CrmProspectSearchParams) SetCustomerID ¶
func (o *CrmProspectSearchParams) SetCustomerID(customerID *string)
SetCustomerID adds the customerId to the crm prospect search params
func (*CrmProspectSearchParams) SetDescription ¶
func (o *CrmProspectSearchParams) SetDescription(description *string)
SetDescription adds the description to the crm prospect search params
func (*CrmProspectSearchParams) SetFields ¶
func (o *CrmProspectSearchParams) SetFields(fields *string)
SetFields adds the fields to the crm prospect search params
func (*CrmProspectSearchParams) SetFrom ¶
func (o *CrmProspectSearchParams) SetFrom(from *int64)
SetFrom adds the from to the crm prospect search params
func (*CrmProspectSearchParams) SetHTTPClient ¶
func (o *CrmProspectSearchParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the crm prospect search params
func (*CrmProspectSearchParams) SetIsClosed ¶
func (o *CrmProspectSearchParams) SetIsClosed(isClosed *bool)
SetIsClosed adds the isClosed to the crm prospect search params
func (*CrmProspectSearchParams) SetName ¶
func (o *CrmProspectSearchParams) SetName(name *string)
SetName adds the name to the crm prospect search params
func (*CrmProspectSearchParams) SetProjectID ¶
func (o *CrmProspectSearchParams) SetProjectID(projectID *string)
SetProjectID adds the projectId to the crm prospect search params
func (*CrmProspectSearchParams) SetProjectOfferID ¶
func (o *CrmProspectSearchParams) SetProjectOfferID(projectOfferID *string)
SetProjectOfferID adds the projectOfferId to the crm prospect search params
func (*CrmProspectSearchParams) SetProspectType ¶
func (o *CrmProspectSearchParams) SetProspectType(prospectType *string)
SetProspectType adds the prospectType to the crm prospect search params
func (*CrmProspectSearchParams) SetSalesEmployeeID ¶
func (o *CrmProspectSearchParams) SetSalesEmployeeID(salesEmployeeID *string)
SetSalesEmployeeID adds the salesEmployeeId to the crm prospect search params
func (*CrmProspectSearchParams) SetSorting ¶
func (o *CrmProspectSearchParams) SetSorting(sorting *string)
SetSorting adds the sorting to the crm prospect search params
func (*CrmProspectSearchParams) SetTimeout ¶
func (o *CrmProspectSearchParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the crm prospect search params
func (*CrmProspectSearchParams) WithClosedDateFrom ¶
func (o *CrmProspectSearchParams) WithClosedDateFrom(closedDateFrom *string) *CrmProspectSearchParams
WithClosedDateFrom adds the closedDateFrom to the crm prospect search params
func (*CrmProspectSearchParams) WithClosedDateTo ¶
func (o *CrmProspectSearchParams) WithClosedDateTo(closedDateTo *string) *CrmProspectSearchParams
WithClosedDateTo adds the closedDateTo to the crm prospect search params
func (*CrmProspectSearchParams) WithClosedReason ¶
func (o *CrmProspectSearchParams) WithClosedReason(closedReason *string) *CrmProspectSearchParams
WithClosedReason adds the closedReason to the crm prospect search params
func (*CrmProspectSearchParams) WithCompetitor ¶
func (o *CrmProspectSearchParams) WithCompetitor(competitor *string) *CrmProspectSearchParams
WithCompetitor adds the competitor to the crm prospect search params
func (*CrmProspectSearchParams) WithContext ¶
func (o *CrmProspectSearchParams) WithContext(ctx context.Context) *CrmProspectSearchParams
WithContext adds the context to the crm prospect search params
func (*CrmProspectSearchParams) WithCount ¶
func (o *CrmProspectSearchParams) WithCount(count *int64) *CrmProspectSearchParams
WithCount adds the count to the crm prospect search params
func (*CrmProspectSearchParams) WithCreatedDateFrom ¶
func (o *CrmProspectSearchParams) WithCreatedDateFrom(createdDateFrom *string) *CrmProspectSearchParams
WithCreatedDateFrom adds the createdDateFrom to the crm prospect search params
func (*CrmProspectSearchParams) WithCreatedDateTo ¶
func (o *CrmProspectSearchParams) WithCreatedDateTo(createdDateTo *string) *CrmProspectSearchParams
WithCreatedDateTo adds the createdDateTo to the crm prospect search params
func (*CrmProspectSearchParams) WithCustomerID ¶
func (o *CrmProspectSearchParams) WithCustomerID(customerID *string) *CrmProspectSearchParams
WithCustomerID adds the customerID to the crm prospect search params
func (*CrmProspectSearchParams) WithDescription ¶
func (o *CrmProspectSearchParams) WithDescription(description *string) *CrmProspectSearchParams
WithDescription adds the description to the crm prospect search params
func (*CrmProspectSearchParams) WithFields ¶
func (o *CrmProspectSearchParams) WithFields(fields *string) *CrmProspectSearchParams
WithFields adds the fields to the crm prospect search params
func (*CrmProspectSearchParams) WithFrom ¶
func (o *CrmProspectSearchParams) WithFrom(from *int64) *CrmProspectSearchParams
WithFrom adds the from to the crm prospect search params
func (*CrmProspectSearchParams) WithHTTPClient ¶
func (o *CrmProspectSearchParams) WithHTTPClient(client *http.Client) *CrmProspectSearchParams
WithHTTPClient adds the HTTPClient to the crm prospect search params
func (*CrmProspectSearchParams) WithIsClosed ¶
func (o *CrmProspectSearchParams) WithIsClosed(isClosed *bool) *CrmProspectSearchParams
WithIsClosed adds the isClosed to the crm prospect search params
func (*CrmProspectSearchParams) WithName ¶
func (o *CrmProspectSearchParams) WithName(name *string) *CrmProspectSearchParams
WithName adds the name to the crm prospect search params
func (*CrmProspectSearchParams) WithProjectID ¶
func (o *CrmProspectSearchParams) WithProjectID(projectID *string) *CrmProspectSearchParams
WithProjectID adds the projectID to the crm prospect search params
func (*CrmProspectSearchParams) WithProjectOfferID ¶
func (o *CrmProspectSearchParams) WithProjectOfferID(projectOfferID *string) *CrmProspectSearchParams
WithProjectOfferID adds the projectOfferID to the crm prospect search params
func (*CrmProspectSearchParams) WithProspectType ¶
func (o *CrmProspectSearchParams) WithProspectType(prospectType *string) *CrmProspectSearchParams
WithProspectType adds the prospectType to the crm prospect search params
func (*CrmProspectSearchParams) WithSalesEmployeeID ¶
func (o *CrmProspectSearchParams) WithSalesEmployeeID(salesEmployeeID *string) *CrmProspectSearchParams
WithSalesEmployeeID adds the salesEmployeeID to the crm prospect search params
func (*CrmProspectSearchParams) WithSorting ¶
func (o *CrmProspectSearchParams) WithSorting(sorting *string) *CrmProspectSearchParams
WithSorting adds the sorting to the crm prospect search params
func (*CrmProspectSearchParams) WithTimeout ¶
func (o *CrmProspectSearchParams) WithTimeout(timeout time.Duration) *CrmProspectSearchParams
WithTimeout adds the timeout to the crm prospect search params
func (*CrmProspectSearchParams) WriteToRequest ¶
func (o *CrmProspectSearchParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CrmProspectSearchReader ¶
type CrmProspectSearchReader struct {
// contains filtered or unexported fields
}
CrmProspectSearchReader is a Reader for the CrmProspectSearch structure.
func (*CrmProspectSearchReader) ReadResponse ¶
func (o *CrmProspectSearchReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.