worker

package
v0.0.0-...-23f8949 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaWorker

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

MediaWorker 媒体处理 Worker

func NewMediaWorker

func NewMediaWorker(
	mongoDB *mongo.Database,
	minioClient *minioclient.Client,
	kafkaCfg *kafka.ConsumerConfig,
) (*MediaWorker, error)

NewMediaWorker 创建媒体处理 Worker

func (*MediaWorker) Start

func (w *MediaWorker) Start(ctx context.Context) error

Start 启动 Worker

func (*MediaWorker) Stop

func (w *MediaWorker) Stop() error

Stop 停止 Worker

Jump to

Keyboard shortcuts

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