cmd

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// exporter & indexer
	Config          = "config"
	LogLevel        = "log-level"
	LogColorDisable = "log-color-disable"
	Port            = "port"

	// dev
	PackageFilter = "package-filter"
)

Variables

View Source
var (
	AppName = ""
	Version = ""
	Commit  = ""
)
View Source
var VersionCmd = &cobra.Command{
	Use:   "version",
	Short: "Show information about the current binary build",
	Args:  cobra.NoArgs,
	Run:   printBuildInfo,
}

Functions

func ConfigFlag

func ConfigFlag() *pflag.FlagSet

func FilterFlag

func FilterFlag() *pflag.FlagSet

func LogFlags

func LogFlags() *pflag.FlagSet

func PortFlag

func PortFlag() *pflag.FlagSet

func StartCmd

func StartCmd() *cobra.Command

func StartExporterCmd

func StartExporterCmd() *cobra.Command

func StartIndexerCmd

func StartIndexerCmd() *cobra.Command

func ValidateCmd

func ValidateCmd() *cobra.Command

Types

type ServerBuilder added in v1.1.1

type ServerBuilder func(
	port string,
	logger *logrus.Logger,
	cfg *config.MonitoringConfig,
	supportChains *config.SupportChains,
) (*http.Server, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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