Documentation
¶
Index ¶
- type Server
- func (server *Server) ConnectedPeers(ctx context.Context, req *p2pProto.GeneralRequest) (*p2pProto.GeneralResponse, error)
- func (server *Server) NumConnectedPeers(ctx context.Context, req *p2pProto.GeneralRequest) (*p2pProto.GeneralResponse, error)
- func (server *Server) SyncNetwork(ctx context.Context, req *p2pProto.GeneralRequest) (*p2pProto.GeneralResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct{}
Server - RPC server
func (*Server) ConnectedPeers ¶
func (server *Server) ConnectedPeers(ctx context.Context, req *p2pProto.GeneralRequest) (*p2pProto.GeneralResponse, error)
ConnectedPeers - p2p.ConnectedPeers RPC handler.
func (*Server) NumConnectedPeers ¶
func (server *Server) NumConnectedPeers(ctx context.Context, req *p2pProto.GeneralRequest) (*p2pProto.GeneralResponse, error)
NumConnectedPeers - p2p.NumConnectedPeers RPC handler
func (*Server) SyncNetwork ¶
func (server *Server) SyncNetwork(ctx context.Context, req *p2pProto.GeneralRequest) (*p2pProto.GeneralResponse, error)
SyncNetwork - p2p.SyncNetwork RPC handler
Click to show internal directories.
Click to hide internal directories.