infrastructure

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Infra

type Infra struct {
	LocalDB            *gorm.DB
	Keystore           *keystore.KeyStore
	HTTPClient         *http.Client
	EthClient          *ethclient.Client
	IpfsClient         *ipfs.Client
	FilecoinClient     *filecoin.Client
	Index              *indexer.Index
	LocalStorage       storage.Storager
	Compressor         compressor.Interface
	CompressionEnabled bool
}

func New

func New(cfg *config.Config) *Infra

type StatInfra

type StatInfra struct {
	DB        *sqlx.DB
	EthClient *ethclient.Client
	AqlDB     *sqlx.DB

	StatsRepo *repository.StatsStorage
	ChunkRepo *repository.IndexStorage
	Service   *stat.Service
}

func NewStatInfra

func NewStatInfra(cfg *config.StatConfig) *StatInfra

func (*StatInfra) Close

func (i *StatInfra) Close()

Jump to

Keyboard shortcuts

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