helpers

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToFixed added in v1.7.1

func ToFixed(num float64, precision int) float64

Types

type WebhookNotifier added in v1.7.1

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

func GetWebhookNotifier added in v1.7.1

func GetWebhookNotifier(ctx context.Context, app *config.AppConfig, ds *dbservice.DatabaseService, natsService *natsservice.NatsService, logger *logrus.Logger) *WebhookNotifier

func (*WebhookNotifier) DeleteWebhook added in v1.7.1

func (w *WebhookNotifier) DeleteWebhook(roomId string) error

func (*WebhookNotifier) ForceToPutInQueue added in v1.7.1

func (w *WebhookNotifier) ForceToPutInQueue(event *plugnmeet.CommonNotifyEvent)

ForceToPutInQueue sends a webhook event synchronously without using the room's queue. This method should be used for one-shot events outside the normal room lifecycle. It directly queries the database for webhook URLs.

func (*WebhookNotifier) RegisterWebhook added in v1.7.1

func (w *WebhookNotifier) RegisterWebhook(roomId, sid string)

func (*WebhookNotifier) SendWebhookEvent added in v1.7.1

func (w *WebhookNotifier) SendWebhookEvent(event *plugnmeet.CommonNotifyEvent) error

Jump to

Keyboard shortcuts

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