notifications

package
v0.0.0-...-c407d37 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const IndexNotificationsBadRequestCode int = 400

IndexNotificationsBadRequestCode is the HTTP code returned for type IndexNotificationsBadRequest

View Source
const IndexNotificationsInternalServerErrorCode int = 500

IndexNotificationsInternalServerErrorCode is the HTTP code returned for type IndexNotificationsInternalServerError

View Source
const IndexNotificationsNotFoundCode int = 404

IndexNotificationsNotFoundCode is the HTTP code returned for type IndexNotificationsNotFound

View Source
const IndexNotificationsOKCode int = 200

IndexNotificationsOKCode is the HTTP code returned for type IndexNotificationsOK

View Source
const IndexNotificationsUnauthorizedCode int = 401

IndexNotificationsUnauthorizedCode is the HTTP code returned for type IndexNotificationsUnauthorized

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexNotifications

type IndexNotifications struct {
	Context *middleware.Context
	Handler IndexNotificationsHandler
}
IndexNotifications swagger:route GET /notifications Notifications indexNotifications

List Notifications

This endpoint returns a list of Notifications that have been sent to Service Members. Do not use this endpoint directly as it is meant to be used with the Admin UI exclusively.

func NewIndexNotifications

func NewIndexNotifications(ctx *middleware.Context, handler IndexNotificationsHandler) *IndexNotifications

NewIndexNotifications creates a new http.Handler for the index notifications operation

func (*IndexNotifications) ServeHTTP

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

type IndexNotificationsBadRequest

type IndexNotificationsBadRequest struct {
}

IndexNotificationsBadRequest invalid request

swagger:response indexNotificationsBadRequest

func NewIndexNotificationsBadRequest

func NewIndexNotificationsBadRequest() *IndexNotificationsBadRequest

NewIndexNotificationsBadRequest creates IndexNotificationsBadRequest with default headers values

func (*IndexNotificationsBadRequest) WriteResponse

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

WriteResponse to the client

type IndexNotificationsHandler

type IndexNotificationsHandler interface {
	Handle(IndexNotificationsParams) middleware.Responder
}

IndexNotificationsHandler interface for that can handle valid index notifications params

type IndexNotificationsHandlerFunc

type IndexNotificationsHandlerFunc func(IndexNotificationsParams) middleware.Responder

IndexNotificationsHandlerFunc turns a function with the right signature into a index notifications handler

func (IndexNotificationsHandlerFunc) Handle

Handle executing the request and returning a response

type IndexNotificationsInternalServerError

type IndexNotificationsInternalServerError struct {
}

IndexNotificationsInternalServerError server error

swagger:response indexNotificationsInternalServerError

func NewIndexNotificationsInternalServerError

func NewIndexNotificationsInternalServerError() *IndexNotificationsInternalServerError

NewIndexNotificationsInternalServerError creates IndexNotificationsInternalServerError with default headers values

func (*IndexNotificationsInternalServerError) WriteResponse

WriteResponse to the client

type IndexNotificationsNotFound

type IndexNotificationsNotFound struct {
}

IndexNotificationsNotFound Notifications not found

swagger:response indexNotificationsNotFound

func NewIndexNotificationsNotFound

func NewIndexNotificationsNotFound() *IndexNotificationsNotFound

NewIndexNotificationsNotFound creates IndexNotificationsNotFound with default headers values

func (*IndexNotificationsNotFound) WriteResponse

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

WriteResponse to the client

type IndexNotificationsOK

type IndexNotificationsOK struct {
	/*Used for pagination

	 */
	ContentRange string `json:"Content-Range"`

	/*
	  In: Body
	*/
	Payload adminmessages.Notifications `json:"body,omitempty"`
}

IndexNotificationsOK success

swagger:response indexNotificationsOK

func NewIndexNotificationsOK

func NewIndexNotificationsOK() *IndexNotificationsOK

NewIndexNotificationsOK creates IndexNotificationsOK with default headers values

func (*IndexNotificationsOK) SetContentRange

func (o *IndexNotificationsOK) SetContentRange(contentRange string)

SetContentRange sets the contentRange to the index notifications o k response

func (*IndexNotificationsOK) SetPayload

func (o *IndexNotificationsOK) SetPayload(payload adminmessages.Notifications)

SetPayload sets the payload to the index notifications o k response

func (*IndexNotificationsOK) WithContentRange

func (o *IndexNotificationsOK) WithContentRange(contentRange string) *IndexNotificationsOK

WithContentRange adds the contentRange to the index notifications o k response

func (*IndexNotificationsOK) WithPayload

WithPayload adds the payload to the index notifications o k response

func (*IndexNotificationsOK) WriteResponse

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

WriteResponse to the client

type IndexNotificationsParams

type IndexNotificationsParams struct {

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

	/*
	  In: query
	*/
	Filter *string
	/*
	  In: query
	*/
	Order *bool
	/*
	  In: query
	*/
	Page *int64
	/*
	  In: query
	*/
	PerPage *int64
	/*
	  In: query
	*/
	Sort *string
}

IndexNotificationsParams contains all the bound params for the index notifications operation typically these are obtained from a http.Request

swagger:parameters indexNotifications

func NewIndexNotificationsParams

func NewIndexNotificationsParams() IndexNotificationsParams

NewIndexNotificationsParams creates a new IndexNotificationsParams object

There are no default values defined in the spec.

func (*IndexNotificationsParams) BindRequest

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 NewIndexNotificationsParams() beforehand.

type IndexNotificationsURL

type IndexNotificationsURL struct {
	Filter  *string
	Order   *bool
	Page    *int64
	PerPage *int64
	Sort    *string
	// contains filtered or unexported fields
}

IndexNotificationsURL generates an URL for the index notifications operation

func (*IndexNotificationsURL) Build

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

Build a url path and query string

func (*IndexNotificationsURL) BuildFull

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

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

func (*IndexNotificationsURL) Must

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

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

func (*IndexNotificationsURL) SetBasePath

func (o *IndexNotificationsURL) 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 (*IndexNotificationsURL) String

func (o *IndexNotificationsURL) String() string

String returns the string representation of the path with query string

func (*IndexNotificationsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*IndexNotificationsURL) WithBasePath

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

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

type IndexNotificationsUnauthorized

type IndexNotificationsUnauthorized struct {
}

IndexNotificationsUnauthorized request requires user authentication

swagger:response indexNotificationsUnauthorized

func NewIndexNotificationsUnauthorized

func NewIndexNotificationsUnauthorized() *IndexNotificationsUnauthorized

NewIndexNotificationsUnauthorized creates IndexNotificationsUnauthorized with default headers values

func (*IndexNotificationsUnauthorized) WriteResponse

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

WriteResponse to the client

Jump to

Keyboard shortcuts

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