Esempio n. 1
0
File: miax.go Progetto: ikravets/ev
func NewMiaxMessageSource(i int, speed int) *miaxMessageSource {
	return &miaxMessageSource{
		cancel: make(chan struct{}),
		bchan:  bchan.NewBchan(),
		mps:    speed,
		curSeq: 0,
		num:    i,
	}
}
Esempio n. 2
0
File: bats.go Progetto: ikravets/ev
func NewBatsMessageSource(i int, speed int) *batsMessageSource {
	return &batsMessageSource{
		cancel: make(chan struct{}),
		bchan:  bchan.NewBchan(),
		mps:    speed,
		curSeq: 1000000,
		num:    i,
	}
}