Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceContext ¶
type ServiceContext struct {
Config *config.Config
HashEncoder *utils.HashEncoder
Engine *engine.StrategyEngine
DbClient *ent.Client
BotApi *tgbotapi.BotAPI
BotUserInfo *tgbotapi.User
OkxClient *okxweb3.Client
GmgnClient *gmgn.Client
TransportProxy *http.Transport
EthClient *ethclient.Client
MessageCache *cache.MessageCache
TokenMetaCache *cache.TokenMetaCache
GridModel *model.GridModel
OrderModel *model.OrderModel
SettingsModel *model.SettingsModel
StrategyModel *model.StrategyModel
WalletModel *model.WalletModel
NonceManager *eth.NonceManager
}
func NewServiceContext ¶
func NewServiceContext(c *config.Config, strategyEngine *engine.StrategyEngine, ethClient *ethclient.Client) *ServiceContext
func (*ServiceContext) Close ¶
func (svcCtx *ServiceContext) Close()
Click to show internal directories.
Click to hide internal directories.