webhook

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHandler

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

func NewEventHandler

func NewEventHandler(q queue.Queue, log *zap.Logger, mediaStorage *media.Storage, messageRepo storage.MessageRepository, apiBaseURL string, instanceChecker InstanceChecker, jidConfirmer JIDConfirmer) *EventHandler

func (*EventHandler) Handle

func (h *EventHandler) Handle(ctx context.Context, instanceID string, instanceJID string, client *whatsmeow.Client, evt any)

type InstanceChecker

type InstanceChecker interface {
	HasWebhook(ctx context.Context, instanceID string) bool
}

type JIDConfirmer added in v1.2.0

type JIDConfirmer interface {
	ConfirmJID(ctx context.Context, jid types.JID)
}

type Pool

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

func NewPool

func NewPool(
	q queue.Queue,
	instanceRepo storage.InstanceRepository,
	delivery *delivery.Delivery,
	log *zap.Logger,
	numWorkers int,
) *Pool

func (*Pool) Start

func (p *Pool) Start(ctx context.Context)

func (*Pool) Stop

func (p *Pool) Stop()

type Worker

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

func NewWorker

func NewWorker(
	q queue.Queue,
	instanceRepo storage.InstanceRepository,
	delivery *delivery.Delivery,
	log *zap.Logger,
) *Worker

func (*Worker) Start

func (w *Worker) Start(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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