gorilla

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package gorilla couples securecookie.SecureCookie token encoder with secrets.Rotation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tokenizer

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

func New

func New(name string, withOptions ...secrets.Option) *Tokenizer

func (*Tokenizer) Decode

func (g *Tokenizer) Decode(data any, token string) (err error)

func (*Tokenizer) Encode

func (g *Tokenizer) Encode(data any) (string, error)

func (*Tokenizer) Rotate

func (g *Tokenizer) Rotate(present, past *secrets.Secret) error

Jump to

Keyboard shortcuts

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