session

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package session contains tools to introspect session scoped variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Copy

type Copy func(token string, pm map[string]interface{}) error

Copy copies the params present in the session into a params map

func HS256JWT

func HS256JWT(secret []byte) Copy

HS256JWT Copies all the claims in the given JWT into the given params map

func None

func None(_ []byte) Copy

None no-op session reader

func (Copy) Copy

func (f Copy) Copy(t string, pm map[string]interface{}) error

Copy all the params found in the session into the given map

type Reader

type Reader interface {
	Copy(token string, pm map[string]interface{}) error
}

Reader reads the session data into a parameter map

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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