Documentation
¶
Index ¶
- type Server
- func (server *Server) Bytes(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
- func (server *Server) GetBalance(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
- func (server *Server) GetNumTransactions(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
- func (server *Server) QueryTransaction(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
- func (server *Server) ReadChainFromMemory(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
- func (server *Server) String(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.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 *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
Bytes - chain.Bytes RPC handler
func (*Server) GetBalance ¶
func (server *Server) GetBalance(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
GetBalance - chain.GetBalance RPC handler
func (*Server) GetNumTransactions ¶ added in v0.3.0
func (server *Server) GetNumTransactions(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
GetNumTransactions - get total number of transactions in given account chain
func (*Server) QueryTransaction ¶ added in v0.3.0
func (server *Server) QueryTransaction(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
QueryTransaction - chain.QueryTransaction RPC handler
func (*Server) ReadChainFromMemory ¶
func (server *Server) ReadChainFromMemory(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
ReadChainFromMemory - chain.ReadChainFromMemory RPC handler
func (*Server) String ¶
func (server *Server) String(ctx context.Context, req *chainProto.GeneralRequest) (*chainProto.GeneralResponse, error)
String - chain.String RPC handler
Click to show internal directories.
Click to hide internal directories.