periodic

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHealthCheckSource

func NewHealthCheckSource(ctx context.Context, gracePeriod time.Duration, retryInterval time.Duration, checkType conjurehealth.CheckType, poll func() error) status.HealthCheckSource

NewHealthCheckSource creates a health check source that calls poll every retryInterval in a goroutine. The goroutine is cancelled if ctx is cancelled. If gracePeriod elapses without poll returning nil, the returned health check source will give a health status of error. checkType is the key to be used in the health result returned by the health check source.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL