events

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEventEmitter

func NewEventEmitter(
	config *models.Config,
	logger models.Logger,
	eventBus models.EventBus,
	webhookExecutor models.WebhookExecutor,
) models.EventEmitter

Types

type EventEmitterImpl

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

func (*EventEmitterImpl) OnEmailChanged

func (e *EventEmitterImpl) OnEmailChanged(user models.User)

OnEmailChanged implements the email changed event logic.

func (*EventEmitterImpl) OnEmailVerified

func (e *EventEmitterImpl) OnEmailVerified(user models.User)

OnEmailVerified implements the email verification event logic.

func (*EventEmitterImpl) OnPasswordChanged

func (e *EventEmitterImpl) OnPasswordChanged(user models.User)

OnPasswordChanged implements the password changed event logic.

func (*EventEmitterImpl) OnUserLoggedIn

func (e *EventEmitterImpl) OnUserLoggedIn(user models.User)

OnUserLoggedIn implements the user login event logic.

func (*EventEmitterImpl) OnUserSignedUp

func (e *EventEmitterImpl) OnUserSignedUp(user models.User)

OnUserSignedUp implements the user signup event logic.

type WebhookExecutor

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

WebhookExecutor handles HTTP webhook execution

func NewWebhookExecutor

func NewWebhookExecutor(logger models.Logger) *WebhookExecutor

NewWebhookExecutor creates a new webhook executor

func (*WebhookExecutor) ExecuteWebhook

func (w *WebhookExecutor) ExecuteWebhook(webhook *models.WebhookConfig, payload any) error

ExecuteWebhook sends a webhook request with the given payload

Jump to

Keyboard shortcuts

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