Documentation ¶
Index ¶
Constants ¶
View Source
const ( HIGH_FRAME_INTERVAL = 30 HIGH_FRAME_LIMIT = 100 LOW_FRAME_INTERVAL = 100 LOW_FRAME_LIMIT = 1000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixWorker ¶
type FixWorker struct { *Worker // contains filtered or unexported fields }
func NewFixWorker ¶
func NewFixWorker(workerID uint64, interval int64, workerFunc WorkerFunc, count int) *FixWorker
type HighFrameWorker ¶
type HighFrameWorker struct {
*Worker
}
func NewHighFrameWorker ¶
func NewHighFrameWorker(interval int64, workerFunc WorkerFunc) *HighFrameWorker
type ILoopWorker ¶
type ILoopWorker interface { RegHighWorker(worker *HighFrameWorker) RegLowWorker(worker *LowFrameWorker) RegFixWorker(worker *FixWorker) Stop() }
type LowFrameWorker ¶
type LowFrameWorker struct {
*Worker
}
func NewLowFrameWorker ¶
func NewLowFrameWorker(interval int64, workerFunc WorkerFunc) *LowFrameWorker
type TimerLoop ¶
type TimerLoop struct {
// contains filtered or unexported fields
}
func NewTimerLoop ¶
func (*TimerLoop) RegFixWorker ¶
func (*TimerLoop) RegHighWorker ¶
func (t *TimerLoop) RegHighWorker(worker *HighFrameWorker)
func (*TimerLoop) RegLowWorker ¶
func (t *TimerLoop) RegLowWorker(worker *LowFrameWorker)
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
func NewWoker ¶
func NewWoker(interval int64, workerFunc WorkerFunc) *Worker
type WorkerFunc ¶
type WorkerFunc func(nowTime int64)
Click to show internal directories.
Click to hide internal directories.