middleware

package
v0.0.0-...-b35749e Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

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

func BasicAuthNew

func BasicAuthNew(cfg BasicAuthCfg) *BasicAuth

func BasicAuthNewFromYaml

func BasicAuthNewFromYaml(value *yaml.Node) (*BasicAuth, error)

func (*BasicAuth) Intercept

func (ctx *BasicAuth) Intercept(w http.ResponseWriter, r *http.Request) error

func (*BasicAuth) Register

func (ctx *BasicAuth) Register(handler http.HandlerFunc) http.HandlerFunc

type BasicAuthCfg

type BasicAuthCfg struct {
	UsersFile string   `yaml:"users-file,omitempty"`
	Users     []string `yaml:"users,omitempty"`
}

type Config

type Config struct {
	Type string `yaml:"type"`
}

type InterfaceWrapper

type InterfaceWrapper struct {
	Middleware iMiddleware
	Config     Config
}

func (*InterfaceWrapper) UnmarshalYAML

func (ctx *InterfaceWrapper) UnmarshalYAML(value *yaml.Node) error

Jump to

Keyboard shortcuts

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