handlers

package
v0.13.8 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGatewayEventHandlerFunc added in v0.13.3

func DefaultGatewayEventHandlerFunc(client bot.Client) gateway.EventHandlerFunc

DefaultGatewayEventHandlerFunc is the default handler for the gateway.Gateway and sends payloads to the bot.EventManager.

func DefaultHTTPServerEventHandlerFunc added in v0.13.3

func DefaultHTTPServerEventHandlerFunc(client bot.Client) httpserver.EventHandlerFunc

DefaultHTTPServerEventHandlerFunc is the default handler for the httpserver.Server and sends payloads to the bot.EventManager.

func GetGatewayHandlers

func GetGatewayHandlers() map[gateway.EventType]bot.GatewayEventHandler

GetGatewayHandlers returns the default gateway.Gateway event handlers for processing the raw payload which gets passed into the bot.EventManager

func GetHTTPServerHandler

func GetHTTPServerHandler() bot.HTTPServerEventHandler

GetHTTPServerHandler returns the default httpserver.Server event handler for processing the raw payload which gets passed into the bot.EventManager

Types

This section is empty.

Jump to

Keyboard shortcuts

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