mirror of
https://github.com/lightninglabs/lightning-terminal.git
synced 2026-08-13 12:33:36 +02:00
- 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.
24 lines
726 B
Go
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,
|
|
},
|
|
}
|
|
}
|