Documentation
¶
Index ¶
Constants ¶
View Source
const ( ConfigsUrl = "v1/cs/configs" //nacos 全局配置名称 MasterConfigName = "MasterPool" )
Variables ¶
View Source
var GrpcPool = make(map[string][]PoolUrl, 0)
全局变量 grpc 连接池map
View Source
var Mutex sync.Mutex //定义一个锁的变量(互斥锁的关键字是Mutex,其是一个结构体,传参一定要传地址,否则就不对了)
View Source
var ServiceRoute map[string][]model.SubscribeService //本地服务缓存
Functions ¶
func RegisterServiceInstance ¶
func RegisterServiceInstance(param vo.RegisterInstanceParam)
Register with default cluster and group ClusterName=DEFAULT,GroupName=DEFAULT_GROUP
Types ¶
type ClientConnection ¶
type ClientConnection struct { Conn *grpc.ClientConn Message string }
func GetGrpcConn ¶
func GetGrpcConn(serverName string) ClientConnection
type ConfigRequest ¶
type InitConfigRequest ¶
Click to show internal directories.
Click to hide internal directories.