Documentation ¶
Index ¶
- Variables
- func NewTaskCacheService(cfg *config.Chain, x *xlog.XLog) collect.StoreTaskInterface
- func NewTaskCacheService2(cfg *config.Chain, x *logrus.Entry) collect.StoreTaskInterface
- type Service
- func (s *Service) DelErrTxNodeTask(blockchain int64, key string) (*collect.NodeTask, error)
- func (s *Service) DelNodeTask(blockchain int64, key string) (int64, *collect.NodeTask, error)
- func (s *Service) GetAllKeyForContract(blockchain int64) ([]string, error)
- func (s *Service) GetAllKeyForErrTx(blockchain int64) ([]string, error)
- func (s *Service) GetAllKeyForNodeTask(blockchain int64) ([]string, error)
- func (s *Service) GetAllNodeId(blockchain int64) ([]string, error)
- func (s *Service) GetClusterNode(blockChain int64, prefix string) (map[string]int64, error)
- func (s *Service) GetContract(blockchain int64, contract string) (string, error)
- func (s *Service) GetErrTxNodeTask(blockchain int64, key string) (int64, *collect.NodeTask, error)
- func (s *Service) GetMonitorAddress(blockChain int64) ([]string, error)
- func (s *Service) GetNodeTask(blockchain int64, key string) (int64, *collect.NodeTask, error)
- func (s *Service) ResetNodeTask(blockchain int64, oldKey, key string) error
- func (s *Service) SendNodeTask(list []*collect.NodeTask, partitions []int64) []*kafka.Message
- func (s *Service) StoreClusterHealthStatus(blockChain int64, data map[string]int64) error
- func (s *Service) StoreClusterNode(blockChain int64, prefix string, data any) error
- func (s *Service) StoreContract(blockchain int64, contract string, data string) error
- func (s *Service) StoreErrTxNodeTask(blockchain int64, key string, data any) error
- func (s *Service) StoreLatestBlock(blockchain int64, key string, data any, number string) error
- func (s *Service) StoreNodeId(blockchain int64, key string, data any) error
- func (s *Service) StoreNodeTask(key string, task *collect.NodeTask, append bool)
- func (s *Service) UpdateNodeTaskStatus(key string, status int) error
- func (s *Service) UpdateNodeTaskStatusWithBatch(keys []string, status int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ContractKey = "contract_%v" ErrTxKey = "errTx_%v" NodeTaskKey = "nodeTask_%v" MonitorKey = "monitorAddress_%v" LatestBlockKey = "latestBlock" NodeKey = "nodeKey_%v" ClusterKey = "cluster_%v_%v" ClusterHealthKey = "clusterHealth_%v" )
Functions ¶
func NewTaskCacheService ¶
func NewTaskCacheService2 ¶ added in v0.5.1
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) DelErrTxNodeTask ¶
func (*Service) DelNodeTask ¶
func (*Service) GetAllKeyForContract ¶
func (*Service) GetAllKeyForErrTx ¶
func (*Service) GetAllKeyForNodeTask ¶
func (*Service) GetClusterNode ¶
func (*Service) GetContract ¶
func (*Service) GetErrTxNodeTask ¶
func (*Service) GetMonitorAddress ¶
func (*Service) GetNodeTask ¶
func (*Service) ResetNodeTask ¶
func (*Service) SendNodeTask ¶
func (*Service) StoreClusterHealthStatus ¶
func (*Service) StoreClusterNode ¶
func (*Service) StoreContract ¶
func (*Service) StoreErrTxNodeTask ¶
func (*Service) StoreLatestBlock ¶
func (*Service) StoreNodeId ¶
func (*Service) StoreNodeTask ¶
StoreNodeTask StoreExecTask key which tx:tx_txHash,receipt:receipt_txHash, block: block_number_blockHash
func (*Service) UpdateNodeTaskStatus ¶
Click to show internal directories.
Click to hide internal directories.