Documentation
¶
Overview ¶
Package migration helps with migrating deprecated config options.
`panic` is only used for programmer errors, meaning they will only trigger during development.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Migrate ¶
func Migrate(logger *logrus.Entry, optPrefix string, deprecated any, newOptions map[string]Migrator) bool
Migrate checks each field of `deprecated` to see if a migration can and should be run.
Each field must be a pointer: this allows knowing if the user has set a value in the config.
Types ¶
type Dest ¶
Click to show internal directories.
Click to hide internal directories.