session

package
v0.0.0-...-7a9e484 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package session provides interfaces and implementations for session managers.

Package session provides interfaces and implementations for session managers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager interface {
	RenewToken(ctx context.Context) error
	Get(ctx context.Context, key string) interface{}
	GetString(ctx context.Context, key string) string
	GetBool(ctx context.Context, key string) bool
	Put(ctx context.Context, key string, val interface{})
	Remove(ctx context.Context, key string)
	LoadAndSave(next http.Handler) http.Handler
}

func NewManager

func NewManager(db *sqlx.DB) Manager

type Storage

type Storage struct {
	DB *sqlx.DB
}

func NewStorage

func NewStorage(db *sqlx.DB) *Storage

func (*Storage) Create

func (s *Storage) Create() error

func (*Storage) Drop

func (s *Storage) Drop() error

Jump to

Keyboard shortcuts

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