mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
优化etcd发现服务,支持记录附加信息rpc
This commit is contained in:
@@ -77,6 +77,17 @@ type DiscoveryServiceEvent struct{
|
||||
NodeId string
|
||||
}
|
||||
|
||||
type EtcdServiceRecordEvent struct {
|
||||
NetworkName string
|
||||
TTLSecond int64
|
||||
RecordKey string
|
||||
RecordInfo string
|
||||
}
|
||||
|
||||
type Empty struct {
|
||||
|
||||
}
|
||||
|
||||
func SetMaxServiceChannel(maxEventChannel int){
|
||||
maxServiceEventChannelNum = maxEventChannel
|
||||
}
|
||||
@@ -410,4 +421,4 @@ func (s *Service) SetGoRoutineNum(goroutineNum int32) bool {
|
||||
}
|
||||
|
||||
func (s *Service) OnRetire(){
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user