Documentation
¶
Index ¶
- Constants
- type ListSessions
- type ListSessionsDefault
- func (o *ListSessionsDefault) SetPayload(payload *models.Error)
- func (o *ListSessionsDefault) SetStatusCode(code int)
- func (o *ListSessionsDefault) WithPayload(payload *models.Error) *ListSessionsDefault
- func (o *ListSessionsDefault) WithStatusCode(code int) *ListSessionsDefault
- func (o *ListSessionsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
- type ListSessionsHandler
- type ListSessionsHandlerFunc
- type ListSessionsOK
- type ListSessionsParams
- type ListSessionsURL
- func (o *ListSessionsURL) Build() (*url.URL, error)
- func (o *ListSessionsURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ListSessionsURL) Must(u *url.URL, err error) *url.URL
- func (o *ListSessionsURL) SetBasePath(bp string)
- func (o *ListSessionsURL) String() string
- func (o *ListSessionsURL) StringFull(scheme, host string) string
- func (o *ListSessionsURL) WithBasePath(bp string) *ListSessionsURL
- type ReplaySession
- type ReplaySessionHandler
- type ReplaySessionHandlerFunc
- type ReplaySessionOK
- type ReplaySessionParams
- type ReplaySessionURL
- func (o *ReplaySessionURL) Build() (*url.URL, error)
- func (o *ReplaySessionURL) BuildFull(scheme, host string) (*url.URL, error)
- func (o *ReplaySessionURL) Must(u *url.URL, err error) *url.URL
- func (o *ReplaySessionURL) SetBasePath(bp string)
- func (o *ReplaySessionURL) String() string
- func (o *ReplaySessionURL) StringFull(scheme, host string) string
- func (o *ReplaySessionURL) WithBasePath(bp string) *ReplaySessionURL
Constants ¶
const ListSessionsOKCode int = 200
ListSessionsOKCode is the HTTP code returned for type ListSessionsOK
const ReplaySessionOKCode int = 200
ReplaySessionOKCode is the HTTP code returned for type ReplaySessionOK
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListSessions ¶
type ListSessions struct { Context *middleware.Context Handler ListSessionsHandler }
ListSessions swagger:route GET /api/sessions sessions listSessions
ListSessions list sessions API
func NewListSessions ¶
func NewListSessions(ctx *middleware.Context, handler ListSessionsHandler) *ListSessions
NewListSessions creates a new http.Handler for the list sessions operation
func (*ListSessions) ServeHTTP ¶
func (o *ListSessions) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ListSessionsDefault ¶
type ListSessionsDefault struct { /* In: Body */ Payload *models.Error `json:"body,omitempty"` // contains filtered or unexported fields }
ListSessionsDefault generic error response
swagger:response listSessionsDefault
func NewListSessionsDefault ¶
func NewListSessionsDefault(code int) *ListSessionsDefault
NewListSessionsDefault creates ListSessionsDefault with default headers values
func (*ListSessionsDefault) SetPayload ¶
func (o *ListSessionsDefault) SetPayload(payload *models.Error)
SetPayload sets the payload to the list sessions default response
func (*ListSessionsDefault) SetStatusCode ¶
func (o *ListSessionsDefault) SetStatusCode(code int)
SetStatusCode sets the status to the list sessions default response
func (*ListSessionsDefault) WithPayload ¶
func (o *ListSessionsDefault) WithPayload(payload *models.Error) *ListSessionsDefault
WithPayload adds the payload to the list sessions default response
func (*ListSessionsDefault) WithStatusCode ¶
func (o *ListSessionsDefault) WithStatusCode(code int) *ListSessionsDefault
WithStatusCode adds the status to the list sessions default response
func (*ListSessionsDefault) WriteResponse ¶
func (o *ListSessionsDefault) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSessionsHandler ¶
type ListSessionsHandler interface {
Handle(ListSessionsParams) middleware.Responder
}
ListSessionsHandler interface for that can handle valid list sessions params
type ListSessionsHandlerFunc ¶
type ListSessionsHandlerFunc func(ListSessionsParams) middleware.Responder
ListSessionsHandlerFunc turns a function with the right signature into a list sessions handler
func (ListSessionsHandlerFunc) Handle ¶
func (fn ListSessionsHandlerFunc) Handle(params ListSessionsParams) middleware.Responder
Handle executing the request and returning a response
type ListSessionsOK ¶
ListSessionsOK list the sessions
swagger:response listSessionsOK
func NewListSessionsOK ¶
func NewListSessionsOK() *ListSessionsOK
NewListSessionsOK creates ListSessionsOK with default headers values
func (*ListSessionsOK) SetPayload ¶
func (o *ListSessionsOK) SetPayload(payload []*models.Session)
SetPayload sets the payload to the list sessions o k response
func (*ListSessionsOK) WithPayload ¶
func (o *ListSessionsOK) WithPayload(payload []*models.Session) *ListSessionsOK
WithPayload adds the payload to the list sessions o k response
func (*ListSessionsOK) WriteResponse ¶
func (o *ListSessionsOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ListSessionsParams ¶
type ListSessionsParams 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 /* 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 }
ListSessionsParams contains all the bound params for the list sessions operation typically these are obtained from a http.Request
swagger:parameters listSessions
func NewListSessionsParams ¶
func NewListSessionsParams() ListSessionsParams
NewListSessionsParams creates a new ListSessionsParams object with the default values initialized.
func (*ListSessionsParams) BindRequest ¶
func (o *ListSessionsParams) 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 NewListSessionsParams() beforehand.
type ListSessionsURL ¶
type ListSessionsURL struct { AppName *string Limit *int64 Offset *int64 SessionID *int64 Since *int64 User *string // contains filtered or unexported fields }
ListSessionsURL generates an URL for the list sessions operation
func (*ListSessionsURL) Build ¶
func (o *ListSessionsURL) Build() (*url.URL, error)
Build a url path and query string
func (*ListSessionsURL) BuildFull ¶
func (o *ListSessionsURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ListSessionsURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ListSessionsURL) SetBasePath ¶
func (o *ListSessionsURL) 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 (*ListSessionsURL) String ¶
func (o *ListSessionsURL) String() string
String returns the string representation of the path with query string
func (*ListSessionsURL) StringFull ¶
func (o *ListSessionsURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ListSessionsURL) WithBasePath ¶
func (o *ListSessionsURL) WithBasePath(bp string) *ListSessionsURL
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
type ReplaySession ¶
type ReplaySession struct { Context *middleware.Context Handler ReplaySessionHandler }
ReplaySession swagger:route GET /api/sessions/{session_id}/replay sessions replaySession
ReplaySession replay session API
func NewReplaySession ¶
func NewReplaySession(ctx *middleware.Context, handler ReplaySessionHandler) *ReplaySession
NewReplaySession creates a new http.Handler for the replay session operation
func (*ReplaySession) ServeHTTP ¶
func (o *ReplaySession) ServeHTTP(rw http.ResponseWriter, r *http.Request)
type ReplaySessionHandler ¶
type ReplaySessionHandler interface {
Handle(ReplaySessionParams) middleware.Responder
}
ReplaySessionHandler interface for that can handle valid replay session params
type ReplaySessionHandlerFunc ¶
type ReplaySessionHandlerFunc func(ReplaySessionParams) middleware.Responder
ReplaySessionHandlerFunc turns a function with the right signature into a replay session handler
func (ReplaySessionHandlerFunc) Handle ¶
func (fn ReplaySessionHandlerFunc) Handle(params ReplaySessionParams) middleware.Responder
Handle executing the request and returning a response
type ReplaySessionOK ¶
type ReplaySessionOK struct { }
ReplaySessionOK replay the session
swagger:response replaySessionOK
func NewReplaySessionOK ¶
func NewReplaySessionOK() *ReplaySessionOK
NewReplaySessionOK creates ReplaySessionOK with default headers values
func (*ReplaySessionOK) WriteResponse ¶
func (o *ReplaySessionOK) WriteResponse(rw http.ResponseWriter, producer runtime.Producer)
WriteResponse to the client
type ReplaySessionParams ¶
type ReplaySessionParams struct { // HTTP Request Object HTTPRequest *http.Request `json:"-"` /* Required: true In: path */ SessionID int64 }
ReplaySessionParams contains all the bound params for the replay session operation typically these are obtained from a http.Request
swagger:parameters replaySession
func NewReplaySessionParams ¶
func NewReplaySessionParams() ReplaySessionParams
NewReplaySessionParams creates a new ReplaySessionParams object no default values defined in spec.
func (*ReplaySessionParams) BindRequest ¶
func (o *ReplaySessionParams) 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 NewReplaySessionParams() beforehand.
type ReplaySessionURL ¶
type ReplaySessionURL struct { SessionID int64 // contains filtered or unexported fields }
ReplaySessionURL generates an URL for the replay session operation
func (*ReplaySessionURL) Build ¶
func (o *ReplaySessionURL) Build() (*url.URL, error)
Build a url path and query string
func (*ReplaySessionURL) BuildFull ¶
func (o *ReplaySessionURL) BuildFull(scheme, host string) (*url.URL, error)
BuildFull builds a full url with scheme, host, path and query string
func (*ReplaySessionURL) Must ¶
Must is a helper function to panic when the url builder returns an error
func (*ReplaySessionURL) SetBasePath ¶
func (o *ReplaySessionURL) 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 (*ReplaySessionURL) String ¶
func (o *ReplaySessionURL) String() string
String returns the string representation of the path with query string
func (*ReplaySessionURL) StringFull ¶
func (o *ReplaySessionURL) StringFull(scheme, host string) string
StringFull returns the string representation of a complete url
func (*ReplaySessionURL) WithBasePath ¶
func (o *ReplaySessionURL) WithBasePath(bp string) *ReplaySessionURL
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