cli

package
v0.0.0-...-ab6dc77 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadFlags

func LoadFlags(configName string, configHelp string) (*string, *bool)

func RegisterShutdownSignals

func RegisterShutdownSignals(callback func())

func TLSUseConfig

func TLSUseConfig(tlsConfig *tls.Config, fileConfig *TLSConfig) error

func UsageWithVersion

func UsageWithVersion()

Types

type PingConfig

type PingConfig struct {
	Interval time.Duration `yaml:"interval"`
	Timeout  time.Duration `yaml:"timeout"`
}

func MakeDefaultPingConfig

func MakeDefaultPingConfig() PingConfig

type PingFlagsSocketConfigurator

type PingFlagsSocketConfigurator struct {
	Config *PingConfig
}

func (*PingFlagsSocketConfigurator) ConfigureSocket

func (c *PingFlagsSocketConfigurator) ConfigureSocket(sock *sockets.Socket) error

type TLSConfig

type TLSConfig struct {
	MinVersion       string `yaml:"min-version"`
	MaxVersion       string `yaml:"max-version"`
	KeyLogFile       string `yaml:"key-log-file"`
	Insecure         bool   `yaml:"insecure"`
	CipherPreference string `yaml:"cipher-preference"`
}

Jump to

Keyboard shortcuts

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