MCPcopy Create free account
hub / github.com/KOSASIH/skybridge / GetPort

Method GetPort

src/api/node/node.go:64–68  ·  view source on GitHub ↗

GetPort returns the node's port

()

Source from the content-addressed store, hash-verified

62
63// GetPort returns the node's port
64func (n *Node) GetPort() int {
65 n.mu.RLock()
66 defer n.mu.RUnlock()
67 return n.Port
68}
69
70// GetCreatedAt returns the node's creation time
71func (n *Node) GetCreatedAt() time.Time {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected