Versions in this module Expand all Collapse all v0 v0.1.0 Sep 6, 2023 Changes in this version + type BoltStore struct + Codecs []securecookie.Codec + Options *sessions.Options + func NewStore(ctx context.Context, fn string, o Options) (*BoltStore, error) + func NewStoreWithDB(ctx context.Context, db *bolt.DB, opts Options) (*BoltStore, error) + func (s *BoltStore) Close() error + func (s *BoltStore) DB() *bolt.DB + func (s *BoltStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (s *BoltStore) New(r *http.Request, name string) (*sessions.Session, error) + func (s *BoltStore) Save(r *http.Request, w http.ResponseWriter, session *sessions.Session) error + type GobSerializer struct + func (s GobSerializer) Deserialize(d []byte, ss *sessions.Session) error + func (s GobSerializer) Serialize(ss *sessions.Session) ([]byte, error) + type JSONSerializer struct + func (s JSONSerializer) Deserialize(d []byte, ss *sessions.Session) error + func (s JSONSerializer) Serialize(ss *sessions.Session) ([]byte, error) + type Options struct + BucketName []byte + KeyPairs [][]byte + KeyPrefix string + MaxLength int + ReapCheckInterval time.Duration + Serializer SessionSerializer + SessionExpire time.Duration + type SessionSerializer interface + Deserialize func(d []byte, ss *sessions.Session) error + Serialize func(ss *sessions.Session) ([]byte, error)