producer

package
v0.0.0-...-654e1bf Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	MessageQueueSubmissionCreated = "submission_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, admin admin.Admin) (Client, error)

type SubmissionCreatedProducer

type SubmissionCreatedProducer interface {
	Produce(ctx context.Context, submissionID uint64) error
}

func NewSubmissionCreatedProducer

func NewSubmissionCreatedProducer(client Client, logger *zap.Logger) (SubmissionCreatedProducer, error)

Jump to

Keyboard shortcuts

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