callback

package
v1.0.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Callback

type Callback struct {
	Bots   map[int]*api.Bot
	Scenes *scene.Scenes
	Router Router
	// contains filtered or unexported fields
}

Callback 🌍 is a configuration structure of bots, scenes, routers, and "everyone".

func New

func New(properties ...any) *Callback

New 🌠 returns an instance of *Callback Accepts 🤖 *api.Bot or 🎪 *scene.Scenes arguments.

func (*Callback) Add

func (cb *Callback) Add(bot *api.Bot) bool

func (*Callback) Remove

func (cb *Callback) Remove(bot *api.Bot) bool

type Router

type Router struct {
	Config *Callback
}

func (*Router) Fiber

func (r *Router) Fiber(ctx *fiber.Ctx) error

Jump to

Keyboard shortcuts

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