middleware

package
v0.74.2 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallbackInterceptor

func CallbackInterceptor(logger *zerolog.Logger, onCallback func(ctx context.Context) error) grpc.UnaryServerInterceptor

CallbackInterceptor creates an interceptor that can receive callbacks from handlers

func TriggerCallback

func TriggerCallback(ctx context.Context)

func WithCallback

func WithCallback(ctx context.Context, callback CallbackFunc) context.Context

Types

type CallbackFunc

type CallbackFunc func(ctx context.Context)

Jump to

Keyboard shortcuts

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