Documentation ¶
Index ¶
- type Server
- func (srv *Server) CreateAccount(ctx context.Context, req *bank_account.CreateAccountRequest) (*bank_account.CreateAccountResponse, error)
- func (srv *Server) FillBalance(ctx context.Context, req *bank_account.FillBalanceRequest) (*emptypb.Empty, error)
- func (srv *Server) GetAccount(ctx context.Context, req *bank_account.GetAccountRequest) (*bank_account.Account, error)
- func (srv *Server) GetAccountTransactions(ctx context.Context, req *bank_account.GetAccountTransactionsRequest) (*bank_account.GetAccountTransactionsResponse, error)
- func (srv *Server) GetAccounts(ctx context.Context, _ *emptypb.Empty) (*bank_account.GetAccountsResponse, error)
- func (srv *Server) Pay(ctx context.Context, req *bank_account.CreateTransactionRequest) (*bank_account.CreateTransactionResponse, error)
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 (*Server) CreateAccount ¶
func (*Server) FillBalance ¶
func (srv *Server) FillBalance(ctx context.Context, req *bank_account.FillBalanceRequest) (*emptypb.Empty, error)
func (*Server) GetAccount ¶
func (srv *Server) GetAccount(ctx context.Context, req *bank_account.GetAccountRequest) (*bank_account.Account, error)
func (*Server) GetAccountTransactions ¶
func (srv *Server) GetAccountTransactions(ctx context.Context, req *bank_account.GetAccountTransactionsRequest) ( *bank_account.GetAccountTransactionsResponse, error, )
func (*Server) GetAccounts ¶
func (srv *Server) GetAccounts(ctx context.Context, _ *emptypb.Empty) (*bank_account.GetAccountsResponse, error)
func (*Server) Pay ¶
func (srv *Server) Pay(ctx context.Context, req *bank_account.CreateTransactionRequest) ( *bank_account.CreateTransactionResponse, error, )
Click to show internal directories.
Click to hide internal directories.