message

package
v0.0.0-...-4e7cb45 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SignUpUseCaseID = event.Index(1)

Variables

View Source
var ErrMissingPIIKey = errors.New("the event did not have the pii key in metadata")

Functions

func ListenToSignUp

func ListenToSignUp() option

func Register

func Register(options ...option)

func WithDeferredEventBus

func WithDeferredEventBus(bus event.DeferredBus) option

func WithEventBus

func WithEventBus(bus event.Bus) option

func WithEventStore

func WithEventStore(store event.Store) option

func WithHttp

func WithHttp(echo *echo.Echo) option

Types

type Command

type Command struct {
	MessageID string
	UserID    string
	Message   string
}

type Event

type Event struct {
	MessageID string
	UserID    string
	Message   string
}

type SignUpListener

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

func (*SignUpListener) Handle

func (handler *SignUpListener) Handle(signedUp *event.Event) error

Jump to

Keyboard shortcuts

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