message

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2019 License: MIT Imports: 11 Imported by: 11

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

func New

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

New creates a new message API client.

func (*Client) CreateMessage

func (a *Client) CreateMessage(params *CreateMessageParams, authInfo runtime.ClientAuthInfoWriter) (*CreateMessageOK, error)

CreateMessage creates a message

__NOTE__: This API ONLY accepts an application token as authentication.

func (*Client) DeleteAppMessages

func (a *Client) DeleteAppMessages(params *DeleteAppMessagesParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteAppMessagesOK, error)

DeleteAppMessages deletes all messages from a specific application

func (*Client) DeleteMessage

func (a *Client) DeleteMessage(params *DeleteMessageParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteMessageOK, error)

DeleteMessage deletes a message with an id

func (*Client) DeleteMessages

func (a *Client) DeleteMessages(params *DeleteMessagesParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteMessagesOK, error)

DeleteMessages deletes all messages

func (*Client) GetAppMessages

func (a *Client) GetAppMessages(params *GetAppMessagesParams, authInfo runtime.ClientAuthInfoWriter) (*GetAppMessagesOK, error)

GetAppMessages returns all messages from a specific application

func (*Client) GetMessages

func (a *Client) GetMessages(params *GetMessagesParams, authInfo runtime.ClientAuthInfoWriter) (*GetMessagesOK, error)

GetMessages returns all messages

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) StreamMessages

func (a *Client) StreamMessages(params *StreamMessagesParams, authInfo runtime.ClientAuthInfoWriter) (*StreamMessagesOK, error)

StreamMessages websockets return newly created messages

type CreateMessageBadRequest

type CreateMessageBadRequest struct {
	Payload *models.Error
}

CreateMessageBadRequest handles this case with default header values.

Bad Request

func NewCreateMessageBadRequest

func NewCreateMessageBadRequest() *CreateMessageBadRequest

NewCreateMessageBadRequest creates a CreateMessageBadRequest with default headers values

func (*CreateMessageBadRequest) Error

func (o *CreateMessageBadRequest) Error() string

type CreateMessageForbidden

type CreateMessageForbidden struct {
	Payload *models.Error
}

CreateMessageForbidden handles this case with default header values.

Forbidden

func NewCreateMessageForbidden

func NewCreateMessageForbidden() *CreateMessageForbidden

NewCreateMessageForbidden creates a CreateMessageForbidden with default headers values

func (*CreateMessageForbidden) Error

func (o *CreateMessageForbidden) Error() string

type CreateMessageOK

type CreateMessageOK struct {
	Payload *models.MessageExternal
}

CreateMessageOK handles this case with default header values.

Ok

func NewCreateMessageOK

func NewCreateMessageOK() *CreateMessageOK

NewCreateMessageOK creates a CreateMessageOK with default headers values

func (*CreateMessageOK) Error

func (o *CreateMessageOK) Error() string

type CreateMessageParams

