monitoring

package
v0.0.0-...-a8f0f91 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UnsecuredPingOKCode int = 200

UnsecuredPingOKCode is the HTTP code returned for type UnsecuredPingOK

Variables

This section is empty.

Functions

This section is empty.

Types

type UnsecuredPing

type UnsecuredPing struct {
	Context *middleware.Context
	Handler UnsecuredPingHandler
}
UnsecuredPing swagger:route GET /unsecured/ping Monitoring unsecuredPing

checks API health and retrieves ping result

checks API health and retrieves ping result

func NewUnsecuredPing

func NewUnsecuredPing(ctx *middleware.Context, handler UnsecuredPingHandler) *UnsecuredPing

NewUnsecuredPing creates a new http.Handler for the unsecured ping operation

func (*UnsecuredPing) ServeHTTP

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

type UnsecuredPingDefault

type UnsecuredPingDefault struct {

	/*
	  In: Body
	*/
	Payload *models.Error `json:"body,omitempty"`
	// contains filtered or unexported fields
}

UnsecuredPingDefault default error response

swagger:response unsecuredPingDefault

func NewUnsecuredPingDefault

func NewUnsecuredPingDefault(code int) *UnsecuredPingDefault

NewUnsecuredPingDefault creates UnsecuredPingDefault with default headers values

func (*UnsecuredPingDefault) SetPayload

func (o *UnsecuredPingDefault) SetPayload(payload *models.Error)

SetPayload sets the payload to the unsecured ping default response

func (*UnsecuredPingDefault) SetStatusCode

func (o *UnsecuredPingDefault) SetStatusCode(code int)

SetStatusCode sets the status to the unsecured ping default response

func (*UnsecuredPingDefault) WithPayload

func (o *UnsecuredPingDefault) WithPayload(payload *models.Error) *UnsecuredPingDefault

WithPayload adds the payload to the unsecured ping default response

func (*UnsecuredPingDefault) WithStatusCode

func (o *UnsecuredPingDefault) WithStatusCode(code int) *UnsecuredPingDefault

WithStatusCode adds the status to the unsecured ping default response

func (*UnsecuredPingDefault) WriteResponse

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

WriteResponse to the client

type UnsecuredPingHandler

type UnsecuredPingHandler interface {
	Handle(UnsecuredPingParams) middleware.Responder
}

UnsecuredPingHandler interface for that can handle valid unsecured ping params

type UnsecuredPingHandlerFunc

type UnsecuredPingHandlerFunc func(UnsecuredPingParams) middleware.Responder

UnsecuredPingHandlerFunc turns a function with the right signature into a unsecured ping handler

func (UnsecuredPingHandlerFunc) Handle

Handle executing the request and returning a response

type UnsecuredPingOK

type UnsecuredPingOK struct {

	/*
	  In: Body
	*/
	Payload *models.UnsecuredPing `json:"body,omitempty"`
}

UnsecuredPingOK success response returning ping results

swagger:response unsecuredPingOK

func NewUnsecuredPingOK

func NewUnsecuredPingOK() *UnsecuredPingOK

NewUnsecuredPingOK creates UnsecuredPingOK with default headers values

func (*UnsecuredPingOK) SetPayload

func (o *UnsecuredPingOK) SetPayload(payload *models.UnsecuredPing)

SetPayload sets the payload to the unsecured ping o k response

func (*UnsecuredPingOK) WithPayload

func (o *UnsecuredPingOK) WithPayload(payload *models.UnsecuredPing) *UnsecuredPingOK

WithPayload adds the payload to the unsecured ping o k response

func (*UnsecuredPingOK) WriteResponse

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

WriteResponse to the client

type UnsecuredPingParams

type UnsecuredPingParams struct {

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

UnsecuredPingParams contains all the bound params for the unsecured ping operation typically these are obtained from a http.Request

swagger:parameters unsecuredPing

func NewUnsecuredPingParams

func NewUnsecuredPingParams() UnsecuredPingParams

NewUnsecuredPingParams creates a new UnsecuredPingParams object

There are no default values defined in the spec.

func (*UnsecuredPingParams) BindRequest

func (o *UnsecuredPingParams) 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 NewUnsecuredPingParams() beforehand.

Jump to

Keyboard shortcuts

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