consul

package
v0.0.0-...-d0a596a Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulRegistry

type ConsulRegistry struct {
	// contains filtered or unexported fields
}

func NewConsulRegistry

func NewConsulRegistry(config *conf.ConsulConfig) (*ConsulRegistry, error)

NewConsulRegistry creates a new Consul registry instance.

func (*ConsulRegistry) Deregister

func (c *ConsulRegistry) Deregister() error

func (*ConsulRegistry) Register

func (c *ConsulRegistry) Register() error

Register registers the service with Consul.

func (*ConsulRegistry) RunServiceCheck

func (c *ConsulRegistry) RunServiceCheck() error

Jump to

Keyboard shortcuts

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