Documentation ¶
Index ¶
- func GetSpiderAdminService() (svc2 interfaces.SpiderAdminService, err error)
- func NewSpiderAdminService(opts ...Option) (svc2 interfaces.SpiderAdminService, err error)
- type Option
- type Service
- func (svc *Service) Clone(id primitive.ObjectID, opts *interfaces.SpiderCloneOptions) (err error)
- func (svc *Service) Delete(id primitive.ObjectID) (err error)
- func (svc *Service) Export(id primitive.ObjectID) (filePath string, err error)
- func (svc *Service) GetConfigPath() (path string)
- func (svc *Service) Schedule(id primitive.ObjectID, opts *interfaces.SpiderRunOptions) (taskIds []primitive.ObjectID, err error)
- func (svc *Service) SetConfigPath(path string)
- func (svc *Service) Start() (err error)
- func (svc *Service) SyncGit() (err error)
- func (svc *Service) SyncGitOne(g interfaces.Git) (err error)
- type ServiceV2
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSpiderAdminService ¶
func GetSpiderAdminService() (svc2 interfaces.SpiderAdminService, err error)
func NewSpiderAdminService ¶
func NewSpiderAdminService(opts ...Option) (svc2 interfaces.SpiderAdminService, err error)
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Clone ¶
func (svc *Service) Clone(id primitive.ObjectID, opts *interfaces.SpiderCloneOptions) (err error)
func (*Service) GetConfigPath ¶
func (*Service) Schedule ¶
func (svc *Service) Schedule(id primitive.ObjectID, opts *interfaces.SpiderRunOptions) (taskIds []primitive.ObjectID, err error)
func (*Service) SetConfigPath ¶
func (*Service) SyncGitOne ¶
func (svc *Service) SyncGitOne(g interfaces.Git) (err error)
type ServiceV2 ¶
type ServiceV2 struct {
// contains filtered or unexported fields
}
func GetSpiderAdminServiceV2 ¶
func (*ServiceV2) Schedule ¶
func (svc *ServiceV2) Schedule(id primitive.ObjectID, opts *interfaces.SpiderRunOptions) (taskIds []primitive.ObjectID, err error)
Click to show internal directories.
Click to hide internal directories.