Documentation ¶
Index ¶
Constants ¶
View Source
const ( NULL = iota NOT_STARTED IN_PROGRESS FAILED DONE FINISHED )
Variables ¶
View Source
var Mutex sync.Mutex
Functions ¶
Types ¶
type Enumeration ¶
type Enumeration struct { Target *Host Outfolder string Kind string Status int Result []byte Polite string }
func (*Enumeration) String ¶
func (e *Enumeration) String() string
type Host ¶
type Host struct { ID uint `gorm:"primary_key"` Address string `gorm:"unique_index:idx_hostname_ip"` Status string OS string Info string Ports []Port Step string }
func GetAllHosts ¶
type Port ¶
type Port struct { ID uint `gorm:"primary_key"` Number int `gorm:"unique_index:idx_port"` Protocol string `gorm:"unique_index:idx_port"` Status string `gorm:"unique_index:idx_port"` Service Service HostID uint `gorm:"unique_index:idx_port"` Host *Host }
type Scan ¶
type Service ¶
type Service struct { ID uint `gorm:"primary_key"` Name string `gorm:"unique_index:idx_service"` Version string Product string OsType string PortID uint `gorm:"unique_index:idx_service"` Port *Port }
func AddService ¶
Constructor
Click to show internal directories.
Click to hide internal directories.