discovery

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery interface {
	RegisterService() error
	DeregisterService() error
}

type ServerConfig

type ServerConfig struct {
	Address string
	Port    int
	Token   string
}

ServerConfig Discovery服务配置

type ServiceConfig

type ServiceConfig struct {
	IP   string
	Port int
	Tag  []string
	Name string
	ID   string
	//HealthyCheckURL   健康检查的 URL
	HealthyCheckURL string
	IsRPC           bool
}

ServiceConfig 需要注册的服务配置

Directories

Path Synopsis
@author: mongo
@author: mongo

Jump to

Keyboard shortcuts

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