v1

package
v0.0.0-...-0de0edb Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistrationEvents

func NewRegistrationEvents(consumer *queue.Consumer, commands CommandBus, logger logger.Logger)

Types

type CommandBus

type CommandBus interface {
	Dispatch(context.Context, core.Command) (any, error)
}

type RegistrationEvent

type RegistrationEvent struct {
	ID    string `json:"id"`
	Email string `json:"email"`
}

type RegistrationEvents

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

func (*RegistrationEvents) Handle

func (r *RegistrationEvents) Handle(ctx context.Context, event *kafka.Message) error

Jump to

Keyboard shortcuts

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