mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
14 lines
253 B
Go
14 lines
253 B
Go
package config
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/interfaces"
|
|
)
|
|
|
|
type Option func(svc interfaces.NodeConfigService)
|
|
|
|
func WithConfigPath(path string) Option {
|
|
return func(svc interfaces.NodeConfigService) {
|
|
svc.SetConfigPath(path)
|
|
}
|
|
}
|