Versions in this module Expand all Collapse all v0 v0.0.7 Nov 23, 2023 Changes in this version + var ErrInvalidId = errors.New("mgostore: invalid session id") + type CookieToken struct + func (*CookieToken) GetToken(req *http.Request, name string) (string, error) + func (*CookieToken) SetToken(rw http.ResponseWriter, name, value string, options *sessions.Options) + type MongoStore struct + Codecs []securecookie.Codec + Options *sessions.Options + Token TokenGetSeter + func NewMongoStore(c *mongo.Collection, maxAge int, ensureTTL bool, keyPairs ...[]byte) *MongoStore + func (m *MongoStore) Get(r *http.Request, name string) (*sessions.Session, error) + func (m *MongoStore) MaxAge(age int) + func (m *MongoStore) New(r *http.Request, name string) (*sessions.Session, error) + func (m *MongoStore) Save(_ *http.Request, w http.ResponseWriter, session *sessions.Session) error + type Session struct + Data string + Id string + Modified time.Time + type TokenGetSeter interface + GetToken func(req *http.Request, name string) (string, error) + SetToken func(rw http.ResponseWriter, name, value string, options *sessions.Options)