Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Interceptor ¶
func Interceptor() grpc.UnaryServerInterceptor
func NewClient ¶
func NewClient(cfg config.Configuration) (proto.WalletServiceClient, error)
Types ¶
type WalletServer ¶
type WalletServer struct {
// contains filtered or unexported fields
}
WalletServer is grpc server for wallet
func NewWalletServer ¶
func NewWalletServer(cfg config.Configuration, walletService domain.WalletUsecase) *WalletServer
NewWalletServer return a WalletServer instance
func (*WalletServer) GetWallet ¶
func (s *WalletServer) GetWallet(ctx context.Context, in *empty.Empty) (*proto.GetWalletResponse, error)
GetWallet returns single wallet instance
func (*WalletServer) Withdraw ¶
func (s *WalletServer) Withdraw(ctx context.Context, in *proto.WithdrawRequest) (*empty.Empty, error)
Withdraw fn will withdraw money from wallet
Click to show internal directories.
Click to hide internal directories.