Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SchemeAndAddress ¶ added in v0.13.1
SchemeAndAddress crudely splits a URL string into scheme and address, where the address includes everything after the scheme/authority separator.
func UntilWithContext ¶ added in v0.14.12
func UntilWithContext(ctx context.Context, interval time.Duration, f func(context.Context), sliding bool)
UntilWithContext loops until context is done, running f every period. If sliding is true, the period starts after f completes. if sliding is false, the period starts before f is called, so functions that take longer than period to execute may be re-run again immediately.
Types ¶
type BackoffManager ¶ added in v0.14.12
BackoffManager is a simple interval manager with timer reuse, inpsired by k8s.io/apimachinery/util/wait.BackoffManager.
func NewBackoffManager ¶ added in v0.14.12
func NewBackoffManager(step time.Duration) BackoffManager
NewBackoffManager returns a simple fixed-step timer
Click to show internal directories.
Click to hide internal directories.