Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NetworkTarget ¶
type NetworkTarget struct { Typ TargetType Raw string Target interface{} }
NetworkTarget represents network target resolved
func DiscoverGatewayTarget ¶
func DiscoverGatewayTarget() *NetworkTarget
DiscoverGatewayTarget discover and build gateway target
func ResolveTarget ¶
func ResolveTarget(target string) *NetworkTarget
ResolveTarget as NetworkTarget
func TCPTarget ¶
func TCPTarget(networkTarget *NetworkTarget, port int) *NetworkTarget
TCPTarget tcp target as NetworkTarget
type TargetType ¶
type TargetType int
TargetType represent the type in network
const ( Unknown TargetType = iota IP TCP )
Network targets types
Click to show internal directories.
Click to hide internal directories.