Versions in this module Expand all Collapse all v0 v0.0.2 Dec 29, 2024 v0.0.1 Dec 28, 2024 Changes in this version + const EventEgressEnded + const EventEgressStarted + const EventEgressUpdated + const EventIngressEnded + const EventIngressStarted + const EventParticipantJoined + const EventParticipantLeft + const EventRoomFinished + const EventRoomStarted + const EventTrackPublished + const EventTrackUnpublished + var ErrInvalidChecksum = errors.New("could not verify authenticity of message") + var ErrNoAuthHeader = errors.New("authorization header could not be found") + var ErrSecretNotFound = errors.New("API secret could not be found") + func Receive(r *http.Request, provider auth.KeyProvider) ([]byte, error) + func ReceiveWebhookEvent(r *http.Request, provider auth.KeyProvider) (*wirtual.WebhookEvent, error) + type DefaultNotifier struct + func (n *DefaultNotifier) QueueNotify(_ context.Context, event *wirtual.WebhookEvent) error + func (n *DefaultNotifier) Stop(force bool) + type HTTPClientParams struct + ClientTimeout time.Duration + MaxRetries int + RetryWaitMax time.Duration + RetryWaitMin time.Duration + type QueuedNotifier interface + QueueNotify func(ctx context.Context, event *wirtual.WebhookEvent) error + func NewDefaultNotifier(apiKey, apiSecret string, urls []string) QueuedNotifier + type URLNotifier struct + func NewURLNotifier(params URLNotifierParams) *URLNotifier + func (n *URLNotifier) QueueNotify(event *wirtual.WebhookEvent) error + func (n *URLNotifier) SetKeys(apiKey, apiSecret string) + func (n *URLNotifier) Stop(force bool) + type URLNotifierParams struct + APIKey string + APISecret string + Logger logger.Logger + QueueSize int + URL string