mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
When using `mapstructure:",squash"`, most structure-specific hook don't dive into the structure as they are provided with the parent structure. Add an helper to make them work on the embedded structure as well and use it for the generic "deprecated fields" hook, but also for the hook for the common Kafka configuration. This is a bit brittle. There are other use cases, but they may not need this change.
13 lines
358 B
Go
13 lines
358 B
Go
// SPDX-FileCopyrightText: 2022 Free Mobile
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
package orchestrator
|
|
|
|
// Configuration describes the configuration for the orchestrator.
|
|
type Configuration struct{}
|
|
|
|
// DefaultConfiguration represents the default configuration for the orchestrator.
|
|
func DefaultConfiguration() Configuration {
|
|
return Configuration{}
|
|
}
|