package util
import "github.com/google/trillian/util"
Package util holds various utility functions used throughout the Trillian codebase.
Index ¶
- func AwaitSignal(ctx context.Context, doneFn func())
- func StartHTTPServer(addr, certFile, keyFile string) error
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.
func StartHTTPServer ¶
StartHTTPServer starts an HTTP server on the given address.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
util/clock | Package clock contains time utilities, and types that allow mocking system time in tests. |
util/election | |
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. |
util/etcd |
- Version
- v1.3.9
- Published
- Jun 22, 2020
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 6 hours ago –
Tools for package owners.