util

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PortOk = Portstate(iota)
	PortBlocked
	PortOmitted
)
View Source
const Portmax = 65535
View Source
const Portmin = 1

Variables

This section is empty.

Functions

func Ports

func Ports(format string, webport int) ([]int, error)

Types

type LaunchData

type LaunchData struct {
	StartPort int
	EndPort   int
}

type PortStatus

type PortStatus struct {
	Port  int
	State Portstate
}

func BadPorts

func BadPorts(portinfo []PortStatus) []PortStatus

func GoodPorts

func GoodPorts(portinfo []PortStatus) []PortStatus

func (PortStatus) Write

func (ps PortStatus) Write(w io.Writer)

type Portstate

type Portstate uint8

Jump to

Keyboard shortcuts

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