discovery

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init register default discovery

func NewBuilder

func NewBuilder() resolver.Builder

NewBuilder build consul resolver.Builder

func RegitserService

func RegitserService(ca string, cs *ConsulService)

RegitserService register service

Types

type ConsulService

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

ConsulService Consul service

Jump to

Keyboard shortcuts

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