logging

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const LogSearchOKCode int = 200

LogSearchOKCode is the HTTP code returned for type LogSearchOK

Variables

This section is empty.

Functions

This section is empty.

Types

type LogSearch

type LogSearch struct {
	Context *middleware.Context
	Handler LogSearchHandler
}
LogSearch swagger:route GET /logs/search Logging logSearch

Search the logs

func NewLogSearch

func NewLogSearch(ctx *middleware.Context, handler LogSearchHandler) *LogSearch

NewLogSearch creates a new http.Handler for the log search operation

func (*LogSearch) ServeHTTP

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

type LogSearchDefault

type LogSearchDefault struct {

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

LogSearchDefault Generic error response.

swagger:response logSearchDefault

func NewLogSearchDefault

func NewLogSearchDefault(code int) *LogSearchDefault

NewLogSearchDefault creates LogSearchDefault with default headers values

func (*LogSearchDefault) SetPayload

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

SetPayload sets the payload to the log search default response

func (*LogSearchDefault) SetStatusCode

func (o *LogSearchDefault) SetStatusCode(code int)

SetStatusCode sets the status to the log search default response

func (*LogSearchDefault) WithPayload

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

WithPayload adds the payload to the log search default response

func (*LogSearchDefault) WithStatusCode

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

WithStatusCode adds the status to the log search default response

func (*LogSearchDefault) WriteResponse

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

WriteResponse to the client

type LogSearchHandler

type LogSearchHandler interface {
	Handle(LogSearchParams, *models.Principal) middleware.Responder
}

LogSearchHandler interface for that can handle valid log search params

type LogSearchHandlerFunc

type LogSearchHandlerFunc func(LogSearchParams, *models.Principal) middleware.Responder

LogSearchHandlerFunc turns a function with the right signature into a log search handler

func (LogSearchHandlerFunc) Handle

Handle executing the request and returning a response

type LogSearchOK

type LogSearchOK struct {

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

LogSearchOK A successful response.

swagger:response logSearchOK

func NewLogSearchOK

func NewLogSearchOK() *LogSearchOK

NewLogSearchOK creates LogSearchOK with default headers values

func (*LogSearchOK) SetPayload

func (o *LogSearchOK) SetPayload(payload *models.LogSearchResponse)

SetPayload sets the payload to the log search o k response

func (*LogSearchOK) WithPayload

func (o *LogSearchOK) WithPayload(payload *models.LogSearchResponse) *LogSearchOK

WithPayload adds the payload to the log search o k response

func (*LogSearchOK) WriteResponse

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

WriteResponse to the client

type LogSearchParams

type LogSearchParams struct {

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

	/*Filter Parameters
	  In: query
	  Collection Format: multi
	*/
	Fp []string
	/*
	  In: query
	  Default: "timeDesc"
	*/
	Order *string
	/*
	  In: query
	  Default: 0
	*/
	PageNo *int32
	/*
	  In: query
	  Default: 10
	*/
	PageSize *int32
	/*
	  In: query
	*/
	TimeStart *string
}

LogSearchParams contains all the bound params for the log search operation typically these are obtained from a http.Request

swagger:parameters LogSearch

func NewLogSearchParams

func NewLogSearchParams() LogSearchParams

NewLogSearchParams creates a new LogSearchParams object with the default values initialized.

func (*LogSearchParams) BindRequest

func (o *LogSearchParams) 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 NewLogSearchParams() beforehand.

type LogSearchURL

type LogSearchURL struct {
	Fp        []string
	Order     *string
	PageNo    *int32
	PageSize  *int32
	TimeStart *string
	// contains filtered or unexported fields
}

LogSearchURL generates an URL for the log search operation

func (*LogSearchURL) Build

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

Build a url path and query string

func (*LogSearchURL) BuildFull

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

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

func (*LogSearchURL) Must

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

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

func (*LogSearchURL) SetBasePath

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

func (o *LogSearchURL) String() string

String returns the string representation of the path with query string

func (*LogSearchURL) StringFull

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

StringFull returns the string representation of a complete url

func (*LogSearchURL) WithBasePath

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

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