Documentation ¶
Index ¶
- type Client
- type SendOK
- type SendParams
- func (o *SendParams) SetBody(body *models.MailerMail)
- func (o *SendParams) SetContext(ctx context.Context)
- func (o *SendParams) SetHTTPClient(client *http.Client)
- func (o *SendParams) SetTimeout(timeout time.Duration)
- func (o *SendParams) WithBody(body *models.MailerMail) *SendParams
- func (o *SendParams) WithContext(ctx context.Context) *SendParams
- func (o *SendParams) WithHTTPClient(client *http.Client) *SendParams
- func (o *SendParams) WithTimeout(timeout time.Duration) *SendParams
- func (o *SendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendReader
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 mailer service API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new mailer service API client.
func (*Client) Send ¶
func (a *Client) Send(params *SendParams) (*SendOK, error)
Send sends an email to a user or any email address
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type SendOK ¶
type SendOK struct {
Payload *models.MailerSendMailResponse
}
SendOK handles this case with default header values.
SendOK send o k
type SendParams ¶
type SendParams struct { /*Body*/ Body *models.MailerMail Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendParams contains all the parameters to send to the API endpoint for the send operation typically these are written to a http.Request
func NewSendParams ¶
func NewSendParams() *SendParams
NewSendParams creates a new SendParams object with the default values initialized.
func NewSendParamsWithContext ¶
func NewSendParamsWithContext(ctx context.Context) *SendParams
NewSendParamsWithContext creates a new SendParams object with the default values initialized, and the ability to set a context for a request
func NewSendParamsWithHTTPClient ¶
func NewSendParamsWithHTTPClient(client *http.Client) *SendParams
NewSendParamsWithHTTPClient creates a new SendParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSendParamsWithTimeout ¶
func NewSendParamsWithTimeout(timeout time.Duration) *SendParams
NewSendParamsWithTimeout creates a new SendParams object with the default values initialized, and the ability to set a timeout on a request
func (*SendParams) SetBody ¶
func (o *SendParams) SetBody(body *models.MailerMail)
SetBody adds the body to the send params
func (*SendParams) SetContext ¶
func (o *SendParams) SetContext(ctx context.Context)
SetContext adds the context to the send params
func (*SendParams) SetHTTPClient ¶
func (o *SendParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send params
func (*SendParams) SetTimeout ¶
func (o *SendParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send params
func (*SendParams) WithBody ¶
func (o *SendParams) WithBody(body *models.MailerMail) *SendParams
WithBody adds the body to the send params
func (*SendParams) WithContext ¶
func (o *SendParams) WithContext(ctx context.Context) *SendParams
WithContext adds the context to the send params
func (*SendParams) WithHTTPClient ¶
func (o *SendParams) WithHTTPClient(client *http.Client) *SendParams
WithHTTPClient adds the HTTPClient to the send params
func (*SendParams) WithTimeout ¶
func (o *SendParams) WithTimeout(timeout time.Duration) *SendParams
WithTimeout adds the timeout to the send params
func (*SendParams) WriteToRequest ¶
func (o *SendParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendReader ¶
type SendReader struct {
// contains filtered or unexported fields
}
SendReader is a Reader for the Send structure.
func (*SendReader) ReadResponse ¶
func (o *SendReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.