eventhandler

package
v0.0.0-...-ffaedda Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderStream   = `orders_stream`
	ConfirmStream = `confirmation_stream`
	OrderGroup    = `orders_group`
)

Variables

This section is empty.

Functions

func Close

func Close(_ context.Context) error

func HandleEvents

func HandleEvents(handler EventHandler) func(context.Context) error

func Init

func Init(cfg *config.Config) func(context.Context) error

func Produce

func Produce(ctx context.Context, event schema.OrderEvent) error

Types

type EventHandler

type EventHandler func(context.Context, uuid.UUID, domain.Event) (domain.Order, error)

Jump to

Keyboard shortcuts

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