Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouterScanner ¶
type RouterScanner struct {
// contains filtered or unexported fields
}
RouterScanner scans upnp-enabled routers for network statistics
func New ¶
func New(router *url.URL) (scanner *RouterScanner, err error)
New creates a new RouterScanner. If router is provided, only that URL will be scanned. Otherwise, New will scan the network for compatible routers.
func (*RouterScanner) ReportNetworkStats ¶
func (scanner *RouterScanner) ReportNetworkStats() (stats []Stats, err error)
ReportNetworkStats scans all routers for updated network statistics
func (*RouterScanner) Routers ¶
func (scanner *RouterScanner) Routers() (routers []string)
Routers returns the list of routers
Click to show internal directories.
Click to hide internal directories.