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

Method String

ipvs/ipvs.go:302–308  ·  view source on GitHub ↗

String returns a string representation of a Destination.

()

Source from the content-addressed store, hash-verified

300
301// String returns a string representation of a Destination.
302func (dest Destination) String() string {
303 addr := dest.Address.String()
304 if dest.Address.To4() == nil {
305 addr = fmt.Sprintf("[%s]", addr)
306 }
307 return fmt.Sprintf("%s:%d", addr, dest.Port)
308}
309
310type Stats struct {
311 Connections uint32 `netlink:"attr:1"`

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected