Documentation
¶
Index ¶
Constants ¶
View Source
const (
// ProtocolICMP the name of the protocol
ProtocolICMP = "icmp"
)
View Source
const (
// ProtocolSCTP is sctp's protocol name
ProtocolSCTP = "sctp"
)
View Source
const (
// ProtocolTCP the name of the protocol
ProtocolTCP = "tcp"
)
View Source
const (
// ProtocolUDP the name of the protocol
ProtocolUDP = "udp"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommonTest ¶
CommonTest keeps common vars from connectivity tests
func (*CommonTest) RunCommand ¶
func (ct *CommonTest) RunCommand(cmd string) (string, error)
RunCommand runs command and return output
type ICMPTest ¶
type ICMPTest struct { InterfaceName string // contains filtered or unexported fields }
ICMPTest define, run and process return code of icmp test command
type SCTPTest ¶
type SCTPTest struct { CommonTest ServerPort int }
SCTPTest is a struct with information for sctp test
type TCPTest ¶
type TCPTest struct { CommonTest ServerPort int InterfaceName *net.Interface }
TCPTest define, run and process return code of tcp test command
type UDPTest ¶
type UDPTest struct { CommonTest ServerPort int Multicast bool Broadcast bool InterfaceName *net.Interface }
UDPTest define, run and process return code of udp test command
Click to show internal directories.
Click to hide internal directories.