middleware

package
v0.0.0-...-475f6a8 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(handler http.Handler, middlewares ...Link) http.Handler

Types

type AppAuthenticator

type AppAuthenticator interface {
	Auth(ctx context.Context, appID string, secretKey string) error
}
type Link func(http.Handler) http.Handler

func AppAuth

func AppAuth(aa AppAuthenticator) Link

func Logging

func Logging(logger *slog.Logger) Link

Jump to

Keyboard shortcuts

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