Documentation ¶
Index ¶
- func NewWalletRPCServer(srv service.Walleter) walletv1.WalletServer
- type WalletRPCServer
- func (s *WalletRPCServer) Create(ctx context.Context, req *walletv1.CreateRequest) (*walletv1.CreateResponse, error)
- func (s *WalletRPCServer) GetBalance(ctx context.Context, req *walletv1.GetBalanceRequest) (*walletv1.GetBalanceResponse, error)
- func (s *WalletRPCServer) History(ctx context.Context, req *walletv1.HistoryRequest) (*walletv1.HistoryResponse, error)
- func (s *WalletRPCServer) Transaction(ctx context.Context, req *walletv1.TransactionRequest) (*walletv1.TransactionResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWalletRPCServer ¶
func NewWalletRPCServer(srv service.Walleter) walletv1.WalletServer
Types ¶
type WalletRPCServer ¶
type WalletRPCServer struct { walletv1.UnimplementedWalletServer // contains filtered or unexported fields }
func (*WalletRPCServer) Create ¶
func (s *WalletRPCServer) Create(ctx context.Context, req *walletv1.CreateRequest) (*walletv1.CreateResponse, error)
func (*WalletRPCServer) GetBalance ¶
func (s *WalletRPCServer) GetBalance(ctx context.Context, req *walletv1.GetBalanceRequest) (*walletv1.GetBalanceResponse, error)
func (*WalletRPCServer) History ¶
func (s *WalletRPCServer) History(ctx context.Context, req *walletv1.HistoryRequest) (*walletv1.HistoryResponse, error)
func (*WalletRPCServer) Transaction ¶
func (s *WalletRPCServer) Transaction(ctx context.Context, req *walletv1.TransactionRequest) (*walletv1.TransactionResponse, error)
Click to show internal directories.
Click to hide internal directories.