mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
12 lines
249 B
Go
12 lines
249 B
Go
package admin
|
|
|
|
import "github.com/crawlab-team/crawlab/core/interfaces"
|
|
|
|
type Option func(svc interfaces.SpiderAdminService)
|
|
|
|
func WithConfigPath(path string) Option {
|
|
return func(svc interfaces.SpiderAdminService) {
|
|
svc.SetConfigPath(path)
|
|
}
|
|
}
|