app_errors

package
v0.0.0-...-5d714f6 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const GetAppErrorsOKCode int = 200

GetAppErrorsOKCode is the HTTP code returned for type GetAppErrorsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type GetAppErrors

type GetAppErrors struct {
	Context *middleware.Context
	Handler GetAppErrorsHandler
}

GetAppErrors swagger:route GET /errors app-errors getAppErrors

returns the list of application errors

func NewGetAppErrors

func NewGetAppErrors(ctx *middleware.Context, handler GetAppErrorsHandler) *GetAppErrors

NewGetAppErrors creates a new http.Handler for the get app errors operation

func (*GetAppErrors) ServeHTTP

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

type GetAppErrorsDefault

type GetAppErrorsDefault struct {

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

GetAppErrorsDefault Unexpected error

swagger:response getAppErrorsDefault

func NewGetAppErrorsDefault

func NewGetAppErrorsDefault(code int) *GetAppErrorsDefault

NewGetAppErrorsDefault creates GetAppErrorsDefault with default headers values

func (*GetAppErrorsDefault) SetPayload

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

SetPayload sets the payload to the get app errors default response

func (*GetAppErrorsDefault) SetStatusCode

func (o *GetAppErrorsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the get app errors default response

func (*GetAppErrorsDefault) WithPayload

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

WithPayload adds the payload to the get app errors default response

func (*GetAppErrorsDefault) WithStatusCode

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

WithStatusCode adds the status to the get app errors default response

func (*GetAppErrorsDefault) WriteResponse

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

WriteResponse to the client

type GetAppErrorsHandler

type GetAppErrorsHandler interface {
	Handle(GetAppErrorsParams) middleware.Responder
}

GetAppErrorsHandler interface for that can handle valid get app errors params

type GetAppErrorsHandlerFunc

type GetAppErrorsHandlerFunc func(GetAppErrorsParams) middleware.Responder

GetAppErrorsHandlerFunc turns a function with the right signature into a get app errors handler

func (GetAppErrorsHandlerFunc) Handle

Handle executing the request and returning a response

type GetAppErrorsOK

type GetAppErrorsOK struct {

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

GetAppErrorsOK OK

swagger:response getAppErrorsOK

func NewGetAppErrorsOK

func NewGetAppErrorsOK() *GetAppErrorsOK

NewGetAppErrorsOK creates GetAppErrorsOK with default headers values

func (*GetAppErrorsOK) SetPayload

func (o *GetAppErrorsOK) SetPayload(payload []*models.AppError)

SetPayload sets the payload to the get app errors o k response

func (*GetAppErrorsOK) WithPayload

func (o *GetAppErrorsOK) WithPayload(payload []*models.AppError) *GetAppErrorsOK

WithPayload adds the payload to the get app errors o k response

func (*GetAppErrorsOK) WriteResponse

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

WriteResponse to the client

type GetAppErrorsParams

type GetAppErrorsParams struct {

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

GetAppErrorsParams contains all the bound params for the get app errors operation typically these are obtained from a http.Request

swagger:parameters getAppErrors

func NewGetAppErrorsParams

func NewGetAppErrorsParams() GetAppErrorsParams

NewGetAppErrorsParams creates a new GetAppErrorsParams object no default values defined in spec.

func (*GetAppErrorsParams) BindRequest

func (o *GetAppErrorsParams) 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 NewGetAppErrorsParams() beforehand.

type GetAppErrorsURL

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

GetAppErrorsURL generates an URL for the get app errors operation

func (*GetAppErrorsURL) Build

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

Build a url path and query string

func (*GetAppErrorsURL) BuildFull

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

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

func (*GetAppErrorsURL) Must

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

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

func (*GetAppErrorsURL) SetBasePath

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

func (o *GetAppErrorsURL) String() string

String returns the string representation of the path with query string

func (*GetAppErrorsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*GetAppErrorsURL) WithBasePath

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

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