Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoSession = errors.New("no session")
NoSession is an error indicating no session was found
Functions ¶
This section is empty.
Types ¶
type Sessions ¶
type Sessions interface {
Start(w http.ResponseWriter) (map[string][]byte, error)
Get(req *http.Request) (map[string][]byte, error)
End(w http.ResponseWriter)
GetOrStart(w http.ResponseWriter, req *http.Request) (map[string][]byte, error)
}
Sessions is an interface to manage sessions for http requests
func NewSessions ¶
NewSessions provides a Sessions implementation
Click to show internal directories.
Click to hide internal directories.