Documentation ¶
Index ¶
Constants ¶
View Source
const (
ScanType = "elastic"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScanResult ¶
type ScanResult struct { ScanType string `json:"scan"` Proto string `json:"proto"` Host string `json:"host"` Info map[string]interface{} `json:"info"` Indexes map[string]interface{} `json:"indexes"` }
func (*ScanResult) ID ¶
func (r *ScanResult) ID() string
func (*ScanResult) MarshalJSON ¶
func (r *ScanResult) MarshalJSON() ([]byte, error)
func (*ScanResult) String ¶
func (r *ScanResult) String() string
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func NewScanner(proto string, opts ...ScannerOption) *Scanner
type ScannerOption ¶
type ScannerOption func(*Scanner)
func WithDataTimeout ¶
func WithDataTimeout(timeout time.Duration) ScannerOption
Click to show internal directories.
Click to hide internal directories.