MCPcopy
hub / github.com/cloudreve/cloudreve / WithConfigPath

Function WithConfigPath

application/dependency/options.go:31–35  ·  view source on GitHub ↗

WithConfigPath Set the path of the config file.

(p string)

Source from the content-addressed store, hash-verified

29
30// WithConfigPath Set the path of the config file.
31func WithConfigPath(p string) Option {
32 return optionFunc(func(o *dependency) {
33 o.configPath = p
34 })
35}
36
37// WithLogger Set the default logging.
38func WithLogger(l logging.Logger) Option {

Callers 4

server.goFile · 0.92
masterkey.goFile · 0.92
migrate.goFile · 0.92
eject.goFile · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected