config

package
v0.0.0-...-6e5196d Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRootLogger

func NewRootLogger(format string, logLevel string) (*zap.Logger, error)

NewRootLogger creates a new logger object with the given format and log level (copied from https://github.com/cosmos/relayer/blob/v2.4.2/cmd/root.go#L174-L202)

Types

type ReporterConfig

type ReporterConfig struct {
	NetParams       string `mapstructure:"netparams"`          // should be mainnet|testnet|simnet|signet
	BTCCacheSize    uint64 `mapstructure:"btc_cache_size"`     // size of the BTC cache
	MaxHeadersInMsg uint32 `mapstructure:"max_headers_in_msg"` // maximum number of headers in a MsgInsertHeaders message
}

ReporterConfig defines configuration for the reporter.

func DefaultReporterConfig

func DefaultReporterConfig() ReporterConfig

func (*ReporterConfig) Validate

func (cfg *ReporterConfig) Validate() error

Jump to

Keyboard shortcuts

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