middleware

package
v0.0.0-...-37a2e4e Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const HeaderXRequestID = "X-Request-ID"

Variables

This section is empty.

Functions

func BasicAuth

func BasicAuth(crypto Crypto) router.Middleware

func Log

func Log(logger Logger) router.Middleware

func RequestID

func RequestID() router.Middleware

Types

type Crypto

type Crypto interface {
	DecryptString(text string) (string, error)
}

type Logger

type Logger interface {
	Debug(msg string, kv ...interface{})
	Error(msg string, kv ...interface{})
}

Jump to

Keyboard shortcuts

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