engine

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MessagesForUpdateOrder

func MessagesForUpdateOrder(order *common.MemoryOrder) []common.WebSocketMessage

Types

type DBHandler

type DBHandler interface {
	Update(matchResult common.MatchResult) sync.WaitGroup
}

type Engine

type Engine struct {

	// Wait for all queue handler exit gracefully
	Wg sync.WaitGroup
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine(ctx context.Context) *Engine

type MarketHandler

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

func NewMarketHandler

func NewMarketHandler(ctx context.Context, market string) (*MarketHandler, error)

type OrderBookActivitiesHandler

type OrderBookActivitiesHandler interface {
	Update(webSocketMessages []common.WebSocketMessage) sync.WaitGroup
}

type OrderBookSnapshotHandler

type OrderBookSnapshotHandler interface {
	Update(key string, snapshot *common.SnapshotV2) sync.WaitGroup
}

type Orderbook

type Orderbook struct {
	*common.Orderbook
	Sequence uint64
}

func NewOrderbook

func NewOrderbook(marketID string) *Orderbook

Jump to

Keyboard shortcuts

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