definition

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	Handler     func(ctx context.Context, payload []byte) error
	Concurrency int
	MaxRetry    int
	Timeout     time.Duration
}

Consumer ...

type ProducerOption

type ProducerOption struct {
	Tx *query.Query
}

ProducerOption ...

type WorkQueueProducer

type WorkQueueProducer interface {
	// Produce ...
	Produce(ctx context.Context, topic enums.Daemon, payload any, option ProducerOption) error
}

WorkQueueProducer ...

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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