basicauth

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (string, bool)

func Middleware

func Middleware(accounts Accounts, opts ...Option) mux.MiddlewareFunc

Types

type Account

type Account struct {
	User     string
	Password string
}

type Accounts

type Accounts []Account

type Option

type Option func(o *options)

func Realm

func Realm(realm string) Option

Jump to

Keyboard shortcuts

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