sessions

package
v0.0.0-alpha.23 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sessions

type Sessions struct {
	// contains filtered or unexported fields
}

func New

func New(store func() Storage) *Sessions

func (*Sessions) Install

func (s *Sessions) Install(enzo *enzogo.Enzo)

func (*Sessions) Name

func (s *Sessions) Name() string

type Storage

type Storage interface {
	Size() int64
	Set(string, []byte, int) error
	Get(string) ([]byte, error)
	Del(string) error
	TTL(string, int) error
	RemoveAll() error
}

func Load

func Load(ctx *enzogo.Context) (Storage, error)

Directories

Path Synopsis
storage

Jump to

Keyboard shortcuts

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