Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IsDomain = assert.CreateMatcher(func(a net.Address) bool {
return a.Family().IsDomain()
}, "is Domain")
View Source
var IsIP = assert.CreateMatcher(func(a net.Address) bool {
return a.Family().IsIPv4() || a.Family().IsIPv6()
}, "is IP")
View Source
var IsIPv4 = assert.CreateMatcher(func(a net.Address) bool {
return a.Family().IsIPv4()
}, "is IPv4")
View Source
var IsIPv6 = assert.CreateMatcher(func(a net.Address) bool {
return a.Family().IsIPv6()
}, "is IPv6")
View Source
var IsTCP = assert.CreateMatcher(func(a net.Destination) bool { return a.Network == net.Network_TCP }, "is TCP")
View Source
var IsUDP = assert.CreateMatcher(func(a net.Destination) bool { return a.Network == net.Network_UDP }, "is UDP")
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.