session

package
v0.0.0-...-07f0968 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicMware

func BasicMware(authKey64s, encrKey32s [][]byte, secure bool) func(app.Tlbx)

func Mware

func Mware(configs ...func(*Config)) func(app.Tlbx)

Types

type Config

type Config struct {
	AuthKey64s [][]byte
	EncrKey32s [][]byte
	Name       string
	Path       string
	Domain     string
	MaxAge     int
	Secure     bool
	HttpOnly   bool
	SameSite   http.SameSite
}

type Session

type Session interface {
	Exists() bool
	Get() []byte
	Set([]byte)
	Del()
}

func Get

func Get(tlbx app.Tlbx) Session

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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