session

package
v0.0.0-...-9b5cd94 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package session contains implementation of http session.

Index

Constants

This section is empty.

Variables

View Source
var ErrNoSession = errors.New("mongo: no session found")

Functions

This section is empty.

Types

type Store

type Store interface {
	sessions.Store
	// StartAutoClean starts a go routine that will every specified duration clean expired sessions.
	StartAutoClean(ctx context.Context, timeout time.Duration)
	// GetActiveSessionsCount returns count of active sessions.
	GetActiveSessionsCount(ctx context.Context) (int64, error)
	ExpireSessions(ctx context.Context, user string, provider string) error
	ExpireSessionsByUserIDs(ctx context.Context, ids []string) error
}

Store is an interface implemented by store that can clean expired sessions and count sessions.

Directories

Path Synopsis
mongostore contains gorilla session store.
mongostore contains gorilla session store.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL