mirror of
https://github.com/Fishwaldo/sched.git
synced 2025-07-09 22:48:51 +00:00
feat: add ID() method to Schedule interface to get Schedule name
This commit is contained in:
parent
60dfaa0397
commit
c0a59ede66
1 changed files with 6 additions and 0 deletions
|
@ -240,7 +240,13 @@ func negativeToZero(nextRunDuration time.Duration) time.Duration {
|
|||
}
|
||||
return nextRunDuration
|
||||
}
|
||||
|
||||
// State Returns the current State of the Schedule
|
||||
func (s *Schedule) State() State {
|
||||
return s.state
|
||||
}
|
||||
|
||||
// ID Returns the Schedule ID
|
||||
func (s *Schedule) ID() string {
|
||||
return s.id
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue