config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

Jump to

Keyboard shortcuts

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