MCPcopy
hub / github.com/robfig/cron / Entry

Method Entry

cron.go:194–201  ·  view source on GitHub ↗

Entry returns a snapshot of the given entry, or nil if it couldn't be found.

(id EntryID)

Source from the content-addressed store, hash-verified

192
193// Entry returns a snapshot of the given entry, or nil if it couldn't be found.
194func (c *Cron) Entry(id EntryID) Entry {
195 for _, entry := range c.Entries() {
196 if id == entry.ID {
197 return entry
198 }
199 }
200 return Entry{}
201}
202
203// Remove an entry from being run in the future.
204func (c *Cron) Remove(id EntryID) {

Callers 1

TestJobFunction · 0.80

Calls 1

EntriesMethod · 0.95

Tested by 1

TestJobFunction · 0.64