client

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(address string) *Client

func (*Client) Scan

func (c *Client) Scan(host string, ports []int) (Scan, error)

type Request

type Request struct {
	Host  string `json:"host"`
	Ports []int  `json:"ports"`
}

type Result

type Result struct {
	Proto   string `json:"proto"`
	State   string `json:"state"`
	Service string `json:"service"`
	Version string `json:"version"`
}

type Scan

type Scan struct {
	Params  Request        `json:"request"`
	Results map[int]Result `json:"results"`
}

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL