Documentation
¶
Index ¶
- type Server
- func (server *Server) Bytes(ctx context.Context, req *coordinationChainProto.GeneralRequest) (*coordinationChainProto.GeneralResponse, error)
- func (server *Server) GetPeers(ctx context.Context, req *coordinationChainProto.GeneralRequest) (*coordinationChainProto.GeneralResponse, error)
- func (server *Server) String(ctx context.Context, req *coordinationChainProto.GeneralRequest) (*coordinationChainProto.GeneralResponse, error)
- func (server *Server) SyncNetwork(ctx context.Context, req *coordinationChainProto.GeneralRequest) (*coordinationChainProto.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) Bytes ¶
func (server *Server) Bytes(ctx context.Context, req *coordinationChainProto.GeneralRequest) (*coordinationChainProto.GeneralResponse, error)
Bytes - coordinationChain.Bytes RPC handler
func (*Server) GetPeers ¶
func (server *Server) GetPeers(ctx context.Context, req *coordinationChainProto.GeneralRequest) (*coordinationChainProto.GeneralResponse, error)
GetPeers - get all peers in coordination chain
func (*Server) String ¶
func (server *Server) String(ctx context.Context, req *coordinationChainProto.GeneralRequest) (*coordinationChainProto.GeneralResponse, error)
String - coordinationChain.String RPC handler
func (*Server) SyncNetwork ¶
func (server *Server) SyncNetwork(ctx context.Context, req *coordinationChainProto.GeneralRequest) (*coordinationChainProto.GeneralResponse, error)
SyncNetwork - coordinationChain.SyncNetwork RPC handler
Click to show internal directories.
Click to hide internal directories.