dbHistory

package
v0.0.0-...-8551cdf Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainIdx = 1
)
View Source
const (
	PluginName = types.PluginName
)

Variables

This section is empty.

Functions

func New

func New(ctx types.Context, cfg types.BaseCfg) *plugin

New new plugin

func NewDB

func NewDB(cfg config.Cfg, logger log.Logger) *dbService

NewDB create a connection commit event to db

Types

type SyncState

type SyncState struct {
	ID       int // both "Id" and "ID" are detected as primary key
	BlockNum int64
	ChainID  string `pg:",unique"`
	// contains filtered or unexported fields
}

SyncState sync state in pg database

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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