Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultCacheDir = "/var/cache/dragonfly"
View Source
var DefaultConfigDir = "/etc/dragonfly"
View Source
var DefaultDataDir = "/var/lib/dragonfly"
View Source
var DefaultDownloadUnixSocketPath = "/var/run/dfdaemon.sock"
View Source
var DefaultLogDir = "/var/log/dragonfly"
View Source
var DefaultPluginDir = "/usr/local/dragonfly/plugins"
View Source
var DefaultWorkHome = "/usr/local/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 WithDownloadUnixSocketPath ¶ added in v2.0.6
WithDownloadUnixSocketPath set unix socket path.
func WithPluginDir ¶ added in v2.0.5
WithPluginDir set plugin directory.
Click to show internal directories.
Click to hide internal directories.