Documentation
¶
Index ¶
- Variables
- type GreeterService
- type WalletService
- func (s *WalletService) DepositWallet(ctx context.Context, in *v1.Deposit) (*v1.DepositResult, error)
- func (s *WalletService) GetBalance(ctx context.Context, in *v1.BalanceRequest) (*v1.BalanceReply, error)
- func (s *WalletService) SendTransaction(ctx context.Context, in *v1.TxRequest) (*v1.TxReply, error)
- func (s *WalletService) SuggestGasPrice(ctx context.Context, in *v1.Empty) (*v1.GasPrice, error)
- func (s *WalletService) TxCost(ctx context.Context, in *v1.TxCostRequest) (*v1.TxCostReply, error)
- func (s *WalletService) WithdrawWallet(ctx context.Context, in *v1.Withdrawal) (*v1.WithdrawalResult, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewGreeterService, NewWalletService)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type GreeterService ¶
type GreeterService struct {
v1.UnimplementedGreeterServer
// contains filtered or unexported fields
}
GreeterService is a greeter service.
func NewGreeterService ¶
func NewGreeterService(uc *biz.GreeterUsecase) *GreeterService
NewGreeterService new a greeter service.
func (*GreeterService) SayHello ¶
func (s *GreeterService) SayHello(ctx context.Context, in *v1.HelloRequest) (*v1.HelloReply, error)
SayHello implements helloworld.GreeterServer.
type WalletService ¶
type WalletService struct {
v1.UnimplementedWalletServer
// contains filtered or unexported fields
}
func NewWalletService ¶
func NewWalletService(uc *biz.WalletUsecase) *WalletService
func (*WalletService) DepositWallet ¶
func (s *WalletService) DepositWallet(ctx context.Context, in *v1.Deposit) (*v1.DepositResult, error)
func (*WalletService) GetBalance ¶
func (s *WalletService) GetBalance(ctx context.Context, in *v1.BalanceRequest) (*v1.BalanceReply, error)
SayHello implements helloworld.GreeterServer.
func (*WalletService) SendTransaction ¶
func (*WalletService) SuggestGasPrice ¶
func (*WalletService) TxCost ¶
func (s *WalletService) TxCost(ctx context.Context, in *v1.TxCostRequest) (*v1.TxCostReply, error)
func (*WalletService) WithdrawWallet ¶
func (s *WalletService) WithdrawWallet(ctx context.Context, in *v1.Withdrawal) (*v1.WithdrawalResult, error)
Click to show internal directories.
Click to hide internal directories.