events

package
v0.0.0-...-129bed4 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountsEvents

func NewAccountsEvents(cfg KafkaConfig, logger *logrus.Logger) *accountsEvents

func NewTokensDeliveryMQ

func NewTokensDeliveryMQ(cfg KafkaConfig, logger *logrus.Logger) *tokensDeliveryMQ

Types

type AccountsEventsMQ

type AccountsEventsMQ interface {
	AccountCreated(ctx context.Context, account models.AccountCreatedDTO) error
	AccountDeleted(ctx context.Context, email, accountID string) error
}

type KafkaConfig

type KafkaConfig struct {
	Brokers []string
}

type TokensDeliveryMQ

type TokensDeliveryMQ interface {
	RequestEmailVerificationTokenDelivery(ctx context.Context, email, token, callbackURL string, callbackURLTTL time.Duration) error
	RequestChangePasswordTokenDelivery(ctx context.Context, email, token, callbackURL string, callbackURLTTL time.Duration) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