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.
Click to show internal directories.
Click to hide internal directories.