Documentation ¶
Index ¶
- type FileSessionData
- type FileSessionManager
- func (this *FileSessionManager) Delete(sid string) bool
- func (this *FileSessionManager) Init(config *actions.SessionConfig)
- func (this *FileSessionManager) Read(sid string) map[string]string
- func (this *FileSessionManager) SetDir(dir string)
- func (this *FileSessionManager) WriteItem(sid string, key string, value string) bool
- type MemorySessionManager
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSessionData ¶
type FileSessionManager ¶
type FileSessionManager struct {
// contains filtered or unexported fields
}
func NewFileSessionManager ¶
func NewFileSessionManager(lifeSeconds uint, encryptKey string) *FileSessionManager
func (*FileSessionManager) Delete ¶
func (this *FileSessionManager) Delete(sid string) bool
func (*FileSessionManager) Init ¶
func (this *FileSessionManager) Init(config *actions.SessionConfig)
func (*FileSessionManager) Read ¶
func (this *FileSessionManager) Read(sid string) map[string]string
func (*FileSessionManager) SetDir ¶
func (this *FileSessionManager) SetDir(dir string)
func (*FileSessionManager) WriteItem ¶
func (this *FileSessionManager) WriteItem(sid string, key string, value string) bool
type MemorySessionManager ¶
type MemorySessionManager struct {
// contains filtered or unexported fields
}
func NewMemorySessionManager ¶
func NewMemorySessionManager() *MemorySessionManager
func (*MemorySessionManager) Delete ¶
func (this *MemorySessionManager) Delete(sid string) bool
func (*MemorySessionManager) Init ¶
func (this *MemorySessionManager) Init(config *actions.SessionConfig)
Click to show internal directories.
Click to hide internal directories.