session

package
v0.0.0-...-d841f61 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 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() (int64, error)
	ExpireSessions(user string, provider 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.
stats contains implementation of http session statistics.
stats contains implementation of http session statistics.

Jump to

Keyboard shortcuts

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