grpc

package
v0.0.0-...-90b204c Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Interceptor

func Interceptor() grpc.UnaryServerInterceptor

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

Jump to

Keyboard shortcuts

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