producer

package
v0.0.0-...-426e299 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageQueueDownloadTaskCreated = "download_task_created"
)

Variables

Functions

This section is empty.

Types

type Client

type Client interface {
	Produce(ctx context.Context, queueName string, payload []byte) error
}

func NewClient

func NewClient(mqConfig configs.MQ, logger *zap.Logger) (Client, error)

type DownloadTaskCreatedProducer

type DownloadTaskCreatedProducer interface {
	Produce(ctx context.Context, downloadTaskID uint64) error
}

func NewDownloadTaskCreatedProducer

func NewDownloadTaskCreatedProducer(client Client, logger *zap.Logger) (DownloadTaskCreatedProducer, error)

Jump to

Keyboard shortcuts

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