Documentation ¶ Index ¶ Variables type Neighbor type Response Constants ¶ This section is empty. Variables ¶ View Source var PLUGIN = node.NewPlugin("WebAPI getNeighbors Endpoint", node.Enabled, configure) Functions ¶ This section is empty. Types ¶ type Neighbor ¶ type Neighbor struct { ID string `json:"id"` // comparable node identifier PublicKey string `json:"publicKey"` // public key used to verify signatures Services []peerService `json:"services,omitempty"` } type Response ¶ type Response struct { KnownPeers []Neighbor `json:"known,omitempty"` Chosen []Neighbor `json:"chosen"` Accepted []Neighbor `json:"accepted"` Error string `json:"error,omitempty"` } Source Files ¶ View all Source files plugin.go Click to show internal directories. Click to hide internal directories.