svc

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2025 License: MIT Imports: 20 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
	SolanaRpc        *rpc.Client
	OkxClient        *okxweb3.Client
	GmgnClient       *gmgn.Client
	JupagClient      *jupag.Client
	TransportProxy   *http.Transport
	LookuptableCache *cache.LookuptableCache
	MessageCache     *cache.MessageCache
	TokenMetaCache   *cache.TokenMetaCache
	GridModel        *model.GridModel
	OrderModel       *model.OrderModel
	SettingsModel    *model.SettingsModel
	StrategyModel    *model.StrategyModel
	WalletModel      *model.WalletModel
}

func NewServiceContext

func NewServiceContext(c *config.Config, strategyEngine *engine.StrategyEngine) *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