auth

package
v0.0.0-...-3a27eef Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2020 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const KeyUserMeta = "user"

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	Middleware(handler http.Handler) http.Handler
	Validate(token string) (bool, error)
	Generate(...Meta) (string, error)
}

Auth interface

type Meta

type Meta map[string]interface{}

Context metadata

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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