Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SessionFacotryFunc = session.NewFactory(session.CookieStorage(sessionCookieName, nil))
SessionFacotryFunc is the default factory function of session.
Functions ¶
Types ¶
type HandlerFunc ¶
type HandlerFunc func(w http.ResponseWriter, req *http.Request) (interface{}, int)
func Chain ¶
func Chain(h ...HandlerFunc) HandlerFunc
Chain combins a slide of HandlerFunc(s) in to one request. TODO
func Method ¶
func Method(m map[string]HandlerFunc) HandlerFunc
Method takes one map as a paramater. Keys of this map are HTTP method mapping to HandlerFunc(s).
type Possum ¶
type Possum struct { sync.RWMutex // PreRequest is called after initialised the request and session, before user-defined handler PreRequest http.HandlerFunc // PreResponse is called before sending response to client. PreResponse http.HandlerFunc // ErrorHandler gets a chance to write user-defined error handler ErrorHandle func(error) // contains filtered or unexported fields }
Possum implements `http.Handler`.
Click to show internal directories.
Click to hide internal directories.