webhook

package module
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const WAKeyword = "wh4t5auth0"

Variables

View Source
var WAAPIToken = os.Getenv("TOKEN")
View Source
var WebhookSecret = os.Getenv("SECRET")

Functions

func HandlerIncomingMessage

func HandlerIncomingMessage(msg model.IteungMessage) (resp atmessage.Response)

func HandlerQRLogin

func HandlerQRLogin(msg model.IteungMessage, WAKeyword string) (resp atmessage.Response)

func PostMessage

func PostMessage(c *fiber.Ctx) error

Types

type Header struct {
	Secret string `reqHeader:"secret"`
}

type Reply

type Reply struct {
	Message string `bson:"messsage"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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