taskcreate

package
v0.0.0-...-3589e54 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

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 NewService(config *config.Config) *Service

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 (s *Service) GetRecentNumber(blockCode int64) (int64, int64, error)

func (*Service) NewBlockTask

func (s *Service) NewBlockTask(v config.BlockConfig, log *logrus.Entry) error

func (*Service) Start

func (s *Service) Start()

func (*Service) UpdateLastNumber

func (s *Service) UpdateLastNumber(blockChainCode int64, latestNumber int64) error

func (*Service) UpdateRecentNumber

func (s *Service) UpdateRecentNumber(blockChainCode int64, recentNumber int64) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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