svc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: MIT Imports: 19 Imported by: 0

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()

Jump to

Keyboard shortcuts

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