config

package
v0.0.0-...-2fa33bc Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: Apache-2.0 Imports: 18 Imported by: 0 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

View Source
var App = defaultAppConfig()

App is populated by CLI flag parsing before the service starts. Treat it as read-only once the service is running.

Functions

func CloseDB

func CloseDB() error

func Init

func Init() error

Types

type AppConfig

type AppConfig struct {
	RootDir        string
	LogOutput      string
	LogLevel       string
	SelfURL        string
	Addr           string
	AllowIPs       []string
	TrustedProxies []string
	ExecTimeout    time.Duration
	PoolSize       int
}

AppConfig holds TaskFlow's startup settings.

func (*AppConfig) BindFlags

func (c *AppConfig) BindFlags(persistent, local *pflag.FlagSet)

BindFlags registers startup options on the command's persistent and local flag sets.

func (AppConfig) DataDir

func (c AppConfig) DataDir() string

func (AppConfig) LogDir

func (c AppConfig) LogDir() string

func (AppConfig) ReplayDir

func (c AppConfig) ReplayDir() string

func (AppConfig) ScriptDir

func (c AppConfig) ScriptDir() string

func (AppConfig) TempDir

func (c AppConfig) TempDir() string

func (AppConfig) WorkspaceDir

func (c AppConfig) WorkspaceDir() string

Jump to

Keyboard shortcuts

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