admin

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpiderAdminService added in v0.6.1

func GetSpiderAdminService(opts ...Option) (svc2 interfaces.SpiderAdminService, err error)

func NewSpiderAdminService

func NewSpiderAdminService(opts ...Option) (svc2 interfaces.SpiderAdminService, err error)

func ProvideGetSpiderAdminService added in v0.6.1

func ProvideGetSpiderAdminService(path string, opts ...Option) func() (svc interfaces.SpiderAdminService, err error)

func ProvideSpiderAdminService

func ProvideSpiderAdminService(path string, opts ...Option) func() (svc 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) 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 added in v0.6.1

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

func (*Service) SyncGit added in v0.6.1

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

Jump to

Keyboard shortcuts

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