leaser

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package leaser groups all Zero services that should run within a lease.

Index

Constants

This section is empty.

Variables

View Source
var ErrBootstrapConfigurationChanged = errors.New("bootstrap configuration changed")

ErrBootstrapConfigurationChanged is returned when the bootstrap configuration has changed and the function needs to be restarted.

Functions

func Run

func Run(
	ctx context.Context,
	source *bootstrap.Source,
	funcs ...func(ctx context.Context, client databroker.DataBrokerServiceClient) error,
) error

Run runs the given function with a databroker client. the function would be restarted if the databroker connection has to be re-established.

Types

This section is empty.

Jump to

Keyboard shortcuts

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