Documentation
¶
Index ¶
- type FakeAccountsServer
- func (s *FakeAccountsServer) Deposit(ctx context.Context, req *accounts.Request) (*accounts.Response, error)
- func (s *FakeAccountsServer) ReserveCreditLimit(ctx context.Context, req *accounts.Request) (*accounts.Response, error)
- func (s *FakeAccountsServer) Withdrawal(ctx context.Context, req *accounts.Request) (*accounts.Response, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAccountsServer ¶
type FakeAccountsServer struct { *bufconn.Listener accounts.UnimplementedAccountsServiceServer // Functions to be mocked if needed OnDeposit func(ctx context.Context, req *accounts.Request) (*accounts.Response, error) OnWithdrawal func(ctx context.Context, req *accounts.Request) (*accounts.Response, error) OnReserve func(ctx context.Context, req *accounts.Request) (*accounts.Response, error) }
func NewFakeAccountsServer ¶
func NewFakeAccountsServer() *FakeAccountsServer
func (*FakeAccountsServer) ReserveCreditLimit ¶
func (*FakeAccountsServer) Withdrawal ¶
Click to show internal directories.
Click to hide internal directories.