discovery

package
v0.0.0-...-6f23369 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServicePrefix 服务前缀
	ServicePrefix = "service"

	// ConfigPrefix 配置前缀
	ConfigPrefix = "config"

	// LogsPrefix 日志前缀
	LogsPrefix = "logs"
)

Variables

View Source
var (
	EtcdCli *etcdClient
)

Functions

func Init

func Init(endpoints []string, ttl int64)

Init 初始化EtcdClient实例

Types

type ConfigMessage

type ConfigMessage struct {
	ServiceName string
	Method      string
	DateTime    string
}

type LogsMessage

type LogsMessage struct {
	ServiceName string
	Path        string
}

type ServiceMessage

type ServiceMessage struct {
	ServiceName         string
	ServiceAddr         string
	ServiceProtocolCode int
	ServiceProtocol     string
	ServiceVersion      string
}

Jump to

Keyboard shortcuts

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