overflow_discovery/net/net.go
crusader 44bc4f51d8 ing
2017-10-26 21:55:55 +09:00

54 lines
570 B
Go

package net
type Discoverer interface {
}
type discovery struct {
}
func NewDiscoverer() Discoverer {
d := &discovery{}
return d
}
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() {
}