commands

package
v3.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ListCommandsOKCode int = 200

ListCommandsOKCode is the HTTP code returned for type ListCommandsOK

Variables

This section is empty.

Functions

This section is empty.

Types

type ListCommands

type ListCommands struct {
	Context *middleware.Context
	Handler ListCommandsHandler
}

ListCommands swagger:route GET /api/commands commands listCommands

ListCommands list commands API

func NewListCommands

func NewListCommands(ctx *middleware.Context, handler ListCommandsHandler) *ListCommands

NewListCommands creates a new http.Handler for the list commands operation

func (*ListCommands) ServeHTTP

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

type ListCommandsDefault

type ListCommandsDefault struct {

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

ListCommandsDefault generic error response

swagger:response listCommandsDefault

func NewListCommandsDefault

func NewListCommandsDefault(code int) *ListCommandsDefault

NewListCommandsDefault creates ListCommandsDefault with default headers values

func (*ListCommandsDefault) SetPayload

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

SetPayload sets the payload to the list commands default response

func (*ListCommandsDefault) SetStatusCode

func (o *ListCommandsDefault) SetStatusCode(code int)

SetStatusCode sets the status to the list commands default response

func (*ListCommandsDefault) WithPayload

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

WithPayload adds the payload to the list commands default response

func (*ListCommandsDefault) WithStatusCode

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

WithStatusCode adds the status to the list commands default response

func (*ListCommandsDefault) WriteResponse

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

WriteResponse to the client

type ListCommandsHandler

type ListCommandsHandler interface {
	Handle(ListCommandsParams) middleware.Responder
}

ListCommandsHandler interface for that can handle valid list commands params

type ListCommandsHandlerFunc

type ListCommandsHandlerFunc func(ListCommandsParams) middleware.Responder

ListCommandsHandlerFunc turns a function with the right signature into a list commands handler

func (ListCommandsHandlerFunc) Handle

Handle executing the request and returning a response

type ListCommandsOK

type ListCommandsOK struct {

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

ListCommandsOK list the commands

swagger:response listCommandsOK

func NewListCommandsOK

func NewListCommandsOK() *ListCommandsOK

NewListCommandsOK creates ListCommandsOK with default headers values

func (*ListCommandsOK) SetPayload

func (o *ListCommandsOK) SetPayload(payload []*models.Command)

SetPayload sets the payload to the list commands o k response

func (*ListCommandsOK) WithPayload

func (o *ListCommandsOK) WithPayload(payload []*models.Command) *ListCommandsOK

WithPayload adds the payload to the list commands o k response

func (*ListCommandsOK) WriteResponse

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

WriteResponse to the client

type ListCommandsParams

type ListCommandsParams struct {

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

	/*Cookie with access_token
	  Required: true
	  In: header
	*/
	Cookie string
	/*MySQL LIKE pattern match
	  In: query
	*/
	AppName *string
	/*query pattern(MySQL LIKE pattern match)
	  In: query
	*/
	Content *string
	/*
	  In: query
	  Default: 20
	*/
	Limit *int64
	/*
	  In: query
	  Default: 0
	*/
	Offset *int64
	/*
	  In: query
	*/
	SessionID *int64
	/*Unix timestamp(unit: second)
	  In: query
	  Default: 0
	*/
	Since *int64
	/*MySQL LIKE pattern match
	  In: query
	*/
	User *string
}

ListCommandsParams contains all the bound params for the list commands operation typically these are obtained from a http.Request

swagger:parameters listCommands

func NewListCommandsParams

func NewListCommandsParams() ListCommandsParams

NewListCommandsParams creates a new ListCommandsParams object with the default values initialized.

func (*ListCommandsParams) BindRequest

func (o *ListCommandsParams) 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 NewListCommandsParams() beforehand.

type ListCommandsURL

type ListCommandsURL struct {
	AppName   *string
	Content   *string
	Limit     *int64
	Offset    *int64
	SessionID *int64
	Since     *int64
	User      *string
	// contains filtered or unexported fields
}

ListCommandsURL generates an URL for the list commands operation

func (*ListCommandsURL) Build

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

Build a url path and query string

func (*ListCommandsURL) BuildFull

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

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

func (*ListCommandsURL) Must

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

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

func (*ListCommandsURL) SetBasePath

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

func (o *ListCommandsURL) String() string

String returns the string representation of the path with query string

func (*ListCommandsURL) StringFull

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

StringFull returns the string representation of a complete url

func (*ListCommandsURL) WithBasePath

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

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