Documentation
¶
Index ¶
- type Ceil
- type CeilList
- type Counter
- type Handler
- type Timeline
- func (l *Timeline) AddCounter(c *Counter) error
- func (l *Timeline) CounterSum(c *Counter, t time.Time) int32
- func (l *Timeline) Loop()
- func (l *Timeline) Notify(t time.Time)
- func (l *Timeline) Pop(unix int64)
- func (l *Timeline) Push(unix int64)
- func (l *Timeline) Save()
- func (l *Timeline) Start()
- func (l *Timeline) StartWithContext(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counter ¶
type Timeline ¶
type Timeline struct {
Container []*CeilList `json:"container"` // 数据容器
MaxMemTime int64 `json:"max_mem_time"` // 最大记忆秒数
Counters []*Counter `json:"counters"`
Context context.Context
}
func (*Timeline) AddCounter ¶
func (*Timeline) CounterSum ¶
对counter 单独计数
func (*Timeline) StartWithContext ¶
Click to show internal directories.
Click to hide internal directories.