adaptor

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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