Documentation ¶
Index ¶
- Variables
- func AppendHosts(hs []*HostService)
- func ArpScan()
- func CidrHosts(cidr string) ([]string, error)
- func FormatHttpIp(ip string) string
- func Hosts2Json() []byte
- func LoadConfig()
- func MakeNetworkPcMenu(hosts []*HostService) (*menu.Node, *menu.Node)
- func MakeUserMenu() *menu.Node
- func PortMap() map[int]string
- func ScanAllHostsPublicInfo()
- func ScanC()
- func ScanConfig()
- func ScanHostPublicInfo(host *HostService)
- func ScanPort(ip string, port uint, timeout time.Duration) bool
- func ServiceList() [][]string
- func ServiceMap() map[string]int
- func Ulimit() int64
- func UniqueifyHosts()
- func UpdatePeers()
- func Webserver(apiport, startpageport uint)
- type Config
- type HostService
- type HostServiceList
- type InfoStruct
- type PortScanner
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var AppendHostsLock = &sync.Mutex{}
View Source
var GlobalScanSemaphore = semaphore.NewWeighted(5)
View Source
var Hosts = []*HostService{}
View Source
var PortsToScan = []uint{22, 80, 443}
var PortsToScan = []uint{1, 20, 21, 22, 23, 25, 80, 443, 8000, 8001, 8080, 8081, 8008, 9000, 16001, 16002}
Functions ¶
func AppendHosts ¶
func AppendHosts(hs []*HostService)
func FormatHttpIp ¶
func Hosts2Json ¶
func Hosts2Json() []byte
func LoadConfig ¶
func LoadConfig()
func MakeNetworkPcMenu ¶
func MakeNetworkPcMenu(hosts []*HostService) (*menu.Node, *menu.Node)
func MakeUserMenu ¶
func ScanAllHostsPublicInfo ¶
func ScanAllHostsPublicInfo()
func ScanConfig ¶
func ScanConfig()
func ScanHostPublicInfo ¶
func ScanHostPublicInfo(host *HostService)
func ServiceList ¶
func ServiceList() [][]string
func ServiceMap ¶
func UniqueifyHosts ¶
func UniqueifyHosts()
func UpdatePeers ¶
func UpdatePeers()
Types ¶
type Config ¶
type Config struct { HttpPort uint StartPagePort uint Name string MaxUploadSize uint Networks []string KnownPeers []string ArpCheckInterval int PeerUpdateInterval int }
var Configuration Config
type HostService ¶
type HostServiceList ¶
type HostServiceList []*HostService
func (HostServiceList) Len ¶
func (a HostServiceList) Len() int
func (HostServiceList) Less ¶
func (a HostServiceList) Less(i, j int) bool
func (HostServiceList) Swap ¶
func (a HostServiceList) Swap(i, j int)
type PortScanner ¶
type PortScanner struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.