We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d214741 + 37138cc commit fce5cf4Copy full SHA for fce5cf4
.gitignore
@@ -1,3 +1,4 @@
1
*.test
2
eureka
3
.vagrant/
4
+.idea/
net.go
@@ -803,6 +803,9 @@ func (e *EurekaConnection) HeartBeatInstance(ins *Instance) error {
803
}
804
805
func (i *Instance) Id() string {
806
+ if i.InstanceId != "" {
807
+ return i.InstanceId
808
+ }
809
if i.UniqueID != nil {
810
return i.UniqueID(*i)
811
struct.go
@@ -77,6 +77,7 @@ type RegisterInstanceJson struct {
77
78
// Instance [de]serializeable [to|from] Eureka [XML|JSON].
79
type Instance struct {
80
+ InstanceId string `xml:"instanceId" json:"instanceId"`
81
HostName string `xml:"hostName" json:"hostName"`
82
App string `xml:"app" json:"app"`
83
IPAddr string `xml:"ipAddr" json:"ipAddr"`
0 commit comments