chat

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2020 License: LGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatGetBadRequest

type ChatGetBadRequest struct {
	Payload *models.Error
}

ChatGetBadRequest handles this case with default header values.

Parameter Error

func NewChatGetBadRequest

func NewChatGetBadRequest() *ChatGetBadRequest

NewChatGetBadRequest creates a ChatGetBadRequest with default headers values

func (*ChatGetBadRequest) Error

func (o *ChatGetBadRequest) Error() string

type ChatGetChannelsBadRequest

type ChatGetChannelsBadRequest struct {
	Payload *models.Error
}

ChatGetChannelsBadRequest handles this case with default header values.

Parameter Error

func NewChatGetChannelsBadRequest

func NewChatGetChannelsBadRequest() *ChatGetChannelsBadRequest

NewChatGetChannelsBadRequest creates a ChatGetChannelsBadRequest with default headers values

func (*ChatGetChannelsBadRequest) Error

func (o *ChatGetChannelsBadRequest) Error() string

type ChatGetChannelsNotFound

type ChatGetChannelsNotFound struct {
	Payload *models.Error
}

ChatGetChannelsNotFound handles this case with default header values.

Not Found

func NewChatGetChannelsNotFound

func NewChatGetChannelsNotFound() *ChatGetChannelsNotFound

NewChatGetChannelsNotFound creates a ChatGetChannelsNotFound with default headers values

func (*ChatGetChannelsNotFound) Error

func (o *ChatGetChannelsNotFound) Error() string

type ChatGetChannelsOK

type ChatGetChannelsOK struct {
	Payload []*models.ChatChannel
}

ChatGetChannelsOK handles this case with default header values.

Request was successful

func NewChatGetChannelsOK

func NewChatGetChannelsOK() *ChatGetChannelsOK

NewChatGetChannelsOK creates a ChatGetChannelsOK with default headers values

func (*ChatGetChannelsOK) Error

func (o *ChatGetChannelsOK) Error() string

type ChatGetChannelsParams

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

ChatGetChannelsParams contains all the parameters to send to the API endpoint for the chat get channels operation typically these are written to a http.Request

func NewChatGetChannelsParams

func NewChatGetChannelsParams() *ChatGetChannelsParams

NewChatGetChannelsParams creates a new ChatGetChannelsParams object with the default values initialized.

func NewChatGetChannelsParamsWithContext

func NewChatGetChannelsParamsWithContext(ctx context.Context) *ChatGetChannelsParams

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

func NewChatGetChannelsParamsWithHTTPClient

func NewChatGetChannelsParamsWithHTTPClient(client *http.Client) *ChatGetChannelsParams

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

func NewChatGetChannelsParamsWithTimeout

func NewChatGetChannelsParamsWithTimeout(timeout time.Duration) *ChatGetChannelsParams

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

func (*ChatGetChannelsParams) SetContext

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

SetContext adds the context to the chat get channels params

