# Functions
BabysitService function runs given service instance, restarting it as needed if allowed by given BabysitErrorPolicy.
GetDefaultServiceFromEnv returns Service instance that connects to ns_server according to CBAUTH_REVRPC_URL environment variable.
MustService is like NewService except that it panics on errors.
NewService creates and returns Service instance that connects to given ns_server url (which is expected to have creds encoded).
# Variables
DefaultBabysitErrorPolicy is BabysitErrorPolicy instance that is used by default.
ErrAlreadyRunning is returned from Run method to indicate that given Service instance is already running.
No description provided by the author
NoRestartsBabysitErrorPolicy is error policy that always forbids restarts.
# Structs
DefaultErrorPolicy is default configurable implementation of BabysitErrorPolicy.
No description provided by the author
No description provided by the author
Service type represents specific configured instance of revrpc.
No description provided by the author
No description provided by the author
# Interfaces
BabysitErrorPolicy represents error handling policy.
# Type aliases
ErrorPolicyFn function is used to make error handling decision in BabysitService.
FnBabysitErrorPolicy type adapts ErrorPolicyFn to BabysitErrorPolicy interface.
ServiceSetupCallback type defines functions that can be passed to Run and to BabysitService.