webhook

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyRequest

func VerifyRequest(body []byte, apiKey, secret, token string) (bool, error)

VerifyRequest will verify webhook request both for livekit & plugNmeet in plugNmeet we're following the same token system as livekit is using in this method we'll verify the provided body request

Types

type Notifier

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

func NewNotifier added in v1.1.0

func NewNotifier(ctx context.Context, workerCount int, maxRetry int, logger *logrus.Entry) *Notifier

NewNotifier creates a new Notifier with a specified worker count and max retry attempts.

func (*Notifier) AddInNotifyQueue

func (n *Notifier) AddInNotifyQueue(event *plugnmeet.CommonNotifyEvent, apiKey, apiSecret string, urls []string)

func (*Notifier) Kill added in v1.1.0

func (n *Notifier) Kill()

Kill stops the worker immediately, dropping any unprocessed items in the queue.

func (*Notifier) StopGracefully added in v1.1.0

func (n *Notifier) StopGracefully()

StopGracefully waits for all queued items to be processed before stopping.

Jump to

Keyboard shortcuts

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