importer

package
v0.0.0-...-ff4b512 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Import

func Import(db *gorm.DB, data []byte) error

Types

type Addr

type Addr struct {
	Address string `xml:"addr,attr"`
	Type    string `xml:"addrtype,attr"`
}

type Host

type Host struct {
	Address Addr   `xml:"address"`
	Ports   []Port `xml:"ports>port"`
}

type Port

type Port struct {
	Id    uint16 `xml:"portid,attr"`
	Proto string `xml:"protocol,attr"`
	State State  `xml:"state"`
}

type Run

type Run struct {
	XMLName xml.Name `xml:"nmaprun"`
	Start   int64    `xml:"start,attr"`
	Hosts   []Host   `xml:"host"`
}

type State

type State struct {
	State string `xml:"state,attr"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL