mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-29 18:00:51 +01:00
feat: added modules
This commit is contained in:
14
core/interfaces/data_source_service.go
Normal file
14
core/interfaces/data_source_service.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package interfaces
|
||||
|
||||
import (
|
||||
"go.mongodb.org/mongo-driver/bson/primitive"
|
||||
"time"
|
||||
)
|
||||
|
||||
type DataSourceService interface {
|
||||
ChangePassword(id primitive.ObjectID, password string) (err error)
|
||||
Monitor()
|
||||
CheckStatus(id primitive.ObjectID) (err error)
|
||||
SetTimeout(duration time.Duration)
|
||||
SetMonitorInterval(duration time.Duration)
|
||||
}
|
||||
Reference in New Issue
Block a user