MCPcopy
hub / github.com/tailscale/tailscale / User

Method User

types/netmap/netmap.go:84–89  ·  view source on GitHub ↗

User returns nm.SelfNode.User if nm.SelfNode is non-nil, otherwise it returns 0.

()

Source from the content-addressed store, hash-verified

82// User returns nm.SelfNode.User if nm.SelfNode is non-nil, otherwise it returns
83// 0.
84func (nm *NetworkMap) User() tailcfg.UserID {
85 if nm.SelfNode.Valid() {
86 return nm.SelfNode.User()
87 }
88 return 0
89}
90
91// GetAddresses returns the self node's addresses, or the zero value
92// if SelfNode is invalid.

Callers 3

netmapMethod · 0.95
printConciseHeaderMethod · 0.95
equalConciseHeaderMethod · 0.95

Calls 2

ValidMethod · 0.65
UserMethod · 0.65

Tested by

no test coverage detected