MCPcopy
hub / github.com/syncthing/syncthing / String

Method String

lib/relay/protocol/packets.go:62–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60}
61
62func (i SessionInvitation) String() string {
63 device := "<invalid>"
64 if address, err := protocol.DeviceIDFromBytes(i.From); err == nil {
65 device = address.String()
66 }
67 return fmt.Sprintf("%s@%s:%d", device, net.IP(i.Address), i.Port)
68}
69
70func (i SessionInvitation) GoString() string {
71 return i.String()

Callers 1

GoStringMethod · 0.95

Calls 2

DeviceIDFromBytesFunction · 0.92
StringMethod · 0.65

Tested by

no test coverage detected