Versions in this module Expand all Collapse all v0 v0.0.1 Mar 28, 2026 Changes in this version + const DISABLED + const DefaultMaxLevel + const DefaultProbability + const REDO_KERNEL + const STARTED + const STOPPED + const WAITTING_START + const WAITTING_STOP + func SetSaveOrderLog(v bool) + type Element struct + func (e *Element) Key() float64 + func (e *Element) Next() *Element + func (e *Element) Value() interface{} + type KernelErr error + type MatchResult struct + MakerOrders []types.KernelOrder + MatchedSizeMap map[uint64]int64 + TakerOrder types.KernelOrder + type MatchingEngine struct + func NewMatchingEngine(serverID uint64, desc string) *MatchingEngine + func (e *MatchingEngine) AskLength() int + func (e *MatchingEngine) BestAsk() int64 + func (e *MatchingEngine) BestBid() int64 + func (e *MatchingEngine) BidLength() int + func (e *MatchingEngine) MatchedInfoChan() <-chan MatchResult + func (e *MatchingEngine) OrderBook() *OrderBookSnapshot + func (e *MatchingEngine) Start() + func (e *MatchingEngine) Stop() + func (e *MatchingEngine) SubmitOrder(order *types.KernelOrder) + type OrderBookSnapshot struct + Asks []PriceLevel + Bids []PriceLevel + type PriceLevel struct + Price int64 + Size int64 + type SkipList struct + Length int + func NewSkipList() *SkipList + func NewWithMaxLevel(maxLevel int) *SkipList + func (list *SkipList) Front() *Element + func (list *SkipList) Get(key float64) *Element + func (list *SkipList) Remove(key float64) *Element + func (list *SkipList) Set(key float64, value interface{}) *Element + func (list *SkipList) SetProbability(newProbability float64)