indexer

package module
v0.0.0-...-d9430aa Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(gitVersion string) func(ctx *cli.Context) error

Types

type Config

type Config struct {
	EthRpc              string
	DisableHTTP2        bool
	SyncBlockHeight     uint64
	LoopInterval        time.Duration
	DbUsername          string
	DbPassword          string
	DbHost              string
	DbPort              uint64
	DbName              string
	RpcHost             string
	RpcPort             uint64
	MetricsServerEnable bool
	MetricsHostname     string
	MetricsPort         uint64
	LogLevel            string
	LogTerminal         bool
}

func NewConfig

func NewConfig(ctx *cli.Context) (Config, error)

type Indexer

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

func NewIndexer

func NewIndexer(cfg Config) (*Indexer, error)

func (Indexer) Start

func (i Indexer) Start() error

func (Indexer) Stop

func (i Indexer) Stop()

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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