Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrSessionNotFound = fmt.Errorf("session not found")
)
Functions ¶
This section is empty.
Types ¶
type Session ¶
type Session struct { ID string Data map[string]interface{} CreatedAt time.Time ActiveAt time.Time }
Session 会话实体对象
func (*Session) UpdateLastActiveTime ¶
func (s *Session) UpdateLastActiveTime()
UpdateLastActiveTime 更新会话的最后活跃时间
type SessionContextKey ¶
type SessionContextKey struct { }
Click to show internal directories.
Click to hide internal directories.