auth

package
v0.0.0-...-5fc1723 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware(next http.Handler, auth string) http.Handler

AuthMiddleware implements basic auth for HTTP routes

func SameStrings

func SameStrings(s1, s2 string) bool

SameStrings sonverts string inputs to byte slices then compares using crypto/subtle

Types

This section is empty.

Jump to

Keyboard shortcuts

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