Clock is a source of time for logged entries.
| 28 | |
| 29 | // Clock is a source of time for logged entries. |
| 30 | type Clock interface { |
| 31 | // Now returns the current local time. |
| 32 | Now() time.Time |
| 33 | |
| 34 | // NewTicker returns *time.Ticker that holds a channel |
| 35 | // that delivers "ticks" of a clock. |
| 36 | NewTicker(time.Duration) *time.Ticker |
| 37 | } |
| 38 | |
| 39 | // systemClock implements default Clock that uses system time. |
| 40 | type systemClock struct{} |
no outgoing calls
no test coverage detected