webhook

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

type EventHandler func(ctx context.Context, data *model.WebhookData) error

type Handler

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

func NewHandler

func NewHandler(encryptKey, verifyToken string) *Handler

func (*Handler) Handle

func (*Handler) OnAudio

func (h *Handler) OnAudio(handler EventHandler)

func (*Handler) OnCard

func (h *Handler) OnCard(handler EventHandler)

func (*Handler) OnEvent

func (h *Handler) OnEvent(handler EventHandler)

func (*Handler) OnFile

func (h *Handler) OnFile(handler EventHandler)

func (*Handler) OnImage

func (h *Handler) OnImage(handler EventHandler)

func (*Handler) OnKMarkdown

func (h *Handler) OnKMarkdown(handler EventHandler)

func (*Handler) OnSystem

func (h *Handler) OnSystem(handler EventHandler)

func (*Handler) OnText

func (h *Handler) OnText(handler EventHandler)

func (*Handler) OnVideo

func (h *Handler) OnVideo(handler EventHandler)

Jump to

Keyboard shortcuts

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