overflow_discovery/net/net.go

54 lines
570 B
Go
Raw Normal View History

2017-10-20 09:09:07 +00:00
package net
type Discoverer interface {
}
type discovery struct {
}
func NewDiscoverer() Discoverer {
d := &discovery{}
return d
}
2017-10-26 12:55:55 +00:00
func (d *discovery) Discover() {
}
func (d *discovery) DiscoverZone(dzc *DiscoveryZoneConfig) {
zs := newZoneScan(dzc)
defer func() {
zs.Close()
}()
go scanZone(zs)
Loop:
for {
select {
case zone := <-zs.zoneChan:
case err := <-zs.logChan:
case <-zs.endChan:
break Loop
}
}
}
func (d *discovery) DiscoverHost() {
}
func (d *discovery) DiscoverPort() {
}
func (d *discovery) DiscoverService() {
}