service

package
v0.0.0-...-a308a5f Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 6 Imported by: 0

README

Service

Documentation

Index

Constants

This section is empty.

Variables

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 (s *WalletService) SendTransaction(ctx context.Context, in *v1.TxRequest) (*v1.TxReply, error)

func (*WalletService) SuggestGasPrice

func (s *WalletService) SuggestGasPrice(ctx context.Context, in *v1.Empty) (*v1.GasPrice, error)

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)

Jump to

Keyboard shortcuts

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