Documentation ¶
Index ¶
- type Service
- func (s *Service) AddNodeSource(list []*service.NodeSource) error
- func (s *Service) CreateBlockTask()
- func (s *Service) GetLastBlockNumberForEther(v *config.BlockConfig) error
- func (s *Service) GetLastBlockNumberForTron(v *config.BlockConfig) error
- func (s *Service) GetRecentNumber(blockCode int64) (int64, int64, error)
- func (s *Service) NewBlockTask(v config.BlockConfig, log *logrus.Entry) error
- func (s *Service) Start()
- func (s *Service) UpdateLastNumber(blockChainCode int64, latestNumber int64) error
- func (s *Service) UpdateRecentNumber(blockChainCode int64, recentNumber int64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) AddNodeSource ¶
func (s *Service) AddNodeSource(list []*service.NodeSource) error
func (*Service) CreateBlockTask ¶
func (s *Service) CreateBlockTask()
func (*Service) GetLastBlockNumberForEther ¶
func (s *Service) GetLastBlockNumberForEther(v *config.BlockConfig) error
func (*Service) GetLastBlockNumberForTron ¶
func (s *Service) GetLastBlockNumberForTron(v *config.BlockConfig) error
func (*Service) GetRecentNumber ¶
func (*Service) NewBlockTask ¶
func (*Service) UpdateLastNumber ¶
Click to show internal directories.
Click to hide internal directories.