type CreateMessageParams struct {

	/*Body
	  the message to add

	*/
	Body *models.MessageExternal

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

CreateMessageParams contains all the parameters to send to the API endpoint for the create message operation typically these are written to a http.Request

func NewCreateMessageParams

func NewCreateMessageParams() *CreateMessageParams

NewCreateMessageParams creates a new CreateMessageParams object with the default values initialized.

func NewCreateMessageParamsWithContext

func NewCreateMessageParamsWithContext(ctx context.Context) *CreateMessageParams

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

func NewCreateMessageParamsWithHTTPClient

func NewCreateMessageParamsWithHTTPClient(client *http.Client) *CreateMessageParams

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

func NewCreateMessageParamsWithTimeout

func NewCreateMessageParamsWithTimeout(timeout time.Duration) *CreateMessageParams

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

func (*CreateMessageParams) SetBody

func (o *CreateMessageParams) SetBody(body *models.MessageExternal)

SetBody adds the body to the create message params

func (*CreateMessageParams) SetContext

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

SetContext adds the context to the create message params

func (*CreateMessageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create message params

func (*CreateMessageParams) SetTimeout

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

SetTimeout adds the timeout to the create message params

func (*CreateMessageParams) WithBody

WithBody adds the body to the create message params

func (*CreateMessageParams) WithContext

WithContext adds the context to the create message params

func (*CreateMessageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create message params

func (*CreateMessageParams) WithTimeout

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

WithTimeout adds the timeout to the create message params

func (*CreateMessageParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateMessageReader

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

CreateMessageReader is a Reader for the CreateMessage structure.

func (*CreateMessageReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateMessageUnauthorized

type CreateMessageUnauthorized struct {
	Payload *models.Error
}

CreateMessageUnauthorized handles this case with default header values.

Unauthorized

func NewCreateMessageUnauthorized

func NewCreateMessageUnauthorized() *CreateMessageUnauthorized

NewCreateMessageUnauthorized creates a CreateMessageUnauthorized with default headers values

func (*CreateMessageUnauthorized) Error

func (o *CreateMessageUnauthorized) Error() string

type DeleteAppMessagesBadRequest

type DeleteAppMessagesBadRequest struct {
	Payload *models.Error
}

DeleteAppMessagesBadRequest handles this case with default header values.

Bad Request

func NewDeleteAppMessagesBadRequest

func NewDeleteAppMessagesBadRequest() *DeleteAppMessagesBadRequest

NewDeleteAppMessagesBadRequest creates a DeleteAppMessagesBadRequest with default headers values

func (*DeleteAppMessagesBadRequest) Error

type DeleteAppMessagesForbidden

type DeleteAppMessagesForbidden struct {
	Payload *models.Error
}

DeleteAppMessagesForbidden handles this case with default header values.

Forbidden

func NewDeleteAppMessagesForbidden

func NewDeleteAppMessagesForbidden() *DeleteAppMessagesForbidden

NewDeleteAppMessagesForbidden creates a DeleteAppMessagesForbidden with default headers values

func (*DeleteAppMessagesForbidden) Error

type DeleteAppMessagesNotFound

type DeleteAppMessagesNotFound struct {
	Payload *models.Error
}

DeleteAppMessagesNotFound handles this case with default header values.

Not Found

func NewDeleteAppMessagesNotFound

func NewDeleteAppMessagesNotFound() *DeleteAppMessagesNotFound

NewDeleteAppMessagesNotFound creates a DeleteAppMessagesNotFound with default headers values

func (*DeleteAppMessagesNotFound) Error

func (o *DeleteAppMessagesNotFound) Error() string

type DeleteAppMessagesOK

type DeleteAppMessagesOK struct {
}

DeleteAppMessagesOK handles this case with default header values.

Ok

func NewDeleteAppMessagesOK

func NewDeleteAppMessagesOK() *DeleteAppMessagesOK

NewDeleteAppMessagesOK creates a DeleteAppMessagesOK with default headers values

func (*DeleteAppMessagesOK) Error

func (o *DeleteAppMessagesOK) Error() string

type DeleteAppMessagesParams

type DeleteAppMessagesParams struct {

	/*ID
	  the application id

	*/
	ID int64

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

DeleteAppMessagesParams contains all the parameters to send to the API endpoint for the delete app messages operation typically these are written to a http.Request

func NewDeleteAppMessagesParams

func NewDeleteAppMessagesParams() *DeleteAppMessagesParams

NewDeleteAppMessagesParams creates a new DeleteAppMessagesParams object with the default values initialized.

func NewDeleteAppMessagesParamsWithContext

func NewDeleteAppMessagesParamsWithContext(ctx context.Context) *DeleteAppMessagesParams

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

func NewDeleteAppMessagesParamsWithHTTPClient

func NewDeleteAppMessagesParamsWithHTTPClient(client *http.Client) *DeleteAppMessagesParams

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

func NewDeleteAppMessagesParamsWithTimeout

func NewDeleteAppMessagesParamsWithTimeout(timeout time.Duration) *DeleteAppMessagesParams

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

func (*DeleteAppMessagesParams) SetContext

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

SetContext adds the context to the delete app messages params

func (*DeleteAppMessagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete app messages params

func (*DeleteAppMessagesParams) SetID

func (o *DeleteAppMessagesParams) SetID(id int64)

SetID adds the id to the delete app messages params

func (*DeleteAppMessagesParams) SetTimeout

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

SetTimeout adds the timeout to the delete app messages params

func (*DeleteAppMessagesParams) WithContext

WithContext adds the context to the delete app messages params

func (*DeleteAppMessagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete app messages params

func (*DeleteAppMessagesParams) WithID

WithID adds the id to the delete app messages params

func (*DeleteAppMessagesParams) WithTimeout

WithTimeout adds the timeout to the delete app messages params

func (*DeleteAppMessagesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteAppMessagesReader

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

DeleteAppMessagesReader is a Reader for the DeleteAppMessages structure.

func (*DeleteAppMessagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteAppMessagesUnauthorized

type DeleteAppMessagesUnauthorized struct {
	Payload *models.Error
}

DeleteAppMessagesUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteAppMessagesUnauthorized

func NewDeleteAppMessagesUnauthorized() *DeleteAppMessagesUnauthorized

NewDeleteAppMessagesUnauthorized creates a DeleteAppMessagesUnauthorized with default headers values

func (*DeleteAppMessagesUnauthorized) Error

type DeleteMessageBadRequest

type DeleteMessageBadRequest struct {
	Payload *models.Error
}

DeleteMessageBadRequest handles this case with default header values.

Bad Request

func NewDeleteMessageBadRequest

func NewDeleteMessageBadRequest() *DeleteMessageBadRequest

NewDeleteMessageBadRequest creates a DeleteMessageBadRequest with default headers values

func (*DeleteMessageBadRequest) Error

func (o *DeleteMessageBadRequest) Error() string

type DeleteMessageForbidden

type DeleteMessageForbidden struct {
	Payload *models.Error
}

DeleteMessageForbidden handles this case with default header values.

Forbidden

func NewDeleteMessageForbidden

func NewDeleteMessageForbidden() *DeleteMessageForbidden

NewDeleteMessageForbidden creates a DeleteMessageForbidden with default headers values

func (*DeleteMessageForbidden) Error

func (o *DeleteMessageForbidden) Error() string

type DeleteMessageNotFound

type DeleteMessageNotFound struct {
	Payload *models.Error
}

DeleteMessageNotFound handles this case with default header values.

Not Found

func NewDeleteMessageNotFound

func NewDeleteMessageNotFound() *DeleteMessageNotFound

NewDeleteMessageNotFound creates a DeleteMessageNotFound with default headers values

func (*DeleteMessageNotFound) Error

func (o *DeleteMessageNotFound) Error() string

type DeleteMessageOK

type DeleteMessageOK struct {
}

DeleteMessageOK handles this case with default header values.

Ok

func NewDeleteMessageOK

func NewDeleteMessageOK() *DeleteMessageOK

NewDeleteMessageOK creates a DeleteMessageOK with default headers values

func (*DeleteMessageOK) Error

func (o *DeleteMessageOK) Error() string

type DeleteMessageParams

type DeleteMessageParams struct {

	/*ID
	  the message id

	*/
	ID int64

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

DeleteMessageParams contains all the parameters to send to the API endpoint for the delete message operation typically these are written to a http.Request

func NewDeleteMessageParams

func NewDeleteMessageParams() *DeleteMessageParams

NewDeleteMessageParams creates a new DeleteMessageParams object with the default values initialized.

func NewDeleteMessageParamsWithContext

func NewDeleteMessageParamsWithContext(ctx context.Context) *DeleteMessageParams

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

func NewDeleteMessageParamsWithHTTPClient

func NewDeleteMessageParamsWithHTTPClient(client *http.Client) *DeleteMessageParams

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

func NewDeleteMessageParamsWithTimeout

func NewDeleteMessageParamsWithTimeout(timeout time.Duration) *DeleteMessageParams

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

func (*DeleteMessageParams) SetContext

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

SetContext adds the context to the delete message params

func (*DeleteMessageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete message params

func (*DeleteMessageParams) SetID

func (o *DeleteMessageParams) SetID(id int64)

SetID adds the id to the delete message params

func (*DeleteMessageParams) SetTimeout

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

SetTimeout adds the timeout to the delete message params

func (*DeleteMessageParams) WithContext

WithContext adds the context to the delete message params

func (*DeleteMessageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete message params

func (*DeleteMessageParams) WithID

WithID adds the id to the delete message params

func (*DeleteMessageParams) WithTimeout

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

WithTimeout adds the timeout to the delete message params

func (*DeleteMessageParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteMessageReader

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

DeleteMessageReader is a Reader for the DeleteMessage structure.

func (*DeleteMessageReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMessageUnauthorized

type DeleteMessageUnauthorized struct {
	Payload *models.Error
}

DeleteMessageUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteMessageUnauthorized

func NewDeleteMessageUnauthorized() *DeleteMessageUnauthorized

NewDeleteMessageUnauthorized creates a DeleteMessageUnauthorized with default headers values

func (*DeleteMessageUnauthorized) Error

func (o *DeleteMessageUnauthorized) Error() string

type DeleteMessagesForbidden

type DeleteMessagesForbidden struct {
	Payload *models.Error
}

DeleteMessagesForbidden handles this case with default header values.

Forbidden

func NewDeleteMessagesForbidden

func NewDeleteMessagesForbidden() *DeleteMessagesForbidden

NewDeleteMessagesForbidden creates a DeleteMessagesForbidden with default headers values

func (*DeleteMessagesForbidden) Error

func (o *DeleteMessagesForbidden) Error() string

type DeleteMessagesOK

type DeleteMessagesOK struct {
}

DeleteMessagesOK handles this case with default header values.

Ok

func NewDeleteMessagesOK

func NewDeleteMessagesOK() *DeleteMessagesOK

NewDeleteMessagesOK creates a DeleteMessagesOK with default headers values

func (*DeleteMessagesOK) Error

func (o *DeleteMessagesOK) Error() string

type DeleteMessagesParams

type DeleteMessagesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DeleteMessagesParams contains all the parameters to send to the API endpoint for the delete messages operation typically these are written to a http.Request

func NewDeleteMessagesParams

func NewDeleteMessagesParams() *DeleteMessagesParams

NewDeleteMessagesParams creates a new DeleteMessagesParams object with the default values initialized.

func NewDeleteMessagesParamsWithContext

func NewDeleteMessagesParamsWithContext(ctx context.Context) *DeleteMessagesParams

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

func NewDeleteMessagesParamsWithHTTPClient

func NewDeleteMessagesParamsWithHTTPClient(client *http.Client) *DeleteMessagesParams

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

func NewDeleteMessagesParamsWithTimeout

func NewDeleteMessagesParamsWithTimeout(timeout time.Duration) *DeleteMessagesParams

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

func (*DeleteMessagesParams) SetContext

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

SetContext adds the context to the delete messages params

func (*DeleteMessagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete messages params

func (*DeleteMessagesParams) SetTimeout

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

SetTimeout adds the timeout to the delete messages params

func (*DeleteMessagesParams) WithContext

WithContext adds the context to the delete messages params

func (*DeleteMessagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete messages params

func (*DeleteMessagesParams) WithTimeout

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

WithTimeout adds the timeout to the delete messages params

func (*DeleteMessagesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteMessagesReader

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

DeleteMessagesReader is a Reader for the DeleteMessages structure.

func (*DeleteMessagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteMessagesUnauthorized

type DeleteMessagesUnauthorized struct {
	Payload *models.Error
}

DeleteMessagesUnauthorized handles this case with default header values.

Unauthorized

func NewDeleteMessagesUnauthorized

func NewDeleteMessagesUnauthorized() *DeleteMessagesUnauthorized

NewDeleteMessagesUnauthorized creates a DeleteMessagesUnauthorized with default headers values

func (*DeleteMessagesUnauthorized) Error

type GetAppMessagesBadRequest

type GetAppMessagesBadRequest struct {
	Payload *models.Error
}

GetAppMessagesBadRequest handles this case with default header values.

Bad Request

func NewGetAppMessagesBadRequest

func NewGetAppMessagesBadRequest() *GetAppMessagesBadRequest

NewGetAppMessagesBadRequest creates a GetAppMessagesBadRequest with default headers values

func (*GetAppMessagesBadRequest) Error

func (o *GetAppMessagesBadRequest) Error() string

type GetAppMessagesForbidden

type GetAppMessagesForbidden struct {
	Payload *models.Error
}

GetAppMessagesForbidden handles this case with default header values.

Forbidden

func NewGetAppMessagesForbidden

func NewGetAppMessagesForbidden() *GetAppMessagesForbidden

NewGetAppMessagesForbidden creates a GetAppMessagesForbidden with default headers values

func (*GetAppMessagesForbidden) Error

func (o *GetAppMessagesForbidden) Error() string

type GetAppMessagesNotFound

type GetAppMessagesNotFound struct {
	Payload *models.Error
}

GetAppMessagesNotFound handles this case with default header values.

Not Found

func NewGetAppMessagesNotFound

func NewGetAppMessagesNotFound() *GetAppMessagesNotFound

NewGetAppMessagesNotFound creates a GetAppMessagesNotFound with default headers values

func (*GetAppMessagesNotFound) Error

func (o *GetAppMessagesNotFound) Error() string

type GetAppMessagesOK

type GetAppMessagesOK struct {
	Payload *models.PagedMessages
}

GetAppMessagesOK handles this case with default header values.

Ok

func NewGetAppMessagesOK

func NewGetAppMessagesOK() *GetAppMessagesOK

NewGetAppMessagesOK creates a GetAppMessagesOK with default headers values

func (*GetAppMessagesOK) Error

func (o *GetAppMessagesOK) Error() string

type GetAppMessagesParams

type GetAppMessagesParams struct {

	/*ID
	  the application id

	*/
	ID int64
	/*Limit
	  the maximal amount of messages to return

	*/
	Limit *int64
	/*Since
	  return all messages with an ID less than this value

	*/
	Since *int64

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

GetAppMessagesParams contains all the parameters to send to the API endpoint for the get app messages operation typically these are written to a http.Request

func NewGetAppMessagesParams

func NewGetAppMessagesParams() *GetAppMessagesParams

NewGetAppMessagesParams creates a new GetAppMessagesParams object with the default values initialized.

func NewGetAppMessagesParamsWithContext

func NewGetAppMessagesParamsWithContext(ctx context.Context) *GetAppMessagesParams

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

func NewGetAppMessagesParamsWithHTTPClient

func NewGetAppMessagesParamsWithHTTPClient(client *http.Client) *GetAppMessagesParams

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

func NewGetAppMessagesParamsWithTimeout

func NewGetAppMessagesParamsWithTimeout(timeout time.Duration) *GetAppMessagesParams

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

func (*GetAppMessagesParams) SetContext

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

SetContext adds the context to the get app messages params

func (*GetAppMessagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get app messages params

func (*GetAppMessagesParams) SetID

func (o *GetAppMessagesParams) SetID(id int64)

SetID adds the id to the get app messages params

func (*GetAppMessagesParams) SetLimit

func (o *GetAppMessagesParams) SetLimit(limit *int64)

SetLimit adds the limit to the get app messages params

func (*GetAppMessagesParams) SetSince

func (o *GetAppMessagesParams) SetSince(since *int64)

SetSince adds the since to the get app messages params

func (*GetAppMessagesParams) SetTimeout

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

SetTimeout adds the timeout to the get app messages params

func (*GetAppMessagesParams) WithContext

WithContext adds the context to the get app messages params

func (*GetAppMessagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get app messages params

func (*GetAppMessagesParams) WithID

WithID adds the id to the get app messages params

func (*GetAppMessagesParams) WithLimit

func (o *GetAppMessagesParams) WithLimit(limit *int64) *GetAppMessagesParams

WithLimit adds the limit to the get app messages params

func (*GetAppMessagesParams) WithSince

func (o *GetAppMessagesParams) WithSince(since *int64) *GetAppMessagesParams

WithSince adds the since to the get app messages params

func (*GetAppMessagesParams) WithTimeout

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

WithTimeout adds the timeout to the get app messages params

func (*GetAppMessagesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAppMessagesReader

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

GetAppMessagesReader is a Reader for the GetAppMessages structure.

func (*GetAppMessagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAppMessagesUnauthorized

type GetAppMessagesUnauthorized struct {
	Payload *models.Error
}

GetAppMessagesUnauthorized handles this case with default header values.

Unauthorized

func NewGetAppMessagesUnauthorized

func NewGetAppMessagesUnauthorized() *GetAppMessagesUnauthorized

NewGetAppMessagesUnauthorized creates a GetAppMessagesUnauthorized with default headers values

func (*GetAppMessagesUnauthorized) Error

type GetMessagesBadRequest

type GetMessagesBadRequest struct {
	Payload *models.Error
}

GetMessagesBadRequest handles this case with default header values.

Bad Request

func NewGetMessagesBadRequest

func NewGetMessagesBadRequest() *GetMessagesBadRequest

NewGetMessagesBadRequest creates a GetMessagesBadRequest with default headers values

func (*GetMessagesBadRequest) Error

func (o *GetMessagesBadRequest) Error() string

type GetMessagesForbidden

type GetMessagesForbidden struct {
	Payload *models.Error
}

GetMessagesForbidden handles this case with default header values.

Forbidden

func NewGetMessagesForbidden

func NewGetMessagesForbidden() *GetMessagesForbidden

NewGetMessagesForbidden creates a GetMessagesForbidden with default headers values

func (*GetMessagesForbidden) Error

func (o *GetMessagesForbidden) Error() string

type GetMessagesOK

type GetMessagesOK struct {
	Payload *models.PagedMessages
}

GetMessagesOK handles this case with default header values.

Ok

func NewGetMessagesOK

func NewGetMessagesOK() *GetMessagesOK

NewGetMessagesOK creates a GetMessagesOK with default headers values

func (*GetMessagesOK) Error

func (o *GetMessagesOK) Error() string

type GetMessagesParams

type GetMessagesParams struct {

	/*Limit
	  the maximal amount of messages to return

	*/
	Limit *int64
	/*Since
	  return all messages with an ID less than this value

	*/
	Since *int64

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

GetMessagesParams contains all the parameters to send to the API endpoint for the get messages operation typically these are written to a http.Request

func NewGetMessagesParams

func NewGetMessagesParams() *GetMessagesParams

NewGetMessagesParams creates a new GetMessagesParams object with the default values initialized.

func NewGetMessagesParamsWithContext

func NewGetMessagesParamsWithContext(ctx context.Context) *GetMessagesParams

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

func NewGetMessagesParamsWithHTTPClient

func NewGetMessagesParamsWithHTTPClient(client *http.Client) *GetMessagesParams

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

func NewGetMessagesParamsWithTimeout

func NewGetMessagesParamsWithTimeout(timeout time.Duration) *GetMessagesParams

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

func (*GetMessagesParams) SetContext

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

SetContext adds the context to the get messages params

func (*GetMessagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get messages params

func (*GetMessagesParams) SetLimit

func (o *GetMessagesParams) SetLimit(limit *int64)

SetLimit adds the limit to the get messages params

func (*GetMessagesParams) SetSince

func (o *GetMessagesParams) SetSince(since *int64)

SetSince adds the since to the get messages params

func (*GetMessagesParams) SetTimeout

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

SetTimeout adds the timeout to the get messages params

func (*GetMessagesParams) WithContext

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

WithContext adds the context to the get messages params

func (*GetMessagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get messages params

func (*GetMessagesParams) WithLimit

func (o *GetMessagesParams) WithLimit(limit *int64) *GetMessagesParams

WithLimit adds the limit to the get messages params

func (*GetMessagesParams) WithSince

func (o *GetMessagesParams) WithSince(since *int64) *GetMessagesParams

WithSince adds the since to the get messages params

func (*GetMessagesParams) WithTimeout

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

WithTimeout adds the timeout to the get messages params

func (*GetMessagesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetMessagesReader

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

GetMessagesReader is a Reader for the GetMessages structure.

func (*GetMessagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetMessagesUnauthorized

type GetMessagesUnauthorized struct {
	Payload *models.Error
}

GetMessagesUnauthorized handles this case with default header values.

Unauthorized

func NewGetMessagesUnauthorized

func NewGetMessagesUnauthorized() *GetMessagesUnauthorized

NewGetMessagesUnauthorized creates a GetMessagesUnauthorized with default headers values

func (*GetMessagesUnauthorized) Error

func (o *GetMessagesUnauthorized) Error() string

type StreamMessagesBadRequest

type StreamMessagesBadRequest struct {
	Payload *models.Error
}

StreamMessagesBadRequest handles this case with default header values.

Bad Request

func NewStreamMessagesBadRequest

func NewStreamMessagesBadRequest() *StreamMessagesBadRequest

NewStreamMessagesBadRequest creates a StreamMessagesBadRequest with default headers values

func (*StreamMessagesBadRequest) Error

func (o *StreamMessagesBadRequest) Error() string

type StreamMessagesForbidden

type StreamMessagesForbidden struct {
	Payload *models.Error
}

StreamMessagesForbidden handles this case with default header values.

Forbidden

func NewStreamMessagesForbidden

func NewStreamMessagesForbidden() *StreamMessagesForbidden

NewStreamMessagesForbidden creates a StreamMessagesForbidden with default headers values

func (*StreamMessagesForbidden) Error

func (o *StreamMessagesForbidden) Error() string

type StreamMessagesInternalServerError

type StreamMessagesInternalServerError struct {
	Payload *models.Error
}

StreamMessagesInternalServerError handles this case with default header values.

Server Error

func NewStreamMessagesInternalServerError

func NewStreamMessagesInternalServerError() *StreamMessagesInternalServerError

NewStreamMessagesInternalServerError creates a StreamMessagesInternalServerError with default headers values

func (*StreamMessagesInternalServerError) Error

type StreamMessagesOK

type StreamMessagesOK struct {
	Payload *models.MessageExternal
}

StreamMessagesOK handles this case with default header values.

Ok

func NewStreamMessagesOK

func NewStreamMessagesOK() *StreamMessagesOK

NewStreamMessagesOK creates a StreamMessagesOK with default headers values

func (*StreamMessagesOK) Error

func (o *StreamMessagesOK) Error() string

type StreamMessagesParams

type StreamMessagesParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

StreamMessagesParams contains all the parameters to send to the API endpoint for the stream messages operation typically these are written to a http.Request

func NewStreamMessagesParams

func NewStreamMessagesParams() *StreamMessagesParams

NewStreamMessagesParams creates a new StreamMessagesParams object with the default values initialized.

func NewStreamMessagesParamsWithContext

func NewStreamMessagesParamsWithContext(ctx context.Context) *StreamMessagesParams

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

func NewStreamMessagesParamsWithHTTPClient

func NewStreamMessagesParamsWithHTTPClient(client *http.Client) *StreamMessagesParams

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

func NewStreamMessagesParamsWithTimeout

func NewStreamMessagesParamsWithTimeout(timeout time.Duration) *StreamMessagesParams

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

func (*StreamMessagesParams) SetContext

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

SetContext adds the context to the stream messages params

func (*StreamMessagesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the stream messages params

func (*StreamMessagesParams) SetTimeout

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

SetTimeout adds the timeout to the stream messages params

func (*StreamMessagesParams) WithContext

WithContext adds the context to the stream messages params

func (*StreamMessagesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the stream messages params

func (*StreamMessagesParams) WithTimeout

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

WithTimeout adds the timeout to the stream messages params

func (*StreamMessagesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type StreamMessagesReader

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

StreamMessagesReader is a Reader for the StreamMessages structure.

func (*StreamMessagesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type StreamMessagesUnauthorized

type StreamMessagesUnauthorized struct {
	Payload *models.Error
}

StreamMessagesUnauthorized handles this case with default header values.

Unauthorized

func NewStreamMessagesUnauthorized

func NewStreamMessagesUnauthorized() *StreamMessagesUnauthorized

NewStreamMessagesUnauthorized creates a StreamMessagesUnauthorized with default headers values

func (*StreamMessagesUnauthorized) Error

Jump to

Keyboard shortcuts

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