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: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OrderStream   = `orders_stream`
	ConfirmStream = `confirmation_stream`
	StockGroup    = `stock_group`
)

Variables

This section is empty.

Functions

func Close

func Close(_ context.Context) error

func HandleEvents

func HandleEvents(eventHandler EventHandler) func(ctx context.Context) error

func Init

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

func ProcudeConfimation

func ProcudeConfimation(ctx context.Context, stock domain.Stock) error

Types

type EventHandler

type EventHandler func(domain.Event) (domain.Stock, error)

Jump to

Keyboard shortcuts

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