IntervalDuration returns the duration that should be waited between each auth polling event.
()
| 16 | // IntervalDuration returns the duration that should be waited between each auth |
| 17 | // polling event. |
| 18 | func (s State) IntervalDuration() time.Duration { |
| 19 | return time.Second * time.Duration(s.Interval) |
| 20 | } |
| 21 | |
| 22 | // ExpiryDuration returns the total duration for which the client should keep |
| 23 | // polling. |