Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithValidity ¶
WithValidity configures how long the csrf tokens are valid for.
Types ¶
type KeyStore ¶
type KeyStore interface { LoadPrivateKey(string) ([]byte, *rsa.PrivateKey, error) LoadPublicKey(string) ([]byte, error) }
KeyStore interface for retrieving keys (used for encrypting session cookie)
type Module ¶
type Module struct { Logger *logger.Module KeyFile string // contains filtered or unexported fields }
func (*Module) Configure ¶
func (m *Module) Configure(opts ...option)
Configure this module with given options
Click to show internal directories.
Click to hide internal directories.