dfpath

package
v2.5.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultConfigDir = "/etc/dragonfly"
	DefaultLogDir    = "/var/log/dragonfly"
	DefaultPluginDir = "/usr/local/dragonfly/plugins"
)

Functions

This section is empty.

Types

type Dfpath

type Dfpath interface {
	LogDir() string
	PluginDir() string
}

Dfpath is the interface used for init project path.

func New

func New(options ...Option) (Dfpath, error)

New returns a new dfpath interface.

type Option

type Option func(d *dfpath)

Option is a functional option for configuring the dfpath.

func WithLogDir

func WithLogDir(dir string) Option

WithLogDir set the log directory.

func WithPluginDir added in v2.0.5

func WithPluginDir(dir string) Option

WithPluginDir set plugin directory.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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