pathrouter

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFoundHandler = errors.New("not found handler")
)

Functions

This section is empty.

Types

type HandlerFunc

type HandlerFunc func(ctx context.Context, vars map[string]string, userId int64, update tgbotapi.Update) error

type Router

type Router struct {
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter() *Router

func (*Router) Execute

func (r *Router) Execute(ctx context.Context, path string, userId int64, update tgbotapi.Update) error

func (*Router) HandleFunc

func (r *Router) HandleFunc(path string, handler HandlerFunc)

func (*Router) Match

func (r *Router) Match(path string) (HandlerFunc, map[string]string)

Jump to

Keyboard shortcuts

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