Documentation
¶
Index ¶
Constants ¶
View Source
const MWStatusRespond = 666
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoProcessMiddleware ¶
type CoProcessMiddleware struct {
HookType coprocess.HookType
HookName string
MiddlewareDriver string
Spec *apidef.APIDefinition
}
type MiniRequestObject ¶
type MiniRequestObject struct {
Headers map[string][]string
SetHeaders map[string]string
DeleteHeaders []string
Body []byte
URL string
Params map[string][]string
AddParams map[string]string
ExtendedParams map[string][]string
DeleteParams []string
ReturnOverrides ReturnOverrides
IgnoreBody bool
Method string
RequestURI string
Scheme string
}
MiniRequestObject is marshalled to JSON string and passed into JSON middleware
type ReturnOverrides ¶
type ReturnOverrides struct {
ResponseCode int
ResponseError string
ResponseHeaders map[string]string
}
Lets the user override and return a response from middleware
type VMReturnObject ¶
type VMReturnObject struct {
Request MiniRequestObject
SessionMeta map[string]string
Session user.SessionState
AuthValue string
}
Click to show internal directories.
Click to hide internal directories.