Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Contexter ¶
type Contexter struct {
// contains filtered or unexported fields
}
Contexter handles managing application-wide context information.
func NewContexter ¶
NewContexter constructs a new instance of Contexter.
func (Contexter) ServeHTTP ¶
func (c Contexter) ServeHTTP(resp http.ResponseWriter, req *http.Request, next http.HandlerFunc)
type RequestContext ¶
type RequestContext struct {
Data map[string]interface{}
}
RequestContext represents the context data for a single request.
func Get ¶
func Get(req *http.Request) *RequestContext
Get returns the RequestContext for the specified request object, creating a new one if necessary.
Click to show internal directories.
Click to hide internal directories.