service

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type BlockSyncService

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

func NewBlockSyncService

func NewBlockSyncService(checkInfoUsecase *biz.CheckInfoUsecase, logger *logger.Logger, client *data.CkbNodeClient, systemScripts data.SystemScripts, blockSyncer data.BlockSyncer) *BlockSyncService

func (*BlockSyncService) Start

func (s *BlockSyncService) Start(ctx context.Context, mode string) error

func (*BlockSyncService) Stop

func (s *BlockSyncService) Stop(ctx context.Context) error

type CheckInfoCleanerService

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

func NewCheckInfoService

func NewCheckInfoService(checkInfoUsecase *biz.CheckInfoUsecase, logger *logger.Logger, client *data.CkbNodeClient) *CheckInfoCleanerService

func (CheckInfoCleanerService) Start

func (scv CheckInfoCleanerService) Start(ctx context.Context, mode string) error

func (CheckInfoCleanerService) Stop

type InvalidDataCleaner

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

func NewInvalidDataService

func NewInvalidDataService(invalidDataUsecase *biz.InvalidDataUsecase, logger *logger.Logger, client *data.CkbNodeClient) *InvalidDataCleaner

func (InvalidDataCleaner) Start

func (i InvalidDataCleaner) Start(ctx context.Context, _ string) error

func (InvalidDataCleaner) Stop

type MetadataSyncService

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

func NewMetadataSyncService

func NewMetadataSyncService(checkInfoUsecase *biz.CheckInfoUsecase, logger *logger.Logger, client *data.CkbNodeClient, systemScripts data.SystemScripts, metadataSyncer data.MetadataSyncer) *MetadataSyncService

func (*MetadataSyncService) Start

func (s *MetadataSyncService) Start(ctx context.Context, mode string) error

func (*MetadataSyncService) Stop

type Service

type Service interface {
	Start(context.Context, string) error
	Stop(context.Context) error
}

type WithdrawExtraInfoService

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

func NewWithdrawExtraInfoService

func NewWithdrawExtraInfoService(extraInfoUsecase *biz.WithdrawExtraInfoUsecase, logger *logger.Logger, client *data.CkbNodeClient) *WithdrawExtraInfoService

func (WithdrawExtraInfoService) Start

func (WithdrawExtraInfoService) Stop

Jump to

Keyboard shortcuts

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