auth

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Basic

func Basic(user, pass string, next http.Handler) http.Handler

Types

type BasicMiddleware

type BasicMiddleware struct {
	// contains filtered or unexported fields
}

func NewBasicMiddleware

func NewBasicMiddleware(user, pass string) *BasicMiddleware

func (*BasicMiddleware) SetPass

func (h *BasicMiddleware) SetPass(v string)

func (*BasicMiddleware) SetUser

func (h *BasicMiddleware) SetUser(v string)

func (*BasicMiddleware) Wrap

Jump to

Keyboard shortcuts

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