middleware

package
v0.0.0-...-54aedb9 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// LogSource godoc
	LogSource = "default-log-source"
	// LogEnv godoc
	LogEnv = ""
)

Functions

func Log

func Log(next nats.MsgHandler) nats.MsgHandler

Log reads the headers from NATS message and log them using zerolog pkg

func UseMiddleware

func UseMiddleware(handler nats.MsgHandler, middleware ...Middleware) nats.MsgHandler

UseMiddleware when interact with NATS

Types

type Middleware

type Middleware func(next nats.MsgHandler) nats.MsgHandler

Middleware function signature

Jump to

Keyboard shortcuts

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