cli

package
v0.0.0-...-d4d4850 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 10 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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