middleware

package
v0.0.0-...-422e9ff Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package middleware provides various middleware implementations for the bot's event emitter.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextInjector

func ContextInjector(bot botcontext.BotContext) eventemitter.Middleware

ContextInjector returns a middleware that injects BotContext into the request context.

func Logger

Logger returns a middleware that logs event processing.

func Recoverer

func Recoverer(log logger.Logger) eventemitter.Middleware

Recoverer returns a middleware that recovers from panics in listeners.

Types

This section is empty.

Jump to

Keyboard shortcuts

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