MCPcopy
hub / github.com/google/uuid / NodeInterface

Function NodeInterface

node.go:21–25  ·  view source on GitHub ↗

NodeInterface returns the name of the interface from which the NodeID was derived. The interface "user" is returned if the NodeID was set by SetNodeID.

()

Source from the content-addressed store, hash-verified

19// derived. The interface "user" is returned if the NodeID was set by
20// SetNodeID.
21func NodeInterface() string {
22 defer nodeMu.Unlock()
23 nodeMu.Lock()
24 return ifname
25}
26
27// SetNodeInterface selects the hardware address to be used for Version 1 UUIDs.
28// If name is "" then the first usable interface found will be used or a random

Callers 2

TestNodeFunction · 0.85
TestNodeIDFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNodeFunction · 0.68
TestNodeIDFunction · 0.68