Files
crawlab/core/node/config/options.go
2024-06-14 15:42:50 +08:00

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)
}
}