p2p

package
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2019 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL