示例#1
0
文件: miax.go 项目: ikravets/ev
func NewMiaxMessageSource(i int, speed int) *miaxMessageSource {
	return &miaxMessageSource{
		cancel: make(chan struct{}),
		bchan:  bchan.NewBchan(),
		mps:    speed,
		curSeq: 0,
		num:    i,
	}
}
示例#2
0
文件: bats.go 项目: ikravets/ev
func NewBatsMessageSource(i int, speed int) *batsMessageSource {
	return &batsMessageSource{
		cancel: make(chan struct{}),
		bchan:  bchan.NewBchan(),
		mps:    speed,
		curSeq: 1000000,
		num:    i,
	}
}