package util
import "github.com/google/trillian/util"
Package util holds utility functions.
Index ¶
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.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
util/clock | Package clock contains time utilities, and types that allow mocking system time in tests. |
util/election | Package election provides a generic interface for election of a leader. |
util/election2 | Package election2 provides master election tools, and interfaces for plugging in a custom underlying mechanism. |
util/election2/etcd | Package etcd provides an implementation of master election based on etcd. |
util/election2/testonly | Package testonly contains an Election implementation for testing. |
- Version
- v1.7.1 (latest)
- Published
- Jan 9, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 5 days ago –
Tools for package owners.