Documentation
¶
Overview ¶
Package util holds utility functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitSignal ¶
AwaitSignal waits for standard termination signals, then runs the given function. Can early return if the passed in context is canceled, in which case the function is not run.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package clock contains time utilities, and types that allow mocking system time in tests.
|
Package clock contains time utilities, and types that allow mocking system time in tests. |
Package election2 provides master election tools, and interfaces for plugging in a custom underlying mechanism.
|
Package election2 provides master election tools, and interfaces for plugging in a custom underlying mechanism. |
etcd
Package etcd provides an implementation of master election based on etcd.
|
Package etcd provides an implementation of master election based on etcd. |
testonly
Package testonly contains an Election implementation for testing.
|
Package testonly contains an Election implementation for testing. |
Click to show internal directories.
Click to hide internal directories.