Versions in this module Expand all Collapse all v0 v0.1.0 Mar 27, 2015 Changes in this version + type Credentials interface + GetGID func() uint + GetName func() string + GetPass func() crypto.Binary + GetUID func() uint + IsAdmin func() bool + type SessionInfo struct + Admin bool + GID uint + Name string + SessionKey crypto.Binary + SessionTime time.Time + Super bool + UID uint + func Auth(creds Credentials, pass []byte) (ok bool, sess *SessionInfo) + func (a *SessionInfo) CheckACL(db gorm.DB, objects ...shared.ACL) bool + func (s *SessionInfo) GetGID() uint + func (s *SessionInfo) GetName() string + func (s *SessionInfo) GetUID() uint + func (s *SessionInfo) IsAdmin() bool + func (s *SessionInfo) IsSuper() bool + func (s *SessionInfo) NextKey() crypto.Binary + type SessionPool struct + Pool map[int64]*SessionInfo + func (s *SessionPool) Add(sess *SessionInfo) (id int64, err error) + func (s *SessionPool) Delete(id int64) + func (s *SessionPool) Get(id int64) (sess *SessionInfo) + func (s *SessionPool) Pruner() + func (s *SessionPool) Validate(r *http.Request) (ok bool, id int64, body []byte)