consumer

package
v0.0.0-...-1e03f0b Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package consumer принимает события из базы данных и отправляет их в канал

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Start()
	Stop()
}

Consumer читает из базы данных события в n потоков и отправляет их в канал

func NewDbConsumer

func NewDbConsumer(
	n uint64,
	batchSize uint64,
	consumerTimeout time.Duration,
	repo repo.EventRepo,
	events chan<- model.PackageEvent) Consumer

NewDbConsumer конструктор

Jump to

Keyboard shortcuts

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