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

Struct Node

src/api/node/node.go:19–28  ·  view source on GitHub ↗

Node represents a node in the network

Source from the content-addressed store, hash-verified

17
18// Node represents a node in the network
19type Node struct {
20 ID string `json:"id"`
21 Name string `json:"name"`
22 IPAddress string `json:"ip_address"`
23 Port int `json:"port"`
24 CreatedAt time.Time `json:"created_at"`
25 UpdatedAt time.Time `json:"updated_at"`
26
27 mu sync.RWMutex
28}
29
30// NewNode creates a new node
31func NewNode(id, name, ipAddress string, port int) *Node {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected