Documentation ¶
Index ¶
- type HostError
- type HostFilter
- type Network
- func (n *Network) Add(hosts ...host.Host) error
- func (n *Network) Hosts() (hosts []host.Host)
- func (n *Network) Run(ctx context.Context, concurrency uint16, ...) <-chan *HostError
- func (n *Network) Size() int
- func (n *Network) StreamHosts(ctx context.Context) chan host.Host
- func (n *Network) Sub(filter HostFilter) *Network
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HostFilter ¶ added in v1.1.6
type Network ¶
type Network struct {
// contains filtered or unexported fields
}
func (*Network) Run ¶
func (n *Network) Run(ctx context.Context, concurrency uint16, handler func(context.Context, host.Host) error) <-chan *HostError
to stop at first error set concurrency=1 and stop at first error
func (*Network) StreamHosts ¶ added in v1.1.6
func (*Network) Sub ¶ added in v1.1.6
func (n *Network) Sub(filter HostFilter) *Network
Click to show internal directories.
Click to hide internal directories.