Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAdminAddress ¶
FindAdminAddress parses the admin address from config sources.
func FindAdminAddressFromArgs ¶ added in v1.3.0
FindAdminAddressFromArgs extracts config sources from args and returns the admin address.
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 config sources.
This mimics Envoy's config merging behavior from source/server/server.cc:
- configPath is loaded first (if non-empty)
- configYaml is merged on top via protobuf MergeFrom (if non-empty)
- configYaml always wins for conflicting fields, regardless of which was specified first on CLI
For listeners with the same name, the later config wins (protobuf MergeFrom behavior).
Click to show internal directories.
Click to hide internal directories.