discovery

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuilder

func NewBuilder() resolver.Builder

func RegisterBuilder

func RegisterBuilder()

func RegisterService

func RegisterService(ca string, cs *ConsulService)

Types

type ConsulService

type ConsulService struct {
	ID   string
	IP   string
	Port int
	Tag  []string
	Name string
}

type HealthImpl

type HealthImpl struct{}

func (*HealthImpl) Check

Check implements the health check interface, which directly returns to health status. There are also more complex health check strategies, such as returning based on server load.

Jump to

Keyboard shortcuts

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