runnable

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GRPCServer

func GRPCServer(name string, srv *grpc.Server, port int) manager.Runnable

GRPCServer converts the given gRPC server into a runnable. The server name is just being used for logging.

func LeaderElection

func LeaderElection(runnable manager.Runnable, needsLeaderElection bool) manager.Runnable

LeaderElection wraps the given runnable to implement manager.LeaderElectionRunnable.

func NoLeaderElection

func NoLeaderElection(runnable manager.Runnable) manager.Runnable

RequireLeaderElection wraps the given runnable, marking it as not requiring leader election.

Types

This section is empty.

Jump to

Keyboard shortcuts

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