bank_account

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	bank_account.UnimplementedBankAccountServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	accountUseCase accounter.IUseCase,
	trxUseCase transactioner.IUseCase,
	maxAccountLimit int64,
) *Server

func (*Server) CreateAccount

func (srv *Server) CreateAccount(ctx context.Context, req *bank_account.CreateAccountRequest) (
	*bank_account.CreateAccountResponse,
	error,
)

func (*Server) FillBalance

func (srv *Server) FillBalance(ctx context.Context, req *bank_account.FillBalanceRequest) (*emptypb.Empty, error)

func (*Server) GetAccount

func (*Server) GetAccounts

func (srv *Server) GetAccounts(ctx context.Context, _ *emptypb.Empty) (*bank_account.GetAccountsResponse, error)

Jump to

Keyboard shortcuts

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