Documentation ¶
Index ¶
- Constants
- type Config
- type MemorySessions
- func (memorySessions *MemorySessions) Add(userId int64) (string, error)
- func (memorySessions *MemorySessions) Close() error
- func (memorySessions *MemorySessions) Delete(sessionToken string) error
- func (memorySessions *MemorySessions) Get(sessionToken string) (int64, error)
- func (memorySessions *MemorySessions) Set(sessionToken string, userId int64) error
- type RedisSessions
- func (redisSessions *RedisSessions) Add(userId int64) (string, error)
- func (redisSessions *RedisSessions) Close() error
- func (redisSessions *RedisSessions) Delete(sessionToken string) error
- func (redisSessions *RedisSessions) Get(sessionToken string) (int64, error)
- func (redisSessions *RedisSessions) Set(sessionToken string, userId int64) error
- type Sessions
Constants ¶
View Source
const Prefix = "filharmonic:sessions:"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemorySessions ¶
type MemorySessions struct {
// contains filtered or unexported fields
}
func NewMemory ¶
func NewMemory() *MemorySessions
func (*MemorySessions) Add ¶
func (memorySessions *MemorySessions) Add(userId int64) (string, error)
func (*MemorySessions) Close ¶
func (memorySessions *MemorySessions) Close() error
func (*MemorySessions) Delete ¶
func (memorySessions *MemorySessions) Delete(sessionToken string) error
type RedisSessions ¶
type RedisSessions struct {
// contains filtered or unexported fields
}
func (*RedisSessions) Close ¶
func (redisSessions *RedisSessions) Close() error
func (*RedisSessions) Delete ¶
func (redisSessions *RedisSessions) Delete(sessionToken string) error
Click to show internal directories.
Click to hide internal directories.