Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCacheDir = filepath.Join(DefaultWorkHome, "cache")
View Source
var DefaultConfigDir = filepath.Join(DefaultWorkHome, "config")
View Source
var DefaultDataDir = filepath.Join(DefaultWorkHome, "data")
View Source
var DefaultLogDir = filepath.Join(DefaultWorkHome, "logs")
View Source
var DefaultPluginDir = filepath.Join(DefaultWorkHome, "plugins")
View Source
var DefaultWorkHome = filepath.Join(basic.HomeDir, ".dragonfly")
Functions ¶
This section is empty.
Types ¶
type Dfpath ¶
type Dfpath interface { WorkHome() string CacheDir() string LogDir() string DataDir() string PluginDir() string DaemonSockPath() string DaemonLockPath() string DfgetLockPath() string }
Dfpath is the interface used for init project path.
type Option ¶
type Option func(d *dfpath)
Option is a functional option for configuring the dfpath.
func WithPluginDir ¶ added in v2.0.5
WithPluginDir set plugin directory.
Click to show internal directories.
Click to hide internal directories.