model

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package model provides the data types our application deals with.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Host

type Host struct {
	ID          int64
	Addr        net.IP
	Name        string
	Added       time.Time
	LastContact time.Time
	Sysname     string
	Location    string
	Source      hsrc.HostSource
	// contains filtered or unexported fields
}

Host is a host on the wide, wide Internet.

func (*Host) AStr

func (h *Host) AStr() string

AStr returns a string representation of the Host's IP address.

func (*Host) Zone

func (h *Host) Zone() string

type Service

type Service struct {
	ID        int64
	HostID    int64
	Port      uint16
	Success   bool
	Response  string
	Timestamp time.Time
}

Service represents a scanned port (success or not).

type Subsystem added in v0.3.0

type Subsystem interface {
	IsActive() bool
	Start()
	Stop()
	StartOne()
	StopOne()
	WorkerCount() int
	System() subsystem.ID
}

type Zone

type Zone struct {
	ID       int64
	Name     string
	Added    time.Time
	Started  time.Time
	Finished time.Time
	Status   bool
}

Zone is a DNS zone that we may attempt to perform a zone transfer on.

Directories

Path Synopsis
Package meta provides facilities to guesstimate the locations and operating systems of Hosts.
Package meta provides facilities to guesstimate the locations and operating systems of Hosts.

Jump to

Keyboard shortcuts

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