auth

package
v0.0.0-...-799489d Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthenticator

func NewAuthenticator(opts ...Option) auth.Authenticator

NewAuthenticator creates an Authenticator that authenticates client by pre-defined user mapping.

Types

type Option

type Option func(opts *options)

func AuthsPeriodOption

func AuthsPeriodOption(auths map[string]string) Option

func FileLoaderOption

func FileLoaderOption(fileLoader loader.Loader) Option

func LoggerOption

func LoggerOption(logger logger.Logger) Option

func RedisLoaderOption

func RedisLoaderOption(redisLoader loader.Loader) Option

func ReloadPeriodOption

func ReloadPeriodOption(period time.Duration) Option

Jump to

Keyboard shortcuts

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