util

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 83

Documentation

Overview

Package util holds utility functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AwaitSignal

func AwaitSignal(ctx context.Context, doneFn func())

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 election provides a generic interface for election of a leader.
Package election provides a generic interface for election of a leader.
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.

Jump to

Keyboard shortcuts

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