Documentation
¶
Index ¶
- type IDMgr
- type Session
- func (s *Session) Attribute(key string) any
- func (s *Session) Attributes() map[string]any
- func (s *Session) Bind(uid string)
- func (s *Session) Close()
- func (s *Session) Exists(key string) bool
- func (s *Session) ID() int64
- func (s *Session) Invalidate()
- func (s *Session) Keys() []string
- func (s *Session) RemoveAttribute(key string)
- func (s *Session) SetAttribute(key string, value any)
- func (s *Session) UID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDMgr ¶ added in v0.7.0
type IDMgr struct {
// contains filtered or unexported fields
}
func NewSessionIDMgr ¶ added in v0.7.0
func NewSessionIDMgr() *IDMgr
func (*IDMgr) Decrement ¶ added in v0.7.0
func (c *IDMgr) Decrement()
Decrement the connection count
type Session ¶
func NewSession ¶
func (*Session) RemoveAttribute ¶
RemoveAttribute 移除指定key对应参数
func (*Session) SetAttribute ¶
SetAttribute 设置参数
Click to show internal directories.
Click to hide internal directories.