Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Session ¶
type SessionImpl ¶
type SessionImpl struct {
// contains filtered or unexported fields
}
func (*SessionImpl) GetLastUsed ¶
func (s *SessionImpl) GetLastUsed() time.Time
func (*SessionImpl) GetUsername ¶
func (s *SessionImpl) GetUsername() string
func (*SessionImpl) IsExpired ¶
func (s *SessionImpl) IsExpired() bool
func (*SessionImpl) UpdateLastUsed ¶
func (s *SessionImpl) UpdateLastUsed()
type SessionManager ¶
type SessionManager struct {
// contains filtered or unexported fields
}
func NewSessionManager ¶
func NewSessionManager() *SessionManager
func (*SessionManager) AddSession ¶
func (s *SessionManager) AddSession(token string, session Session) error
func (*SessionManager) FindSession ¶
func (s *SessionManager) FindSession(token string) Session
func (*SessionManager) RemoveSession ¶
func (s *SessionManager) RemoveSession(token string) bool
Click to show internal directories.
Click to hide internal directories.