Documentation ¶
Index ¶
- Constants
- type LogSearch
- type LogSearchDefault
- func (o *LogSearchDefault) SetPayload(payload *models.APIError)
- func (o *LogSearchDefault) SetStatusCode(code int)
- func (o *LogSearchDefault) WithPayload(payload *models.APIError) *LogSearchDefault
- func (o *LogSearchDefault) WithStatusCode(code int) *LogSearchDefault
- func (o *LogSearchDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type LogSearchHandler
- type LogSearchHandlerFunc
- type LogSearchOK
- type LogSearchParams
- type LogSearchURL
- func (o *LogSearchURL) Build() (*url.URL, error)
- func (o *LogSearchURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *LogSearchURL) Must(u *url.URL, err error) *url.URL
- func (o *LogSearchURL) SetBasePath(bp string)
- func (o *LogSearchURL) String() string
- func (o *LogSearchURL) StringFull(scheme, host string) string
- func (o *LogSearchURL) WithBasePath(bp string) *LogSearchURL
Constants ¶
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
type LogSearchDefault ¶
type LogSearchDefault struct { /* In: Body */ Payload *models.APIError `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.APIError)
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.APIError) *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 ¶
func (fn LogSearchHandlerFunc) Handle(params LogSearchParams, principal *models.Principal) middleware.Responder
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 */ TimeEnd *string /* 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 TimeEnd *string 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 ¶
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