package
2.1.1+incompatible
Repository: https://github.com/luyingjie/utils.git
Documentation: pkg.go.dev

# Functions

New creates and returns a new session manager.
NewSessionId creates and returns a new and unique session id string, which is in 36 bytes.
NewStorageFile creates and returns a file storage object for session.
NewStorageMemory creates and returns a file storage object for session.
NewStorageRedis creates and returns a redis storage object for session.
NewStorageRedisHashTable creates and returns a redis hash table storage object for session.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DefaultStorageRedisLoopInterval is the interval updating TTL for session ids in last duration.
No description provided by the author

# Structs

Manager for sessions.
Session struct for storing single session data, which is bound to a single request.
StorageFile implements the Session Storage interface with file system.
StorageMemory implements the Session Storage interface with memory.
StorageRedis implements the Session Storage interface with redis.
StorageRedisHashTable implements the Session Storage interface with redis hash table.

# Interfaces

Storage is the interface definition for session storage.