Documentation ¶
Index ¶
Constants ¶
const NetworkCheckError = "Error"
NetworkCheckError is a status for when the NetworkCheck Plugin has had an error making an out going connection indicating it may be offline
const NetworkCheckSuccess = "Success"
NetworkCheckSuccess is a status for when the NetworkCheck Plugin has had a successful message from a peer, indicating it is online right now
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin interface { Start() Shutdown() }
Plugin is the interface for a plugin
func NewConnectionRetry ¶ added in v0.3.1
NewConnectionRetry returns a Plugin that when started will retry connecting to contacts with a backoff timing
func NewNetworkCheck ¶ added in v0.3.3
func NewNetworkCheck(bus event.Manager, acn connectivity.ACN) Plugin
NewNetworkCheck returns a Plugin that when started will attempt various network tests
type TimeoutPolicy ¶ added in v0.4.0
TimeoutPolicy is an interface for enforcing common timeout patterns
func (*TimeoutPolicy) ExecuteAction ¶ added in v0.4.0
func (tp *TimeoutPolicy) ExecuteAction(action func() error) error
ExecuteAction runs a function and returns an error if it hasn't returned by the time specified by TimeoutPolicy