Documentation ¶ Index ¶ type Id type Manager func New() *Manager func (m *Manager) Add(now, endAt time.Time, timerCallback callback, times int, id ...Id) Id func (m *Manager) Cancel(id Id, softRemove ...bool) func (m *Manager) Len() int func (m *Manager) NextUpdateAt() (at time.Time) func (m *Manager) Update(now time.Time) time.Duration Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Id ¶ type Id = string type Manager ¶ type Manager struct { // contains filtered or unexported fields } func New ¶ func New() *Manager func (*Manager) Add ¶ func (m *Manager) Add(now, endAt time.Time, timerCallback callback, times int, id ...Id) Id func (*Manager) Cancel ¶ added in v1.4.0 func (m *Manager) Cancel(id Id, softRemove ...bool) func (*Manager) Len ¶ func (m *Manager) Len() int func (*Manager) NextUpdateAt ¶ func (m *Manager) NextUpdateAt() (at time.Time) func (*Manager) Update ¶ func (m *Manager) Update(now time.Time) time.Duration Source Files ¶ View all Source files heap.gomanager.gotimer.go Click to show internal directories. Click to hide internal directories.