handler

package
v0.0.0-...-db24ddd Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Cache           cache.Cache
	Pubsub          pubsub.Pubsub
	Settings        *settings.Settings
	Mm              *mmclient.MMClient
	ResponseChannel chan comms.Response
}

func NewHandler

func NewHandler(mm *mmclient.MMClient, botCache cache.Cache, botPubSub pubsub.Pubsub) (*Handler, error)

func (*Handler) HandleCommand

func (h *Handler) HandleCommand(quit chan bool, event *model.WebSocketEvent) error

func (*Handler) HandleGame

func (h *Handler) HandleGame(quit chan bool, event *model.WebSocketEvent) error

func (*Handler) HandleMsgFromChannel

func (h *Handler) HandleMsgFromChannel(triggerType string, quit chan bool, event *model.WebSocketEvent)

func (*Handler) HandleMsgFromDebuggingChannel

func (h *Handler) HandleMsgFromDebuggingChannel(event *model.WebSocketEvent)

func (*Handler) HandleWebSocketResponse

func (h *Handler) HandleWebSocketResponse(quit chan bool, event *model.WebSocketEvent)

func (*Handler) SendErrorResponse

func (h *Handler) SendErrorResponse(post *model.Post, message string) error

Directories

Path Synopsis
rps

Jump to

Keyboard shortcuts

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