Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context interface { context.Context ExtendedContext }
Context is the interface of web app context
type ExtendedContext ¶ added in v0.11.0
type ExtendedContext interface { ResponseString(s string) ResponseBody(message string, data interface{}) ResponseError(message string, code int) WrapHandler(h http.Handler) SetAnnotations(ann interface{}) SetURLParam(name, value string) Annotations() interface{} InitResponses() SetResponse(idx int, response interface{}) GetResponses() (responses []interface{}) GetResponse(idx int) (response interface{}) }
ExtendedContext extended context
Click to show internal directories.
Click to hide internal directories.