NewPrivateAdminAPI creates a new API definition for the private admin methods of the node itself.
(node *Node)
| 26 | // NewPrivateAdminAPI creates a new API definition for the private admin methods |
| 27 | // of the node itself. |
| 28 | func NewPrivateAdminAPI(node *Node) *PrivateAdminAPI { |
| 29 | return &PrivateAdminAPI{node: node} |
| 30 | } |
| 31 | |
| 32 | // AddPeer requests connecting to a remote node, and also maintaining the new |
| 33 | // connection at all times, even reconnecting if it is lost. |