spider

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DBMigrate

type DBMigrate struct {
	// contains filtered or unexported fields
}

func NewDbMigrate

func NewDbMigrate(db *gorm.DB, sdk *bilibili.SDK, logger *zap.Logger) *DBMigrate

func (*DBMigrate) Run

func (m *DBMigrate) Run(ctx context.Context) error

func (*DBMigrate) Stop

func (m *DBMigrate) Stop(ctx context.Context) error

type Task

type Task interface {
	Run(ctx context.Context) error
	Stop(ctx context.Context) error
}

type Update

type Update struct {
	// contains filtered or unexported fields
}

func NewUpdate

func NewUpdate(db *gorm.DB, logger *zap.Logger, sdk *bilibili.SDK, analysis *video_analysis.Analysis) *Update

func (*Update) Run

func (u *Update) Run(ctx context.Context) error

func (*Update) Stop

func (u *Update) Stop(ctx context.Context) error

type Video

type Video struct {
	// contains filtered or unexported fields
}

func NewVideo

func NewVideo(db *gorm.DB, logger *zap.Logger, sdk *bilibili.SDK, analysis *video_analysis.Analysis) *Video

func (*Video) Run

func (v *Video) Run(ctx context.Context) error

func (*Video) Stop

func (v *Video) Stop(ctx context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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