intercept

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithHandler added in v0.5.1

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

Types

type Chain added in v0.5.1

type Chain []Func

type Context added in v0.5.1

type Context struct {
	context.Context
	TeleContext
}

type Func

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

type Option added in v0.5.1

type Option func(*handlerInterceptor)

func WithAfter added in v0.5.1

func WithAfter(chain ...Func) Option

func WithBefore added in v0.5.1

func WithBefore(chain ...Func) Option

func WithDefer added in v0.5.1

func WithDefer(chain ...Func) Option

type TeleContext added in v0.5.1

type TeleContext struct {
	tb.Context
}

Jump to

Keyboard shortcuts

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