webhook

package
v0.0.0-...-2c63f42 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookService

type WebhookService struct {
	Client           *fbmsg.Client
	VerifyToken      string
	MessengerService *service.MessengerService
}

func NewWebhookService

func NewWebhookService(
	client *fbmsg.Client, token string,
	messengerService *service.MessengerService,
) *WebhookService

func (*WebhookService) HandleMessage

func (s *WebhookService) HandleMessage(ctx context.Context, pageID fbmsg.IntID, sender fbmsg.SenderID, msg *fbmsg.MessageData) error

func (*WebhookService) HandlePostback

func (s *WebhookService) HandlePostback(ctx context.Context, pageID fbmsg.IntID, sender fbmsg.SenderID, msg *fbmsg.PostbackData) error

func (*WebhookService) HandleVerification

func (s *WebhookService) HandleVerification(w http.ResponseWriter, req *http.Request)

func (*WebhookService) HandleWebhook

func (s *WebhookService) HandleWebhook(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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