Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultCacheDir = "/var/cache/dragonfly" DefaultCacheDirMode = os.FileMode(0700) DefaultConfigDir = "/etc/dragonfly" DefaultLogDir = "/var/log/dragonfly" DefaultPluginDir = "/usr/local/dragonfly/plugins" )
Functions ¶
This section is empty.
Types ¶
type Dfpath ¶
type Dfpath interface {
CacheDir() string
CacheDirMode() fs.FileMode
LogDir() string
PluginDir() 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 WithCacheDirMode ¶ added in v2.0.30
WithCacheDirMode sets the cacheDir mode
func WithPluginDir ¶ added in v2.0.5
WithPluginDir set plugin directory.
Click to show internal directories.
Click to hide internal directories.