Files
akvorado/outlet/flow/config.go
Vincent Bernat cb92fc7199 outlet/flow: persist decoders' state
Currently, for NetFlow, persist data/options templates and options. This
should allow the outlet to restart without loosing any message.

Fix #2100
2025-11-18 21:13:51 +01:00

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{}
}