Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Errors
View Source
var (
ErrSessionNotFound = errors.New("session not found")
)
Errors
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { KeyLength int `kong:"prefix='session-',default='32',help='Length of session key',hidden=''"` Encoding string `kong:"prefix='session-',default='base64',enum='none,base64',help='Encoding'"` }
Config values for session management
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler is used to handle sessions
type Options ¶
type Options struct {
// contains filtered or unexported fields
}
func DefaultOptions ¶
func (*Options) WithDataStore ¶
WithDataStore sets the datastore for the server
Click to show internal directories.
Click to hide internal directories.