Documentation ¶
Index ¶
- type SCS
- func (scs SCS) Add(w http.ResponseWriter, req *http.Request, key string, value interface{}) error
- func (scs SCS) Flash(w http.ResponseWriter, req *http.Request, message session.Message) error
- func (scs SCS) Flashes(w http.ResponseWriter, req *http.Request) []session.Message
- func (scs SCS) Get(req *http.Request, key string) string
- func (scs SCS) Load(req *http.Request, key string, result interface{}) error
- func (scs SCS) Middleware(handler http.Handler) http.Handler
- func (scs SCS) Pop(w http.ResponseWriter, req *http.Request, key string) string
- func (scs SCS) PopLoad(w http.ResponseWriter, req *http.Request, key string, result interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SCS ¶
SCS session manager struct for SCS
func (SCS) Add ¶
Add value to session data, if value is not string, will marshal it into JSON encoding and save it into session data.
func (SCS) Middleware ¶
Middleware returns a new session manager middleware instance
Click to show internal directories.
Click to hide internal directories.