middleware

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMiddleware

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

func NewAuthMiddleware

func NewAuthMiddleware(enabled bool, tokens []string) *AuthMiddleware

func (*AuthMiddleware) Middleware

func (m *AuthMiddleware) Middleware(next http.Handler) http.Handler

type RemoteIPMiddleware

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

func NewRemoteIPMiddleware

func NewRemoteIPMiddleware(header string) *RemoteIPMiddleware

func (*RemoteIPMiddleware) Middleware

func (m *RemoteIPMiddleware) Middleware(next http.Handler) http.Handler

Jump to

Keyboard shortcuts

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