email

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 email API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new email API client.

func (*Client) PostEmail

func (a *Client) PostEmail(params *PostEmailParams, authInfo runtime.ClientAuthInfoWriter) (*PostEmailOK, error)

PostEmail sends email

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type PostEmailDefault

type PostEmailDefault struct {
	Payload *models.ErrorMessage
	// contains filtered or unexported fields
}

PostEmailDefault handles this case with default header values.

generic error response

func NewPostEmailDefault

func NewPostEmailDefault(code int) *PostEmailDefault

NewPostEmailDefault creates a PostEmailDefault with default headers values

func (*PostEmailDefault) Code

func (o *PostEmailDefault) Code() int

Code gets the status code for the post email default response

func (*PostEmailDefault) Error

func (o *PostEmailDefault) Error() string

type PostEmailOK

type PostEmailOK struct {
}

PostEmailOK handles this case with default header values.

Email forwarded successfully

func NewPostEmailOK

func NewPostEmailOK() *PostEmailOK

NewPostEmailOK creates a PostEmailOK with default headers values

func (*PostEmailOK) Error

func (o *PostEmailOK) Error() string

type PostEmailParams

type PostEmailParams struct {

	/*Email
	  Email to send

	*/
	Email *models.Email

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

PostEmailParams contains all the parameters to send to the API endpoint for the post email operation typically these are written to a http.Request

func NewPostEmailParams

func NewPostEmailParams() *PostEmailParams

NewPostEmailParams creates a new PostEmailParams object with the default values initialized.

func NewPostEmailParamsWithContext

func NewPostEmailParamsWithContext(ctx context.Context) *PostEmailParams

NewPostEmailParamsWithContext creates a new PostEmailParams object with the default values initialized, and the ability to set a context for a request

func NewPostEmailParamsWithHTTPClient

func NewPostEmailParamsWithHTTPClient(client *http.Client) *PostEmailParams

NewPostEmailParamsWithHTTPClient creates a new PostEmailParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewPostEmailParamsWithTimeout

func NewPostEmailParamsWithTimeout(timeout time.Duration) *PostEmailParams

NewPostEmailParamsWithTimeout creates a new PostEmailParams object with the default values initialized, and the ability to set a timeout on a request

func (*PostEmailParams) SetContext

func (o *PostEmailParams) SetContext(ctx context.Context)

SetContext adds the context to the post email params

func (*PostEmailParams) SetEmail

func (o *PostEmailParams) SetEmail(email *models.Email)

SetEmail adds the email to the post email params

func (*PostEmailParams) SetHTTPClient

func (o *PostEmailParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the post email params

func (*PostEmailParams) SetTimeout

func (o *PostEmailParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the post email params

func (*PostEmailParams) WithContext

func (o *PostEmailParams) WithContext(ctx context.Context) *PostEmailParams

WithContext adds the context to the post email params

func (*PostEmailParams) WithEmail

func (o *PostEmailParams) WithEmail(email *models.Email) *PostEmailParams

WithEmail adds the email to the post email params

func (*PostEmailParams) WithHTTPClient

func (o *PostEmailParams) WithHTTPClient(client *http.Client) *PostEmailParams

WithHTTPClient adds the HTTPClient to the post email params

func (*PostEmailParams) WithTimeout

func (o *PostEmailParams) WithTimeout(timeout time.Duration) *PostEmailParams

WithTimeout adds the timeout to the post email params

func (*PostEmailParams) WriteToRequest

func (o *PostEmailParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type PostEmailReader

type PostEmailReader struct {
	// contains filtered or unexported fields
}

PostEmailReader is a Reader for the PostEmail structure.

func (*PostEmailReader) ReadResponse

func (o *PostEmailReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type PostEmailUnauthorized

type PostEmailUnauthorized struct {
}

PostEmailUnauthorized handles this case with default header values.

unauthorised

func NewPostEmailUnauthorized

func NewPostEmailUnauthorized() *PostEmailUnauthorized

NewPostEmailUnauthorized creates a PostEmailUnauthorized with default headers values

func (*PostEmailUnauthorized) Error

func (o *PostEmailUnauthorized) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL