Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIDebugConfig ¶
type APIDebugConfig struct {
Enabled bool // AUTOPDF_API_DEBUG=true
LogDirectory string // AUTOPDF_API_LOG_DIR=/var/log/autopdf
ConcreteFileDir string // AUTOPDF_API_CONCRETE_DIR=/tmp/autopdf
DefaultVerbose int // AUTOPDF_API_DEFAULT_VERBOSE=1
WatchMode bool // AUTOPDF_API_WATCH_MODE=true
}
APIDebugConfig holds configuration for API debug settings
func LoadDebugConfigFromEnv ¶
func LoadDebugConfigFromEnv() *APIDebugConfig
LoadDebugConfigFromEnv loads debug configuration from environment variables
func (*APIDebugConfig) GetConcreteFileDirectory ¶
func (c *APIDebugConfig) GetConcreteFileDirectory() string
GetConcreteFileDirectory returns the configured concrete file directory
func (*APIDebugConfig) GetLogDirectory ¶
func (c *APIDebugConfig) GetLogDirectory() string
GetLogDirectory returns the configured log directory
func (*APIDebugConfig) IsDebugEnabled ¶
func (c *APIDebugConfig) IsDebugEnabled() bool
IsDebugEnabled returns true if debug mode is enabled
func (*APIDebugConfig) IsWatchModeEnabled ¶
func (c *APIDebugConfig) IsWatchModeEnabled() bool
IsWatchModeEnabled returns true if watch mode is enabled