basicauth

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(account Account) client.Middleware

func FromContext

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

func Server

func Server(accounts Accounts, opts ...Option) server.Middleware

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