Documentation
¶
Index ¶
- Variables
- type SessionStore
- func (a *SessionStore) Create(data []byte) string
- func (a *SessionStore) Delete(id string) error
- func (a *SessionStore) Purge() error
- func (a *SessionStore) Read(id string) ([]byte, error)
- func (a *SessionStore) Reset(id string) (string, error)
- func (a *SessionStore) SID() string
- func (a *SessionStore) Timestamp(id string) (*time.Time, error)
- func (a *SessionStore) Write(id string, data []byte) error
- type SessionStoreConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var (
URL64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"
)
Functions ¶
This section is empty.
Types ¶
type SessionStore ¶
type SessionStore struct {
// contains filtered or unexported fields
}
func NewSessionStore ¶
func NewSessionStore(cfg SessionStoreConfig) (*SessionStore, error)
func (*SessionStore) Create ¶
func (a *SessionStore) Create(data []byte) string
func (*SessionStore) Delete ¶
func (a *SessionStore) Delete(id string) error
func (*SessionStore) Purge ¶
func (a *SessionStore) Purge() error
func (*SessionStore) SID ¶
func (a *SessionStore) SID() string
type SessionStoreConfig ¶
type SessionStoreConfig struct {
SavePath string
CryptoStrength int
ExpireInterval time.Duration
PurgeInterval time.Duration
}
func NewSessionStoreConfig ¶
func NewSessionStoreConfig() SessionStoreConfig
Click to show internal directories.
Click to hide internal directories.