handlers

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingAuth = errors.New("missing basic auth")
	ErrInvalidAuth = errors.New("invalid auth")
)

Functions

func CheckOptions

func CheckOptions(r *http.Request, w http.ResponseWriter) bool

func HandleAuth

func HandleAuth(next http.Handler) http.Handler

func HandleOptions

func HandleOptions(next http.Handler) http.Handler

Types

type HttpError

type HttpError struct {
	Message string `json:"msg"`
	Code    int    `json:"code"`
}

func (HttpError) Serialize

func (e HttpError) Serialize() []byte

Jump to

Keyboard shortcuts

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