admin

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSpiderAdminService

func NewSpiderAdminService(opts ...Option) (svc2 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) (err error)

func (*Service) SetConfigPath

func (svc *Service) SetConfigPath(path string)

Jump to

Keyboard shortcuts

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