MCPcopy
hub / github.com/google/seesaw / AF

Method AF

common/seesaw/seesaw.go:252–257  ·  view source on GitHub ↗

AF returns the address family of a seesaw IP address.

()

Source from the content-addressed store, hash-verified

250
251// AF returns the address family of a seesaw IP address.
252func (ip IP) AF() AF {
253 if ip.IP().To4() != nil {
254 return IPv4
255 }
256 return IPv6
257}
258
259// String returns the string representation of an IP address.
260func (ip IP) String() string {

Callers 6

markBackendMethod · 0.80
unmarkBackendMethod · 0.80
upMethod · 0.80
downMethod · 0.80
configureVIPsMethod · 0.80
unconfigureVIPMethod · 0.80

Calls 1

IPMethod · 0.95

Tested by

no test coverage detected