db

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MonitorKey = "monitorAddress_%v"
)

Functions

func NewChService

func NewChService(cfg *config.Config, log *xlog.XLog) store.DbStoreInterface

Types

type CacheService

type CacheService struct {
	// contains filtered or unexported fields
}

func NewCacheService

func NewCacheService(cfgs []*config.Chain, x *xlog.XLog) *CacheService

func (*CacheService) GetMonitorAddress

func (s *CacheService) GetMonitorAddress(blockChain int64) ([]string, error)

func (*CacheService) SetMonitorAddress

func (s *CacheService) SetMonitorAddress(blockChain int64, addrList []*store.MonitorAddress) error

type ClickhouseDb

type ClickhouseDb struct {
	// contains filtered or unexported fields
}

func (*ClickhouseDb) AddMonitorAddress

func (m *ClickhouseDb) AddMonitorAddress(blockchain int64, address *store.MonitorAddress) error

func (*ClickhouseDb) DelMonitorAddress

func (m *ClickhouseDb) DelMonitorAddress(blockchain int64, token string, address string) error

func (*ClickhouseDb) DelSubFilter added in v0.5.1

func (m *ClickhouseDb) DelSubFilter(id int64) error

func (*ClickhouseDb) DelSubFilter2 added in v0.5.1

func (m *ClickhouseDb) DelSubFilter2(filter *store.SubFilter) error

func (*ClickhouseDb) GetAddressByToken

func (m *ClickhouseDb) GetAddressByToken(blockchain int64, token string) ([]*store.MonitorAddress, error)

func (*ClickhouseDb) GetAddressByToken2

func (m *ClickhouseDb) GetAddressByToken2(token string) ([]*store.MonitorAddress, error)

func (*ClickhouseDb) GetAddressByToken3

func (m *ClickhouseDb) GetAddressByToken3(blockchain int64) ([]*store.MonitorAddress, error)

func (*ClickhouseDb) GetNodeTokenByEmail

func (m *ClickhouseDb) GetNodeTokenByEmail(email string) (*store.NodeToken, error)

func (*ClickhouseDb) GetNodeTokenByToken added in v0.5.3

func (m *ClickhouseDb) GetNodeTokenByToken(token string) (*store.NodeToken, error)

func (*ClickhouseDb) GetSubFilter added in v0.5.1

func (m *ClickhouseDb) GetSubFilter(token string, blockChain int64, txCode string) ([]*store.SubFilter, error)

func (*ClickhouseDb) NewBackupTx added in v0.5.1

func (m *ClickhouseDb) NewBackupTx(blockchain int64, txs []*store.BackupTx) error

func (*ClickhouseDb) NewBlock

func (m *ClickhouseDb) NewBlock(blockchain int64, blocks []*store.Block) error

func (*ClickhouseDb) NewReceipt

func (m *ClickhouseDb) NewReceipt(blockchain int64, receipts []*store.Receipt) error

func (*ClickhouseDb) NewSubFilter added in v0.5.1

func (m *ClickhouseDb) NewSubFilter(filters []*store.SubFilter) (err error)

func (*ClickhouseDb) NewSubTx

func (m *ClickhouseDb) NewSubTx(blockchain int64, txs []*store.SubTx) error

func (*ClickhouseDb) NewToken

func (m *ClickhouseDb) NewToken(token *store.NodeToken) error

func (*ClickhouseDb) NewTx

func (m *ClickhouseDb) NewTx(blockchain int64, txs []*store.Tx) error

func (*ClickhouseDb) UpdateToken

func (m *ClickhouseDb) UpdateToken(token string, nodeToken *store.NodeToken) error

Jump to

Keyboard shortcuts

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