package
Version:
v0.0.0-...-f0e227c
Opens a new window with list of versions in this module.
Published: Feb 5, 2024
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
FromYAMLFile returns a new value of type T created from the given YAML config file.
func ParseFlags[T any, P interface{ *T }]() (*T, error)
ParseFlags parses CLI flags and
returns a Flags value created from them.
type Initer interface {
Init()
}
type TLS struct {
Enable bool `yaml:"tls"`
Cert string `yaml:"cert"`
Key string `yaml:"key"`
Ca string `yaml:"ca"`
Insecure bool `yaml:"insecure"`
}
TLS provides TLS configuration options.
MakeConfig assembles a tls.Config from t and serverName.
type Validator interface {
Validate() error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.