Documentation ¶
Index ¶
- type TradeServerImpl
- func (s *TradeServerImpl) AddStock(ctx context.Context, req *trade.AddStockReq) (resp *trade.AddStockResp, err error)
- func (s *TradeServerImpl) CreateBalance(ctx context.Context, req *trade.CreateBalanceReq) (resp *trade.CreateBalanceResp, err error)
- func (s *TradeServerImpl) GetBalance(ctx context.Context, req *trade.GetBalanceReq) (resp *trade.GetBalanceResp, err error)
- func (s *TradeServerImpl) GetStock(ctx context.Context, req *trade.GetStockReq) (resp *trade.GetStockResp, err error)
- func (s *TradeServerImpl) GetStocks(ctx context.Context, req *trade.GetStocksReq) (resp *trade.GetStocksResp, err error)
- func (s *TradeServerImpl) UpdateBalance(ctx context.Context, req *trade.UpdateBalanceReq) (resp *trade.UpdateBalanceResp, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TradeServerImpl ¶
type TradeServerImpl struct { *config.Config BalanceService service.BalanceService StockService service.StockService }
func (*TradeServerImpl) AddStock ¶
func (s *TradeServerImpl) AddStock(ctx context.Context, req *trade.AddStockReq) (resp *trade.AddStockResp, err error)
func (*TradeServerImpl) CreateBalance ¶
func (s *TradeServerImpl) CreateBalance(ctx context.Context, req *trade.CreateBalanceReq) (resp *trade.CreateBalanceResp, err error)
func (*TradeServerImpl) GetBalance ¶
func (s *TradeServerImpl) GetBalance(ctx context.Context, req *trade.GetBalanceReq) (resp *trade.GetBalanceResp, err error)
func (*TradeServerImpl) GetStock ¶
func (s *TradeServerImpl) GetStock(ctx context.Context, req *trade.GetStockReq) (resp *trade.GetStockResp, err error)
func (*TradeServerImpl) GetStocks ¶
func (s *TradeServerImpl) GetStocks(ctx context.Context, req *trade.GetStocksReq) (resp *trade.GetStocksResp, err error)
func (*TradeServerImpl) UpdateBalance ¶
func (s *TradeServerImpl) UpdateBalance(ctx context.Context, req *trade.UpdateBalanceReq) (resp *trade.UpdateBalanceResp, err error)
Click to show internal directories.
Click to hide internal directories.