handlers

package
v0.0.0-...-462e022 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Package handlers provides functions for handling different types of user interactions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Set

func Set(dispatcher *ext.Dispatcher, c *Client)

Set adds handlers for different types of user interactions to the dispatcher. Each handler is responsible for a specific type of interaction, such as a command or a callback.

Types

type Client

type Client struct {
	Cfg           *config.Config          // Configuration information.
	FSM           fsm.StateController     // State controller for managing user states.
	Database      mongodb.DataManipulator // Database manipulator for interacting with the database.
	NotifiedUsers map[string]bool         // Map of users who have been notified.
	// contains filtered or unexported fields
}

Client represents a client that can handle different types of user interactions. It contains configuration information, a state controller, a database manipulator, and a map of notified users.

Jump to

Keyboard shortcuts

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