handlerhub

package
v0.0.0-...-1599866 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HandlerHub

type HandlerHub struct{}

HandlerHub implements all message handlers

func (*HandlerHub) HandleAudioMessage

func (hh *HandlerHub) HandleAudioMessage(message whatsapp.AudioMessage, id string)

HandleAudioMessage handles type whatsapp.AudioMessage

func (*HandlerHub) HandleDocumentMessage

func (hh *HandlerHub) HandleDocumentMessage(message whatsapp.DocumentMessage, id string)

HandleDocumentMessage handles type whatsapp.DocumentMessage

func (*HandlerHub) HandleError

func (hh *HandlerHub) HandleError(err error, id string)

HandleError handles type error

func (*HandlerHub) HandleImageMessage

func (hh *HandlerHub) HandleImageMessage(message whatsapp.ImageMessage, id string)

HandleImageMessage handles type whatsapp.ImageMessage

func (*HandlerHub) HandleJsonMessage

func (hh *HandlerHub) HandleJsonMessage(message string, id string)

HandleJsonMessage handles type string (JSON)

func (*HandlerHub) HandleLiveLocationMessage

func (hh *HandlerHub) HandleLiveLocationMessage(message whatsapp.LiveLocationMessage, id string)

HandleLiveLocationMessage handles type whatsapp.LiveLocationMessage

func (*HandlerHub) HandleLocationMessage

func (hh *HandlerHub) HandleLocationMessage(message whatsapp.LocationMessage, id string)

HandleLocationMessage handles type whatsapp.LocationMessage

func (*HandlerHub) HandleTextMessage

func (hh *HandlerHub) HandleTextMessage(message whatsapp.TextMessage, id string)

HandleTextMessage handles type whatsapp.TextMessage

func (*HandlerHub) HandleVideoMessage

func (hh *HandlerHub) HandleVideoMessage(message whatsapp.VideoMessage, id string)

HandleVideoMessage handles type erwhatsapp.VideoMessageror

Jump to

Keyboard shortcuts

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