consul

package
v2.0.26 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package consul provides an interface to Consul for Zeno's use.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register() error

Register creates a Consul client and registers the service along with a TTL health check. If the program stops updating the TTL, Consul will deregister the service after 30 seconds.

func Stop

func Stop()

Stop cancels the context used to update the TTL check, which will eventually deregister the registered services.

Types

This section is empty.

Jump to

Keyboard shortcuts

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