mirror of
https://github.com/akvorado/akvorado.git
synced 2025-12-11 22:14:02 +01:00
Currently, for NetFlow, persist data/options templates and options. This should allow the outlet to restart without loosing any message. Fix #2100
17 lines
522 B
Go
17 lines
522 B
Go
// SPDX-FileCopyrightText: 2025 Free Mobile
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
package flow
|
|
|
|
// Configuration describes the configuration for the flow component.
|
|
type Configuration struct {
|
|
// StatePersistFile defines a file to store decoder state (templates, sampling
|
|
// rates) to survive restarts.
|
|
StatePersistFile string `validate:"isdefault|filepath"`
|
|
}
|
|
|
|
// DefaultConfiguration returns the default configuration for the flow component.
|
|
func DefaultConfiguration() Configuration {
|
|
return Configuration{}
|
|
}
|