admin

package
v0.0.0-...-0485310 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2024 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

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 Option

type Option func(svc interfaces.SpiderAdminService)

func WithConfigPath

func WithConfigPath(path string) Option

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

func (svc *Service) Delete(id primitive.ObjectID) (err error)

func (*Service) Export

func (svc *Service) Export(id primitive.ObjectID) (filePath string, err error)

func (*Service) GetConfigPath

func (svc *Service) GetConfigPath() (path string)

func (*Service) Schedule

func (svc *Service) Schedule(id primitive.ObjectID, opts *interfaces.SpiderRunOptions) (taskIds []primitive.ObjectID, err error)

func (*Service) SetConfigPath

func (svc *Service) SetConfigPath(path string)

func (*Service) Start

func (svc *Service) Start() (err error)

func (*Service) SyncGit

func (svc *Service) SyncGit() (err error)

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 GetSpiderAdminServiceV2() (svc2 *ServiceV2, err error)

func (*ServiceV2) Schedule

func (svc *ServiceV2) Schedule(id primitive.ObjectID, opts *interfaces.SpiderRunOptions) (taskIds []primitive.ObjectID, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL