Help us shape the future of Go! Take the 2026 Go Developer Survey

receiver

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: May 24, 2021 License: Apache-2.0 Imports: 10 Imported by: 6

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

func (*Client) GetReceivers

func (a *Client) GetReceivers(params *GetReceiversParams) (*GetReceiversOK, error)

GetReceivers Get list of all receivers (name of notification integrations)

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService added in v0.22.0

type ClientService interface {
	GetReceivers(params *GetReceiversParams) (*GetReceiversOK, 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 receiver API client.

type GetReceiversOK

type GetReceiversOK struct {
	Payload []*models.Receiver
}

GetReceiversOK handles this case with default header values.

Get receivers response

func NewGetReceiversOK

func NewGetReceiversOK() *GetReceiversOK

NewGetReceiversOK creates a GetReceiversOK with default headers values

func (*GetReceiversOK) Error

func (o *GetReceiversOK) Error() string

func (*GetReceiversOK) GetPayload added in v0.20.0

func (o *GetReceiversOK) GetPayload() []*models.Receiver

type GetReceiversParams

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

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

func NewGetReceiversParams

func NewGetReceiversParams() *GetReceiversParams

NewGetReceiversParams creates a new GetReceiversParams object with the default values initialized.

func NewGetReceiversParamsWithContext

func NewGetReceiversParamsWithContext(ctx context.Context) *GetReceiversParams

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

func NewGetReceiversParamsWithHTTPClient

func NewGetReceiversParamsWithHTTPClient(client *http.Client) *GetReceiversParams

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

func NewGetReceiversParamsWithTimeout

func NewGetReceiversParamsWithTimeout(timeout time.Duration) *GetReceiversParams

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

func (*GetReceiversParams) SetContext

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

SetContext adds the context to the get receivers params

func (*GetReceiversParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get receivers params

func (*GetReceiversParams) SetTimeout

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

SetTimeout adds the timeout to the get receivers params

func (*GetReceiversParams) WithContext

WithContext adds the context to the get receivers params

func (*GetReceiversParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get receivers params

func (*GetReceiversParams) WithTimeout

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

WithTimeout adds the timeout to the get receivers params

func (*GetReceiversParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetReceiversReader

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

GetReceiversReader is a Reader for the GetReceivers structure.

func (*GetReceiversReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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