Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAdminAddress ¶
FindAdminAddress parses the admin address from command-line args.
Types ¶
type Config ¶
type Config struct {
Admin string // host:port format, empty if no admin
StaticListeners []Listener
}
func ParseListeners ¶
ParseListeners parses the admin address (if any) and all static listeners from command-line args.
This mimics Envoy's config merging behavior: - Each config file or YAML string is parsed in order. - For each listener, the last occurrence with a given name wins (mechanical merge, like Envoy's protobuf merge). - The admin address is also replaced by the last occurrence.
Click to show internal directories.
Click to hide internal directories.