Versions in this module Expand all Collapse all v0 v0.0.42 Aug 12, 2021 Changes in this version + type DBHandler interface + Update func(matchResult common.MatchResult) sync.WaitGroup + type Engine struct + Wg sync.WaitGroup + func NewEngine(ctx context.Context) *Engine + func (e *Engine) HandleCancelOrder(order *common.MemoryOrder) (msg *common.WebSocketMessage, success bool) + func (e *Engine) HandleNewOrder(order *common.MemoryOrder) (matchResult common.MatchResult, hasMatch bool) + func (e *Engine) ReInsertOrder(order *common.MemoryOrder) (msg *common.WebSocketMessage) + func (e *Engine) RegisterDBHandler(handler DBHandler) + func (e *Engine) RegisterOrderBookActivitiesHandler(handler OrderBookActivitiesHandler) + func (e *Engine) RegisterOrderBookSnapshotHandler(handler OrderBookSnapshotHandler) + type MarketHandler struct + func NewMarketHandler(ctx context.Context, market string) (*MarketHandler, error) + type OrderBookActivitiesHandler interface + Update func(webSocketMessages []common.WebSocketMessage) sync.WaitGroup + type OrderBookSnapshotHandler interface + Update func(key string, snapshot *common.SnapshotV2) sync.WaitGroup