receiver

package
v0.0.0-...-a7839fa Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetReceiversOKCode int = 200

GetReceiversOKCode is the HTTP code returned for type GetReceiversOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetReceivers

type GetReceivers struct {
	Context *middleware.Context
	Handler GetReceiversHandler
}

GetReceivers swagger:route GET /receivers receiver getReceivers

Get list of all receivers (name of notification integrations)

func NewGetReceivers

func NewGetReceivers(ctx *middleware.Context, handler GetReceiversHandler) *GetReceivers

NewGetReceivers creates a new http.Handler for the get receivers operation

func (*GetReceivers) ServeHTTP

func (o *GetReceivers) ServeHTTP(rw http.ResponseWriter, r *http.Request)

type GetReceiversHandler

type GetReceiversHandler interface {
	Handle(GetReceiversParams) middleware.Responder
}

GetReceiversHandler interface for that can handle valid get receivers params

type GetReceiversHandlerFunc

type GetReceiversHandlerFunc func(GetReceiversParams) middleware.Responder

GetReceiversHandlerFunc turns a function with the right signature into a get receivers handler

func (GetReceiversHandlerFunc) Handle

Handle executing the request and returning a response

type GetReceiversOK

type GetReceiversOK struct {

	/*
	  In: Body
	*/
	Payload []*models.Receiver `json:"body,omitempty"`
}

GetReceiversOK Get receivers response

swagger:response getReceiversOK

func NewGetReceiversOK

func NewGetReceiversOK() *GetReceiversOK

NewGetReceiversOK creates GetReceiversOK with default headers values

func (*GetReceiversOK) SetPayload

func (o *GetReceiversOK) SetPayload(payload []*models.Receiver)

SetPayload sets the payload to the get receivers o k response

func (*GetReceiversOK) WithPayload

func (o *GetReceiversOK) WithPayload(payload []*models.Receiver) *GetReceiversOK

WithPayload adds the payload to the get receivers o k response

func (*GetReceiversOK) WriteResponse

func (o *GetReceiversOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)

WriteResponse to the client

type GetReceiversParams

type GetReceiversParams struct {

	// HTTP Request Object
	HTTPRequest *http.Request `json:"-"`
}

GetReceiversParams contains all the bound params for the get receivers operation typically these are obtained from a http.Request

swagger:parameters getReceivers

func NewGetReceiversParams

func NewGetReceiversParams() GetReceiversParams

NewGetReceiversParams creates a new GetReceiversParams object no default values defined in spec.

func (*GetReceiversParams) BindRequest

func (o *GetReceiversParams) BindRequest(r *http.Request, route *middleware.MatchedRoute) error

BindRequest both binds and validates a request, it assumes that complex things implement a Validatable(strfmt.Registry) error interface for simple values it will use straight method calls.

To ensure default values, the struct must have been initialized with NewGetReceiversParams() beforehand.

type GetReceiversURL

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

GetReceiversURL generates an URL for the get receivers operation

func (*GetReceiversURL) Build

func (o *GetReceiversURL) Build() (*url.URL, error)

Build a url path and query string

func (*GetReceiversURL) BuildFull

func (o *GetReceiversURL) BuildFull(scheme, host string) (*url.URL, error)

BuildFull builds a full url with scheme, host, path and query string

func (*GetReceiversURL) Must

func (o *GetReceiversURL) Must(u *url.URL, err error) *url.URL

Must is a helper function to panic when the url builder returns an error

func (*GetReceiversURL) SetBasePath

func (o *GetReceiversURL) SetBasePath(bp string)

SetBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

func (*GetReceiversURL) String

func (o *GetReceiversURL) String() string

String returns the string representation of the path with query string

func (*GetReceiversURL) StringFull

func (o *GetReceiversURL) StringFull(scheme, host string) string

StringFull returns the string representation of a complete url

func (*GetReceiversURL) WithBasePath

func (o *GetReceiversURL) WithBasePath(bp string) *GetReceiversURL

WithBasePath sets the base path for this url builder, only required when it's different from the base path specified in the swagger spec. When the value of the base path is an empty string

Jump to

Keyboard shortcuts

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