Versions in this module Expand all Collapse all v1 v1.0.1 Apr 1, 2020 v1.0.0 Mar 18, 2020 Changes in this version + func AddSessionDeathCallback(fn func(string)) + func Chain(mw ...func(http.Handler) http.Handler) http.Handler + func Checking(check func(*Session) bool, code int) func(http.Handler) http.Handler + func LoggedIn(s *Session) bool + func Logging(next http.Handler) http.Handler + func Not(fn func(*Session) bool) func(*Session) bool + func Sessioned(next http.Handler) http.Handler + func Term(h http.Handler) func(http.Handler) http.Handler + type Session struct + func FromContext(ctx context.Context) (*Session, bool) + func NewSession(key string) *Session + func (s *Session) Del(key string) + func (s *Session) Get(key string) (interface{}, bool) + func (s *Session) GetUser() (user int64, valid bool) + func (s *Session) Invalid() (value bool) + func (s *Session) Invalidate() + func (s *Session) Key() string + func (s *Session) Logout() + func (s *Session) Persist() bool + func (s *Session) Put(key string, value interface{}) + func (s *Session) SetUser(value int64)