func (*ChatGetChannelsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the chat get channels params

func (*ChatGetChannelsParams) SetTimeout

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

SetTimeout adds the timeout to the chat get channels params

func (*ChatGetChannelsParams) WithContext

WithContext adds the context to the chat get channels params

func (*ChatGetChannelsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the chat get channels params

func (*ChatGetChannelsParams) WithTimeout

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

WithTimeout adds the timeout to the chat get channels params

func (*ChatGetChannelsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ChatGetChannelsReader

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

ChatGetChannelsReader is a Reader for the ChatGetChannels structure.

func (*ChatGetChannelsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ChatGetChannelsUnauthorized

type ChatGetChannelsUnauthorized struct {
	Payload *models.Error
}

ChatGetChannelsUnauthorized handles this case with default header values.

Unauthorized

func NewChatGetChannelsUnauthorized

func NewChatGetChannelsUnauthorized() *ChatGetChannelsUnauthorized

NewChatGetChannelsUnauthorized creates a ChatGetChannelsUnauthorized with default headers values

func (*ChatGetChannelsUnauthorized) Error

type ChatGetConnectedBadRequest

type ChatGetConnectedBadRequest struct {
	Payload *models.Error
}

ChatGetConnectedBadRequest handles this case with default header values.

Parameter Error

func NewChatGetConnectedBadRequest

func NewChatGetConnectedBadRequest() *ChatGetConnectedBadRequest

NewChatGetConnectedBadRequest creates a ChatGetConnectedBadRequest with default headers values

func (*ChatGetConnectedBadRequest) Error

type ChatGetConnectedNotFound

type ChatGetConnectedNotFound struct {
	Payload *models.Error
}

ChatGetConnectedNotFound handles this case with default header values.

Not Found

func NewChatGetConnectedNotFound

func NewChatGetConnectedNotFound() *ChatGetConnectedNotFound

NewChatGetConnectedNotFound creates a ChatGetConnectedNotFound with default headers values

func (*ChatGetConnectedNotFound) Error

func (o *ChatGetConnectedNotFound) Error() string

type ChatGetConnectedOK

type ChatGetConnectedOK struct {
	Payload *models.ConnectedUsers
}

ChatGetConnectedOK handles this case with default header values.

Request was successful

func NewChatGetConnectedOK

func NewChatGetConnectedOK() *ChatGetConnectedOK

NewChatGetConnectedOK creates a ChatGetConnectedOK with default headers values

func (*ChatGetConnectedOK) Error

func (o *ChatGetConnectedOK) Error() string

type ChatGetConnectedParams

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

ChatGetConnectedParams contains all the parameters to send to the API endpoint for the chat get connected operation typically these are written to a http.Request

func NewChatGetConnectedParams

func NewChatGetConnectedParams() *ChatGetConnectedParams

NewChatGetConnectedParams creates a new ChatGetConnectedParams object with the default values initialized.

func NewChatGetConnectedParamsWithContext

func NewChatGetConnectedParamsWithContext(ctx context.Context) *ChatGetConnectedParams

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

func NewChatGetConnectedParamsWithHTTPClient

func NewChatGetConnectedParamsWithHTTPClient(client *http.Client) *ChatGetConnectedParams

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

func NewChatGetConnectedParamsWithTimeout

func NewChatGetConnectedParamsWithTimeout(timeout time.Duration) *ChatGetConnectedParams

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

func (*ChatGetConnectedParams) SetContext

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

SetContext adds the context to the chat get connected params

func (*ChatGetConnectedParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the chat get connected params

func (*ChatGetConnectedParams) SetTimeout

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

SetTimeout adds the timeout to the chat get connected params

func (*ChatGetConnectedParams) WithContext

WithContext adds the context to the chat get connected params

func (*ChatGetConnectedParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the chat get connected params

func (*ChatGetConnectedParams) WithTimeout

WithTimeout adds the timeout to the chat get connected params

func (*ChatGetConnectedParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ChatGetConnectedReader

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

ChatGetConnectedReader is a Reader for the ChatGetConnected structure.

func (*ChatGetConnectedReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ChatGetConnectedUnauthorized

type ChatGetConnectedUnauthorized struct {
	Payload *models.Error
}

ChatGetConnectedUnauthorized handles this case with default header values.

Unauthorized

func NewChatGetConnectedUnauthorized

func NewChatGetConnectedUnauthorized() *ChatGetConnectedUnauthorized

NewChatGetConnectedUnauthorized creates a ChatGetConnectedUnauthorized with default headers values

func (*ChatGetConnectedUnauthorized) Error

type ChatGetNotFound

type ChatGetNotFound struct {
	Payload *models.Error
}

ChatGetNotFound handles this case with default header values.

Not Found

func NewChatGetNotFound

func NewChatGetNotFound() *ChatGetNotFound

NewChatGetNotFound creates a ChatGetNotFound with default headers values

func (*ChatGetNotFound) Error

func (o *ChatGetNotFound) Error() string

type ChatGetOK

type ChatGetOK struct {
	Payload []*models.Chat
}

ChatGetOK handles this case with default header values.

Request was successful

func NewChatGetOK

func NewChatGetOK() *ChatGetOK

NewChatGetOK creates a ChatGetOK with default headers values

func (*ChatGetOK) Error

func (o *ChatGetOK) Error() string

type ChatGetParams

type ChatGetParams struct {

	/*ChannelID
	  Channel id. GET /chat/channels for ids. Leave blank for all.

	*/
	ChannelID *float64
	/*Count
	  Number of results to fetch.

	*/
	Count *int32
	/*Reverse
	  If true, will sort results newest first.

	*/
	Reverse *bool
	/*Start
	  Starting ID for results.

	*/
	Start *int32

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

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

func NewChatGetParams

func NewChatGetParams() *ChatGetParams

NewChatGetParams creates a new ChatGetParams object with the default values initialized.

func NewChatGetParamsWithContext

func NewChatGetParamsWithContext(ctx context.Context) *ChatGetParams

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

func NewChatGetParamsWithHTTPClient

func NewChatGetParamsWithHTTPClient(client *http.Client) *ChatGetParams

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

func NewChatGetParamsWithTimeout

func NewChatGetParamsWithTimeout(timeout time.Duration) *ChatGetParams

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

func (*ChatGetParams) SetChannelID

func (o *ChatGetParams) SetChannelID(channelID *float64)

SetChannelID adds the channelId to the chat get params

func (*ChatGetParams) SetContext

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

SetContext adds the context to the chat get params

func (*ChatGetParams) SetCount

func (o *ChatGetParams) SetCount(count *int32)

SetCount adds the count to the chat get params

func (*ChatGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the chat get params

func (*ChatGetParams) SetReverse

func (o *ChatGetParams) SetReverse(reverse *bool)

SetReverse adds the reverse to the chat get params

func (*ChatGetParams) SetStart

func (o *ChatGetParams) SetStart(start *int32)

SetStart adds the start to the chat get params

func (*ChatGetParams) SetTimeout

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

SetTimeout adds the timeout to the chat get params

func (*ChatGetParams) WithChannelID

func (o *ChatGetParams) WithChannelID(channelID *float64) *ChatGetParams

WithChannelID adds the channelID to the chat get params

func (*ChatGetParams) WithContext

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

WithContext adds the context to the chat get params

func (*ChatGetParams) WithCount

func (o *ChatGetParams) WithCount(count *int32) *ChatGetParams

WithCount adds the count to the chat get params

func (*ChatGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the chat get params

func (*ChatGetParams) WithReverse

func (o *ChatGetParams) WithReverse(reverse *bool) *ChatGetParams

WithReverse adds the reverse to the chat get params

func (*ChatGetParams) WithStart

func (o *ChatGetParams) WithStart(start *int32) *ChatGetParams

WithStart adds the start to the chat get params

func (*ChatGetParams) WithTimeout

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

WithTimeout adds the timeout to the chat get params

func (*ChatGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ChatGetReader

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

ChatGetReader is a Reader for the ChatGet structure.

func (*ChatGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ChatGetUnauthorized

type ChatGetUnauthorized struct {
	Payload *models.Error
}

ChatGetUnauthorized handles this case with default header values.

Unauthorized

func NewChatGetUnauthorized

func NewChatGetUnauthorized() *ChatGetUnauthorized

NewChatGetUnauthorized creates a ChatGetUnauthorized with default headers values

func (*ChatGetUnauthorized) Error

func (o *ChatGetUnauthorized) Error() string

type ChatNewBadRequest

type ChatNewBadRequest struct {
	Payload *models.Error
}

ChatNewBadRequest handles this case with default header values.

Parameter Error

func NewChatNewBadRequest

func NewChatNewBadRequest() *ChatNewBadRequest

NewChatNewBadRequest creates a ChatNewBadRequest with default headers values

func (*ChatNewBadRequest) Error

func (o *ChatNewBadRequest) Error() string

type ChatNewNotFound

type ChatNewNotFound struct {
	Payload *models.Error
}

ChatNewNotFound handles this case with default header values.

Not Found

func NewChatNewNotFound

func NewChatNewNotFound() *ChatNewNotFound

NewChatNewNotFound creates a ChatNewNotFound with default headers values

func (*ChatNewNotFound) Error

func (o *ChatNewNotFound) Error() string

type ChatNewOK

type ChatNewOK struct {
	Payload *models.Chat
}

ChatNewOK handles this case with default header values.

Request was successful

func NewChatNewOK

func NewChatNewOK() *ChatNewOK

NewChatNewOK creates a ChatNewOK with default headers values

func (*ChatNewOK) Error

func (o *ChatNewOK) Error() string

type ChatNewParams

type ChatNewParams struct {

	/*ChannelID
	  Channel to post to. Default 1 (English).

	*/
	ChannelID *float64
	/*Message*/
	Message string

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

ChatNewParams contains all the parameters to send to the API endpoint for the chat new operation typically these are written to a http.Request

func NewChatNewParams

func NewChatNewParams() *ChatNewParams

NewChatNewParams creates a new ChatNewParams object with the default values initialized.

func NewChatNewParamsWithContext

func NewChatNewParamsWithContext(ctx context.Context) *ChatNewParams

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

func NewChatNewParamsWithHTTPClient

func NewChatNewParamsWithHTTPClient(client *http.Client) *ChatNewParams

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

func NewChatNewParamsWithTimeout

func NewChatNewParamsWithTimeout(timeout time.Duration) *ChatNewParams

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

func (*ChatNewParams) SetChannelID

func (o *ChatNewParams) SetChannelID(channelID *float64)

SetChannelID adds the channelId to the chat new params

func (*ChatNewParams) SetContext

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

SetContext adds the context to the chat new params

func (*ChatNewParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the chat new params

func (*ChatNewParams) SetMessage

func (o *ChatNewParams) SetMessage(message string)

SetMessage adds the message to the chat new params

func (*ChatNewParams) SetTimeout

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

SetTimeout adds the timeout to the chat new params

func (*ChatNewParams) WithChannelID

func (o *ChatNewParams) WithChannelID(channelID *float64) *ChatNewParams

WithChannelID adds the channelID to the chat new params

func (*ChatNewParams) WithContext

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

WithContext adds the context to the chat new params

func (*ChatNewParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the chat new params

func (*ChatNewParams) WithMessage

func (o *ChatNewParams) WithMessage(message string) *ChatNewParams

WithMessage adds the message to the chat new params

func (*ChatNewParams) WithTimeout

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

WithTimeout adds the timeout to the chat new params

func (*ChatNewParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type ChatNewReader

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

ChatNewReader is a Reader for the ChatNew structure.

func (*ChatNewReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ChatNewUnauthorized

type ChatNewUnauthorized struct {
	Payload *models.Error
}

ChatNewUnauthorized handles this case with default header values.

Unauthorized

func NewChatNewUnauthorized

func NewChatNewUnauthorized() *ChatNewUnauthorized

NewChatNewUnauthorized creates a ChatNewUnauthorized with default headers values

func (*ChatNewUnauthorized) Error

func (o *ChatNewUnauthorized) Error() string

type Client

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

Client for chat API

func New

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

New creates a new chat API client.

func (*Client) ChatGet

func (a *Client) ChatGet(params *ChatGetParams) (*ChatGetOK, error)

ChatGet gets chat messages

func (*Client) ChatGetChannels

func (a *Client) ChatGetChannels(params *ChatGetChannelsParams) (*ChatGetChannelsOK, error)

ChatGetChannels gets available channels

func (*Client) ChatGetConnected

func (a *Client) ChatGetConnected(params *ChatGetConnectedParams) (*ChatGetConnectedOK, error)

ChatGetConnected gets connected users

Returns an array with browser users in the first position and API users (bots) in the second position.

func (*Client) ChatNew

func (a *Client) ChatNew(params *ChatNewParams, authInfo runtime.ClientAuthInfoWriter) (*ChatNewOK, error)

ChatNew sends a chat message

func (*Client) SetTransport

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

SetTransport changes the transport on the client

Jump to

Keyboard shortcuts

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