consumer

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type RootConsumer

type RootConsumer interface {
	Start(ctx context.Context) error
}

func NewRootConsumer

func NewRootConsumer(
	submissionCreatedHandler SubmissionCreatedHandler,
	mqConsumer consumer.Consumer,
	logger *zap.Logger,
) RootConsumer

type SubmissionCreatedHandler

type SubmissionCreatedHandler interface {
	Handle(ctx context.Context, submissionID uint64) error
}

func NewSubmissionCreatedHandler

func NewSubmissionCreatedHandler(
	accountLogic logic.AccountLogic,
	cronConfig configs.Cron,
	submissionLogic logic.SubmissionLogic,
	createSystemAccountsJob jobs.CreateSystemAccountsJob,
	logger *zap.Logger,
) (SubmissionCreatedHandler, error)

Jump to

Keyboard shortcuts

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