lightning-terminal/firewall/config.go
ffranr a0e63124c0
multi: reformat long lines for readability
- Replace occurrences of `// nolint:lll` with `// nolint:ll` across
  files for consistency.
- Reformat multiline strings, comments, and function parameters to
  improve clarity and adhere to style guidelines.
- Add `// nolint:ll` comments where necessary to prevent linter
  warnings.
2025-12-09 16:12:03 +00:00

24 lines
726 B
Go

package firewall
// Config holds all config options for the firewall.
//
//nolint:ll
type Config struct {
RequestLogger *RequestLoggerConfig `group:"request-logger" namespace:"request-logger" description:"request logger settings"`
}
// RequestLoggerConfig holds all the config options for the request logger.
//
//nolint:ll
type RequestLoggerConfig struct {
RequestLoggerLevel RequestLoggerLevel `long:"level" description:"Set the request logger level. Options include 'all', 'full' and 'interceptor''"`
}
// DefaultConfig constructs the default firewall Config struct.
func DefaultConfig() *Config {
return &Config{
RequestLogger: &RequestLoggerConfig{
RequestLoggerLevel: RequestLoggerLevelInterceptor,
},
}
}