config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPingTimeout    = time.Second * 5
	DefaultPingInterval   = time.Second * 30
	DefaultMetricsAddress = ":9100"

	ServersFlag        = "server"
	PingTimeoutFlag    = "timeout"
	PingIntervalFlag   = "interval"
	MetricsAddressFlag = "metrics-address"
)

Variables

View Source
var (
	DefaultServers = cli.NewStringSlice("localhost:25565")

	Servers        []string
	PingTimeout    time.Duration
	PingInterval   time.Duration
	MetricsAddress string
)

Functions

func DeclareFlags

func DeclareFlags() []cli.Flag

func SetConfig

func SetConfig(ctx *cli.Context)

Types

This section is empty.

Jump to

Keyboard shortcuts

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