Documentation ¶
Index ¶
- type Option
- type Options
- type Session
- func (s *Session) Destroy(ctx context.Context) error
- func (s *Session) Get(ctx context.Context, key string) string
- func (s *Session) Middleware(next http.Handler) http.Handler
- func (s *Session) Pop(ctx context.Context, key string) string
- func (s *Session) Put(ctx context.Context, key, val string)
- func (s *Session) User(key string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *Options)
Option defines a single option function.
func WithLifetime ¶
WithLifetime provides a function to set the lifetime option.
func WithSecure ¶
WithSecure provides a function to set the secure option.
type Session ¶
type Session struct {
Manager *scs.SessionManager
}
Session is a simple wrapper around a session manager.
func (*Session) Middleware ¶
Middleware defines the middleware to store sessions.
Click to show internal directories.
Click to hide internal directories.