registry

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NewTokenFuncs = map[string]NewTokenFunc{}

NewTokenFuncs is a map containing all the registered auth strategies.

Functions

func Register

func Register(name string, f NewTokenFunc)

Register registers a new auth strategy new function. Not safe for concurrent use. Safe for use from package init.

Types

type NewTokenFunc

type NewTokenFunc func(map[string]interface{}) (auth.TokenStrategy, error)

NewTokenFunc is the function that token strategies should register at init time.

Jump to

Keyboard shortcuts

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