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 ¶
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
Click to show internal directories.
Click to hide internal directories.