Discover Packages
github.com/iotaledger/goshimmer
plugins
webapi
autopeering
package
Version:
v0.5.5
Opens a new window with list of versions in this module.
Published: Apr 1, 2021
License: Apache-2.0, BSD-2-Clause
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const PluginName = "WebAPI autopeering Endpoint"
PluginName is the name of the web API autopeering endpoint plugin.
Plugin gets the plugin instance.
type Neighbor struct {
ID string `json:"id"`
PublicKey string `json:"publicKey"`
Services []peerService `json:"services,omitempty"`
}
Neighbor contains information of a neighbor peer.
type Response struct {
KnownPeers []Neighbor `json:"known,omitempty"`
Chosen []Neighbor `json:"chosen"`
Accepted []Neighbor `json:"accepted"`
Error string `json:"error,omitempty"`
}
Response contains information of the autopeering.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.