convert

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EsWrite     escli.ESClient
	SeqNumStore store.SeqNumStore
	SeqStore    store.SeqStore
)

Functions

func InitConfig

func InitConfig(cfg *proto.ConfigNew)

func InitContract

func InitContract(cfg *proto.ConfigNew)

func InitDB

func InitDB(cfg *proto.ConfigNew)

func InitSeqNum

func InitSeqNum(cfg *proto.ConfigNew)

func InitSeqStore

func InitSeqStore(cfg *proto.ConfigNew)

func InitWriteDB

func InitWriteDB(writeDB *proto.ESDB, version int32)

InitWriteDB 设置存储数据的配置

Types

type App

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

func NewApp

func NewApp(cfg *proto.ConfigNew) *App

func (*App) ConvertBlock

func (a *App) ConvertBlock(blockSeq *block.Seq, detail *types.BlockDetail) ([]db.Record, error)

func (*App) ConvertTx

func (a *App) ConvertTx(env *db.TxEnv, op int) ([]db.Record, error)

func (*App) RecoverStats

func (a *App) RecoverStats(client escli.ESClient, lastSeq int64) error

type Service

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

func NewConvertService

func NewConvertService(cfg *proto.ConfigNew) *Service

func (*Service) Start

func (s *Service) Start()

Start 启动convert服务

Jump to

Keyboard shortcuts

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