middleware

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLoggerMiddleware

func NewLoggerMiddleware(next worker.Service, logger Logger) worker.Service

NewLoggerMiddleware returns a new loggerMiddleware.

Types

type Logger

type Logger interface {
	Printf(format string, v ...interface{})
}

Logger describes a logging interface allowing to implement different external, or custom logger.

Jump to

Keyboard shortcuts

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