Documentation
¶
Index ¶
- Constants
- type Service
- func (s *Service) AddNodeSource(source *service.NodeSource) error
- func (s *Service) AddNodeSourceList(sources []*service.NodeSource) error
- func (s *Service) AddNodeTask(list []*service.NodeTask) error
- func (s *Service) GetNodeTaskByBlockHash(hash string, taskType int, blockChain int) (*service.NodeTask, error)
- func (s *Service) GetNodeTaskByBlockNumber(number string, taskType int, blockChain int) (*service.NodeTask, error)
- func (s *Service) GetNodeTaskWithTx(txHash string, taskType int, blockChain int, taskStatus int) (*service.NodeTask, error)
- func (s *Service) GetNodeTaskWithTxs(txHash []string, taskType int, blockChain int, taskStatus int) ([]int64, error)
- func (s *Service) GetTaskWithBlock(blockChain int, nodeId string) ([]*service.NodeTask, error)
- func (s *Service) GetTaskWithReceipt(blockChain int, nodeId string) ([]*service.NodeTask, error)
- func (s *Service) GetTaskWithTx(blockChain int, nodeId string) ([]*service.NodeTask, error)
- func (s *Service) UpdateNodeTaskListStatusWithTx(txHashList []string, taskType int, blockChain int, taskStatus int) error
- func (s *Service) UpdateNodeTaskStatus(id int64, status int) error
- func (s *Service) UpdateNodeTaskStatusWithBatch(ids []int64, status int) error
- func (s *Service) UpdateNodeTaskStatusWithBlockByHash(hash string, taskType int, blockChain int, taskStatus int) error
- func (s *Service) UpdateNodeTaskStatusWithBlockByNumber(number string, taskType int, blockChain int, taskStatus int) error
- func (s *Service) UpdateNodeTaskStatusWithTx(txHash string, taskType int, blockChain int, taskStatus int) error
Constants ¶
View Source
const (
DayFormat = "20060102"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewTaskService ¶
func (*Service) AddNodeSource ¶
func (s *Service) AddNodeSource(source *service.NodeSource) error
func (*Service) AddNodeSourceList ¶
func (s *Service) AddNodeSourceList(sources []*service.NodeSource) error
func (*Service) GetNodeTaskByBlockHash ¶
func (*Service) GetNodeTaskByBlockNumber ¶
func (*Service) GetNodeTaskWithTx ¶
func (*Service) GetNodeTaskWithTxs ¶
func (*Service) GetTaskWithBlock ¶
func (*Service) GetTaskWithReceipt ¶
func (*Service) GetTaskWithTx ¶
func (*Service) UpdateNodeTaskListStatusWithTx ¶
func (*Service) UpdateNodeTaskStatus ¶
func (*Service) UpdateNodeTaskStatusWithBatch ¶
func (*Service) UpdateNodeTaskStatusWithBlockByHash ¶
func (*Service) UpdateNodeTaskStatusWithBlockByNumber ¶
Click to show internal directories.
Click to hide internal directories.