config

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// contains filtered or unexported fields
}

Config is the main config mega-struct

func NewDefaultConfig

func NewDefaultConfig() *Config

func (*Config) IsDebugEnabled

func (cfg *Config) IsDebugEnabled() int

func (*Config) IsVerboseOrHigher

func (cfg *Config) IsVerboseOrHigher() bool

IsVerboseOrHigher returns 1 if the log level is verbose or higher

func (*Config) SetLoggerLevel

func (cfg *Config) SetLoggerLevel()

type LogSourceConfig

type LogSourceConfig struct {
	LogConnectionStats bool
	LogRequestHeaders  bool
	LogRequestBody     bool
	LogResponseHeaders bool
	LogResponseBody    bool
}

LogSourceConfig holds the configuration toggles for logging request and response data

func (*LogSourceConfig) String

func (l *LogSourceConfig) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL