Beispiel #1
0
func NewMiaxMessageSource(i int, speed int) *miaxMessageSource {
	return &miaxMessageSource{
		cancel: make(chan struct{}),
		bchan:  bchan.NewBchan(),
		mps:    speed,
		curSeq: 0,
		num:    i,
	}
}
Beispiel #2
0
func NewBatsMessageSource(i int, speed int) *batsMessageSource {
	return &batsMessageSource{
		cancel: make(chan struct{}),
		bchan:  bchan.NewBchan(),
		mps:    speed,
		curSeq: 1000000,
		num:    i,
	}
}