Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HanderTickData ¶
func HanderTickData(ch <-chan []model.Tb_tick_data)
本協程處理Source worker 数据收集.
worker會往ch裡面發送數據,獲取源數據發送到撮合模塊. @param ch:
Types ¶
type SourceHandler ¶
type SourceHandler struct {
// contains filtered or unexported fields
}
func (*SourceHandler) Append ¶
func (this *SourceHandler) Append(code string)
添加一支股, 对应的起一个协程,用于获取 实时的逐笔交易数据。
func (*SourceHandler) GetTickDataChan ¶
func (this *SourceHandler) GetTickDataChan() chan []model.Tb_tick_data
返回 channel
func (*SourceHandler) Remove ¶
func (this *SourceHandler) Remove(code string)
刪除一支股票代碼.
刪除對應的股票數據獲取,關閉數據獲取協程. @parma: code: stock code
Click to show internal directories.
Click to hide internal directories.