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.
Click to show internal directories.
Click to hide internal directories.