webhook

package
v0.0.0-...-176f8cf Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const VERIFY_TOKEN = "FB_CUSTOM_VERIFY_TOKEN"

Variables

This section is empty.

Functions

This section is empty.

Types

type FacebookUpdate

type FacebookUpdate struct {
	Object  string
	Entries []struct {
		Uid           string
		Id            string
		Time          uint64
		ChangedFields []string `json:"changed_fields"`
	} `json:"entry"`
}

type WebHookServer

type WebHookServer struct {
	// contains filtered or unexported fields
}

func New

func New(secret string, config api.Config) *WebHookServer

func (*WebHookServer) RegisterCallback

func (wh *WebHookServer) RegisterCallback(f func(*FacebookUpdate))

func (*WebHookServer) Run

func (wh *WebHookServer) Run()

Jump to

Keyboard shortcuts

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