NewPublicAdminAPI creates a new API definition for the public admin methods of the node itself.
(node *Node)
| 225 | // NewPublicAdminAPI creates a new API definition for the public admin methods |
| 226 | // of the node itself. |
| 227 | func NewPublicAdminAPI(node *Node) *PublicAdminAPI { |
| 228 | return &PublicAdminAPI{node: node} |
| 229 | } |
| 230 | |
| 231 | // Peers retrieves all the information we know about each individual peer at the |
| 232 | // protocol granularity. |