intercept

package
v0.0.0-...-f7ac7ac Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithHandler

func WithHandler(handler Func, option ...Option) tb.HandlerFunc

Types

type Chain

type Chain []Func

type Context

type Context struct {
	context.Context
	TeleContext
}

type Func

type Func func(ctx Context) (Context, error)

type Option

type Option func(*handlerInterceptor)

func WithAfter

func WithAfter(chain ...Func) Option

func WithBefore

func WithBefore(chain ...Func) Option

func WithDefer

func WithDefer(chain ...Func) Option

type TeleContext

type TeleContext struct {
	tb.Context
}

Jump to

Keyboard shortcuts

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