event

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KnowledgeBaseUploadTopic = "knowledge_base_upload_topic"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type KnowledgeBaseConsumer

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

func NewKnowledgeBaseConsumer

func NewKnowledgeBaseConsumer(svc knowledge_base.RepositoryBaseSvc, q mq.MQ) (*KnowledgeBaseConsumer, error)

func (*KnowledgeBaseConsumer) Consume

func (k *KnowledgeBaseConsumer) Consume(ctx context.Context) error

func (*KnowledgeBaseConsumer) Start

func (k *KnowledgeBaseConsumer) Start(ctx context.Context)

func (*KnowledgeBaseConsumer) Stop

type KnowledgeBaseUploadEvent

type KnowledgeBaseUploadEvent struct {
	Biz   string `json:"biz"`
	BizID int64  `json:"bizID"`
	// 文件名
	Name string `json:"name"`
	// 文件内容
	Data []byte `json:"data"`
	// 用途
	Type            string `json:"type"`
	KnowledgeBaseID string `json:"knowledgeBaseID"`
}

KnowledgeBaseUploadEvent 知识库上传事件

Jump to

Keyboard shortcuts

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