namesandports

package
v0.0.0-...-fe13f99 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package namesandports contains the NamesAndPorts datastructure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NamesAndPorts

type NamesAndPorts map[string]Record

NamesAndPorts represents a set of application names and corresponding ports. nil means the empty set. The key is the application name; the value is the port and whether or not it is TLS.

func (*NamesAndPorts) Add

func (n *NamesAndPorts) Add(name string, port uint, isTLS bool)

Add adds a name and port to this instance in place.

func (NamesAndPorts) Copy

func (n NamesAndPorts) Copy() NamesAndPorts

Copy returns a copy of this instance

func (NamesAndPorts) HasPort

func (n NamesAndPorts) HasPort(port uint) bool

HasPort returns true if port is included in set

type Record

type Record struct {
	Port  uint
	IsTLS bool
}

Jump to

Keyboard shortcuts

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