config

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BobbitConfig

type BobbitConfig struct {
	// SocketPath specifies the file system path for the Unix domain socket.
	SocketPath string
	// DataDir specifies the directory where job-related data (logs, metadata, lock files) are stored.
	DataDir string
	// DebugMode indicates whether the daemon should run in debug mode, enabling verbose logging.
	DebugMode bool
}

BobbitConfig holds the configuration parameters for the Bobbit daemon.

func New

func New() BobbitConfig

New creates and initializes a new BobbitConfig instance. It retrieves configuration values from environment variables or uses default paths. Specifically, it looks for "BOBBIT_DATA_DIR" for the data directory and "BOBBIT_SOCKET_PATH" for the socket path. DebugMode is enabled if the "DEBUG" environment variable is set to any non-empty value.

Jump to

Keyboard shortcuts

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