task

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BatchDeleteAllDoc

func BatchDeleteAllDoc(ctx context.Context, tx *gorm.DB, knowledge *model.KnowledgeBase, docList []*model.KnowledgeDoc) error

BatchDeleteAllDoc 批量删除所有文档

func CommonDeleting

func CommonDeleting(ctx context.Context, taskCtx string, stop <-chan struct{}, wg *sync.WaitGroup) <-chan async_task.IReport

Types

type DocDeleteTask

type DocDeleteTask struct {
	Wg  sync.WaitGroup
	Del bool // 是否需要自动清理
}

func (*DocDeleteTask) BuildServiceType

func (t *DocDeleteTask) BuildServiceType() uint32

func (*DocDeleteTask) Deleting

func (t *DocDeleteTask) Deleting(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*DocDeleteTask) InitTask

func (t *DocDeleteTask) InitTask() error

func (*DocDeleteTask) Running

func (t *DocDeleteTask) Running(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*DocDeleteTask) SubmitTask

func (t *DocDeleteTask) SubmitTask(ctx context.Context, params interface{}) (err error)

type DocImportTask

type DocImportTask struct {
	Wg  sync.WaitGroup
	Del bool // 是否需要自动清理
}

func (*DocImportTask) BuildServiceType

func (t *DocImportTask) BuildServiceType() uint32

func (*DocImportTask) Deleting

func (t *DocImportTask) Deleting(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*DocImportTask) InitTask

func (t *DocImportTask) InitTask() error

func (*DocImportTask) Running

func (t *DocImportTask) Running(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*DocImportTask) SubmitTask

func (t *DocImportTask) SubmitTask(ctx context.Context, params interface{}) (err error)

type DocSegmentImportTask added in v0.2.1

type DocSegmentImportTask struct {
	Wg  sync.WaitGroup
	Del bool // 是否需要自动清理
}

func (*DocSegmentImportTask) BuildServiceType added in v0.2.1

func (t *DocSegmentImportTask) BuildServiceType() uint32

func (*DocSegmentImportTask) Deleting added in v0.2.1

func (t *DocSegmentImportTask) Deleting(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*DocSegmentImportTask) InitTask added in v0.2.1

func (t *DocSegmentImportTask) InitTask() error

func (*DocSegmentImportTask) Running added in v0.2.1

func (t *DocSegmentImportTask) Running(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*DocSegmentImportTask) SubmitTask added in v0.2.1

func (t *DocSegmentImportTask) SubmitTask(ctx context.Context, params interface{}) (err error)

type KnowledgeDeleteTask

type KnowledgeDeleteTask struct {
	Wg  sync.WaitGroup
	Del bool // 是否需要自动清理
}

func (*KnowledgeDeleteTask) BuildServiceType

func (t *KnowledgeDeleteTask) BuildServiceType() uint32

func (*KnowledgeDeleteTask) Deleting

func (t *KnowledgeDeleteTask) Deleting(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*KnowledgeDeleteTask) InitTask

func (t *KnowledgeDeleteTask) InitTask() error

func (*KnowledgeDeleteTask) Running

func (t *KnowledgeDeleteTask) Running(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*KnowledgeDeleteTask) SubmitTask

func (t *KnowledgeDeleteTask) SubmitTask(ctx context.Context, params interface{}) (err error)

type KnowledgeReportTask added in v0.2.8

type KnowledgeReportTask struct {
	Wg  sync.WaitGroup
	Del bool // 是否需要自动清理
}

func (*KnowledgeReportTask) BuildServiceType added in v0.2.8

func (t *KnowledgeReportTask) BuildServiceType() uint32

func (*KnowledgeReportTask) Deleting added in v0.2.8

func (t *KnowledgeReportTask) Deleting(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*KnowledgeReportTask) InitTask added in v0.2.8

func (t *KnowledgeReportTask) InitTask() error

func (*KnowledgeReportTask) Running added in v0.2.8

func (t *KnowledgeReportTask) Running(ctx context.Context, taskCtx string, stop <-chan struct{}) <-chan async_task.IReport

func (*KnowledgeReportTask) SubmitTask added in v0.2.8

func (t *KnowledgeReportTask) SubmitTask(ctx context.Context, params interface{}) (err error)

type Result

type Result struct {
	Error error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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