middleware

package
v0.1.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Middleware

type Middleware func(upd *tb.Update) bool

Middleware is a function that is called before handlers.

func BuildMiddlewares

func BuildMiddlewares(middlewares ...Middleware) Middleware

BuildMiddlewares puts middlewares in one middleware.

func WithValidator

func WithValidator() Middleware

WithValidator validates incoming updates.

Jump to

Keyboard shortcuts

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