Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine contains daos required for engine to work
func NewEngine ¶
func NewEngine( rabbitMQConn *rabbitmq.Connection, orderDao interfaces.OrderDao, tradeDao interfaces.TradeDao, pairDao interfaces.PairDao, provider *ethereum.EthereumProvider, ) *Engine
NewEngine initializes the engine singleton instance
func (*Engine) HandleOrders ¶
HandleOrders parses incoming rabbitmq order messages and redirects them to the appropriate engine function
func (*Engine) Provider ¶
func (e *Engine) Provider() interfaces.EthereumProvider
Provider : implement engine interface
type OrderBook ¶
type OrderBook struct {
// contains filtered or unexported fields
}
func NewOrderBook ¶
func NewOrderBook( rabbitMQConn *rabbitmq.Connection, orderDao interfaces.OrderDao, tradeDao interfaces.TradeDao, p types.Pair, ) *OrderBook
Click to show internal directories.
Click to hide internal directories.