consul

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistrar

func NewRegistrar(cfg *Config) (registry.Registrar, error)

Types

type Config

type Config struct {
	ConsulCfg   *consul.Config
	RegistryDir string
	Ttl         time.Duration
}

type Registrar

type Registrar struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*Registrar) Close

func (r *Registrar) Close()

func (*Registrar) Register

func (r *Registrar) Register(service *registry.ServiceInfo) error

func (*Registrar) Unregister

func (r *Registrar) Unregister(service *registry.ServiceInfo) error

Jump to

Keyboard shortcuts

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