consul

package
v0.0.0-...-ba27772 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discoverer

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

func NewDiscoverer

func NewDiscoverer(cfg *consulapi.Config) (*Discoverer, error)

TODO: Deactivate a consul API client here, not a cfg.

func (*Discoverer) Discover

func (d *Discoverer) Discover(svcName string, add, remove func(api.Remote)) discovery.Getter

type Discovery

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

func New

func New(serviceName, addr string, cfg *consulapi.Config, srv *grpc.Server) (*Discovery, error)

TODO: Deactivate a consul API here, not a cfg.

func (*Discovery) Start

func (d *Discovery) Start() error

func (*Discovery) Stop

func (d *Discovery) Stop() error

Jump to

Keyboard shortcuts

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