watch

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagEVMRPC             = "evm.rpc"
	FlagEVMContractAddress = "evm.contract-address"

	FlagMetricsEndpoint = "metrics.endpoint"
	FlagMetricsTLS      = "metrics.tls"

	FlagLogLevel  = "log.level"
	FlagLogFormat = "log.format"
)

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

Command the watcher start command.

func GetLogger

func GetLogger(level string, format string) (tmlog.Logger, error)

GetLogger creates a new logger and returns

func TrapSignal

func TrapSignal(logger tmlog.Logger, cancel context.CancelFunc)

TrapSignal will listen for any OS signal and cancel the context to gracefully exit.

func ValidateEVMAddress

func ValidateEVMAddress(addr string) error

Types

type StartConfig

type StartConfig struct {
	EVMRPC          string
	ContractAddress string
	MetricsConfig   telemetry.Config
	LogLevel        string
	LogFormat       string
}

func (StartConfig) ValidateBasics

func (cfg StartConfig) ValidateBasics() error

Jump to

Keyboard shortcuts

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