secrethandler

package
v0.29.2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	AllowedNetworks    []string
	Password           string
	AllowEmptyPassword bool
}

type SecretHandler

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

func New

func New(logger *zap.Logger, config Config, next http.Handler) SecretHandler

func (SecretHandler) ServeHTTP

func (m SecretHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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