svc

package
v0.0.0-...-d62eb6d Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 9 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               *types.Config
	RPC                  *ethclient.Client
	DB                   *gorm.DB
	BTCConfig            *types.BitcoinRPCConfig
	B2NodeConfig         *types.B2NODEConfig
	LatestBlockNumber    int64
	SyncedBlockNumber    int64
	SyncedBlockHash      common.Hash
	NodeClient           *b2node.NodeClient
	LatestBTCBlockNumber int64
}

func NewServiceContext

func NewServiceContext(cfg *types.Config, bitcoinCfg *types.BitcoinRPCConfig, b2nodeConfig *types.B2NODEConfig) *ServiceContext

Jump to

Keyboard shortcuts

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