auth

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package auth provides HTTP authentication.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(opts Options) func(http.Handler) http.Handler

Auth adds HTTP Basic authentication.

Types

type Options

type Options struct {
	Username string
	Password string
	Realm    string
}

Options for auth.

Jump to

Keyboard shortcuts

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