register

package
v0.20.15 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(localIP string, scheme string, port uint, metricPort uint, zkAddr string, clusterid string) error

Types

type RequestInfo

type RequestInfo struct {
	Module string `json:"module"`
	IP     string `json:"ip"`
}

type RespInfo

type RespInfo struct {
	RequestInfo
	ClusterID string `json:"clusterid"`
	Extension string `json:"extendedinfo"`
}

type Response

type Response struct {
	ErrorCode int      `json:"errcode"`
	ErrorMsg  string   `json:"errmsg"`
	Resp      RespInfo `json:"data"`
}

Jump to

Keyboard shortcuts

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