Help us shape the future of Go! Take the 2026 Go Developer Survey

auth

package
v1.4.19 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoPluginKey       = fmt.Errorf(`no 'plugin' key in auth`)
	ErrPluginKeyNoString = fmt.Errorf(`'plugin' key in auth is not a string`)
	ErrNoAuthPlugin      = fmt.Errorf(`unexpected plugin in auth`)
)

Functions

This section is empty.

Types

type Auth

type Auth struct {
	Plugin hp.Auth
}

func (*Auth) GetUser

func (a *Auth) GetUser(r *http.Request) (string, error)

func (*Auth) UnmarshalYAML

func (a *Auth) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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