utils

package
v0.15.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DS

type DS interface {
	Start(context.Context) error
}

DS ...

func DistributedService

func DistributedService(r manager.Runnable) DS

DistributedService is a wrapper that configures a Runnable to run on every instance of a controller, despite being the leader or not.

type DSD

type DSD interface {
	Start(context.Context) error
}

DSD ...

func DelayedShutdown

func DelayedShutdown(svc DelayedService) DSD

DelayedShutdown adds a delay in the shutdown event, so the runnable has some time to listen to events from other runnables triggered during their shutdown

type DelayedService

type DelayedService interface {
	Start(context.Context) error
	CanShutdown() bool
}

DelayedService ...

Jump to

Keyboard shortcuts

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