ing
This commit is contained in:
parent
565798baae
commit
b2bd7528c8
2
Gopkg.lock
generated
2
Gopkg.lock
generated
|
@ -115,7 +115,7 @@
|
||||||
"service/container/discovery",
|
"service/container/discovery",
|
||||||
"service/probe"
|
"service/probe"
|
||||||
]
|
]
|
||||||
revision = "7770cfcc68d259e679074b57f0c9091f127e7644"
|
revision = "292dd88aae9a1eb66fe5c1d45cbac20799cce3a0"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|
|
@ -104,7 +104,7 @@ LOOP:
|
||||||
if 0 == packetCount {
|
if 0 == packetCount {
|
||||||
s = &ocmd.Service{
|
s = &ocmd.Service{
|
||||||
Name: m.Name(),
|
Name: m.Name(),
|
||||||
MetaCryptoTypeKey: sc.MetaCryptoType(),
|
MetaCryptoType: sc.MetaCryptoType(),
|
||||||
DiscoveredDate: occu.NowPtr(),
|
DiscoveredDate: occu.NowPtr(),
|
||||||
}
|
}
|
||||||
break LOOP
|
break LOOP
|
||||||
|
@ -156,7 +156,7 @@ LOOP:
|
||||||
if found {
|
if found {
|
||||||
s = &ocmd.Service{
|
s = &ocmd.Service{
|
||||||
Name: m.Name(),
|
Name: m.Name(),
|
||||||
MetaCryptoTypeKey: sc.MetaCryptoType(),
|
MetaCryptoType: sc.MetaCryptoType(),
|
||||||
DiscoveredDate: occu.NowPtr(),
|
DiscoveredDate: occu.NowPtr(),
|
||||||
}
|
}
|
||||||
break LOOP
|
break LOOP
|
||||||
|
@ -214,7 +214,7 @@ LOOP:
|
||||||
if !m.HasResponse(j) {
|
if !m.HasResponse(j) {
|
||||||
s = &ocmd.Service{
|
s = &ocmd.Service{
|
||||||
Name: m.Name(),
|
Name: m.Name(),
|
||||||
MetaCryptoTypeKey: sc.MetaCryptoType(),
|
MetaCryptoType: sc.MetaCryptoType(),
|
||||||
DiscoveredDate: occu.NowPtr(),
|
DiscoveredDate: occu.NowPtr(),
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
@ -228,7 +228,7 @@ LOOP:
|
||||||
if packetCount-1 == j {
|
if packetCount-1 == j {
|
||||||
s = &ocmd.Service{
|
s = &ocmd.Service{
|
||||||
Name: m.Name(),
|
Name: m.Name(),
|
||||||
MetaCryptoTypeKey: sc.MetaCryptoType(),
|
MetaCryptoType: sc.MetaCryptoType(),
|
||||||
DiscoveredDate: occu.NowPtr(),
|
DiscoveredDate: occu.NowPtr(),
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
|
@ -7,6 +7,7 @@ import (
|
||||||
cuej "git.loafle.net/commons/util-go/encoding/json"
|
cuej "git.loafle.net/commons/util-go/encoding/json"
|
||||||
occu "git.loafle.net/overflow/commons-go/core/util"
|
occu "git.loafle.net/overflow/commons-go/core/util"
|
||||||
ocmd "git.loafle.net/overflow/commons-go/model/discovery"
|
ocmd "git.loafle.net/overflow/commons-go/model/discovery"
|
||||||
|
ocmm "git.loafle.net/overflow/commons-go/model/meta"
|
||||||
"git.loafle.net/overflow/container_discovery/internal/matcher"
|
"git.loafle.net/overflow/container_discovery/internal/matcher"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -28,6 +29,7 @@ func scanServiceUDP(port *ocmd.Port, ds *ocmd.DiscoverService, resultChan chan i
|
||||||
s := &ocmd.Service{
|
s := &ocmd.Service{
|
||||||
Name: m.Name(),
|
Name: m.Name(),
|
||||||
Port: port,
|
Port: port,
|
||||||
|
MetaCryptoType: ocmm.ToMetaCryptoType(ocmm.MetaCryptoTypeEnumNONE),
|
||||||
DiscoveredDate: occu.NowPtr(),
|
DiscoveredDate: occu.NowPtr(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user