Versions in this module Expand all Collapse all v1 v1.0.4 Feb 12, 2024 v1.0.3 Feb 11, 2024 Changes in this version + var BalanceSet = wire.NewSet(wire.Struct(new(BalanceServiceImpl), "*"), ...) + var StockSet = wire.NewSet(wire.Struct(new(StockServiceImpl), "*"), ...) + type BalanceService interface + CreateBalance func(ctx context.Context, req *gentrade.CreateBalanceReq) (resp *gentrade.CreateBalanceResp, err error) + GetBalance func(ctx context.Context, req *gentrade.GetBalanceReq) (resp *gentrade.GetBalanceResp, err error) + UpdateBalance func(ctx context.Context, req *gentrade.UpdateBalanceReq) (resp *gentrade.UpdateBalanceResp, err error) + type BalanceServiceImpl struct + BalanceMongoMapper balancemapper.IBalanceMongoMapper + Config *config.Config + Redis *redis.Redis + func (s *BalanceServiceImpl) CreateBalance(ctx context.Context, req *gentrade.CreateBalanceReq) (resp *gentrade.CreateBalanceResp, err error) + func (s *BalanceServiceImpl) GetBalance(ctx context.Context, req *gentrade.GetBalanceReq) (resp *gentrade.GetBalanceResp, err error) + func (s *BalanceServiceImpl) UpdateBalance(ctx context.Context, req *gentrade.UpdateBalanceReq) (resp *gentrade.UpdateBalanceResp, err error) + type StockService interface + AddStock func(ctx context.Context, req *gentrade.AddStockReq) (resp *gentrade.AddStockResp, err error) + GetStock func(ctx context.Context, req *gentrade.GetStockReq) (resp *gentrade.GetStockResp, err error) + GetStocks func(ctx context.Context, req *gentrade.GetStocksReq) (resp *gentrade.GetStocksResp, err error) + type StockServiceImpl struct + Config *config.Config + Redis *redis.Redis + func (s *StockServiceImpl) AddStock(ctx context.Context, req *gentrade.AddStockReq) (resp *gentrade.AddStockResp, err error) + func (s *StockServiceImpl) GetStock(ctx context.Context, req *gentrade.GetStockReq) (resp *gentrade.GetStockResp, err error) + func (s *StockServiceImpl) GetStocks(ctx context.Context, req *gentrade.GetStocksReq) (resp *gentrade.GetStocksResp, err error)