mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
15 lines
316 B
Go
15 lines
316 B
Go
package ds
|
|
|
|
import (
|
|
"github.com/crawlab-team/crawlab/core/interfaces"
|
|
"time"
|
|
)
|
|
|
|
type DataSourceServiceOption func(svc interfaces.DataSourceService)
|
|
|
|
func WithMonitorInterval(duration time.Duration) DataSourceServiceOption {
|
|
return func(svc interfaces.DataSourceService) {
|
|
svc.SetMonitorInterval(duration)
|
|
}
|
|
}
|