middleware

package module
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 7 Imported by: 5

Documentation

Index

Constants

View Source
const (
	LastModifiedHeader    = "Last-Modified"
	IfModifiedSinceHeader = "If-Modified-Since"
)

Variables

This section is empty.

Functions

func BasicHttpAuth

func BasicHttpAuth(next http.Handler, roles ...string) http.Handler

func ClearStaticContent added in v0.1.7

func ClearStaticContent()

func IsNotModified added in v0.1.8

func IsNotModified(ifModifiedSince, lastModified string) bool

func SetPassword

func SetPassword(role string, pwd [32]byte)

func SetStaticContent added in v0.1.6

func SetStaticContent(path string, content []byte)

func SetUsername

func SetUsername(role string, usr [32]byte)

func Static added in v0.1.6

func Static(next http.Handler) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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