discovery

package
v0.1.4-alpha-deployment1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsulDiscovery

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

func NewConsulDiscoveryService

func NewConsulDiscoveryService(client *consul.ConsulDiscovery, logger *zap.Logger) *ConsulDiscovery

func (*ConsulDiscovery) AddHandler

func (d *ConsulDiscovery) AddHandler(f HandlerFunc)

func (*ConsulDiscovery) Discover

func (d *ConsulDiscovery) Discover(name string) []consul.Service

func (*ConsulDiscovery) Start

func (d *ConsulDiscovery) Start(name string)

func (*ConsulDiscovery) Stop

func (d *ConsulDiscovery) Stop()

type Discovery

type Discovery interface {
	Discover(name string) []consul.Service
}

type HandlerFunc

type HandlerFunc func(discovery consul.Service)

Jump to

Keyboard shortcuts

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