Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver interface {
// Close closes the session handler.
Close() error
// Destroy destroys the session with the given ID.
Destroy(id string) error
// Gc performs garbage collection on the session handler with the given maximum lifetime.
Gc(maxLifetime int) error
// Read reads the session data associated with the given ID.
Read(id string) (string, error)
// Write writes the session data associated with the given ID.
Write(id string, data string) error
}
Driver is the interface for Session handlers.
Click to show internal directories.
Click to hide internal directories.