Documentation ¶ Index ¶ type Manager func (m *Manager) GetSession(ctx *mist.Context) (Session, error) func (m *Manager) InitSession(ctx *mist.Context) (Session, error) func (m *Manager) RefreshSession(ctx *mist.Context) error func (m *Manager) RemoveSession(ctx *mist.Context) error type Propagator type Session type Store Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Manager ¶ type Manager struct { Store Propagator CtxSessionKey string } func (*Manager) GetSession ¶ func (m *Manager) GetSession(ctx *mist.Context) (Session, error) func (*Manager) InitSession ¶ func (m *Manager) InitSession(ctx *mist.Context) (Session, error) func (*Manager) RefreshSession ¶ func (m *Manager) RefreshSession(ctx *mist.Context) error func (*Manager) RemoveSession ¶ func (m *Manager) RemoveSession(ctx *mist.Context) error type Propagator ¶ type Propagator interface { Inject(id string, writer http.ResponseWriter) error Extract(req *http.Request) (string, error) Remove(writer http.ResponseWriter) error } type Session ¶ type Session interface { Get(ctx context.Context, key string) (any, error) Set(ctx context.Context, key string, value any) error ID() string } type Store ¶ type Store interface { Generate(ctx context.Context, id string) (Session, error) Refresh(ctx context.Context, id string) error Remove(ctx context.Context, id string) error Get(ctx context.Context, id string) (Session, error) } Source Files ¶ View all Source files manager.gotypes.go Directories ¶ Show internal Expand all Path Synopsis cookie memory redis Click to show internal directories. Click to hide internal directories.