subscribe

package
v0.0.0-...-46c349b Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Subscriber

type Subscriber interface {
	Start(ctx context.Context, config SubscriberConfig)
	Shutdown(ctx context.Context)
}

func NewSubscriber

func NewSubscriber(
	logger common.Logger,
	aggregateVotesUseCase *usecases.AggregateVotes,
	hydrateUsersUseCase *usecases.HydrateUsers,
) Subscriber

type SubscriberConfig

type SubscriberConfig struct {
	Group            string
	Consumer         string
	ConnectionString string
	DialTimeout      time.Duration
	MinIdleConns     int
	PoolSize         int
	ReadTimeout      time.Duration
	WriteTimeout     time.Duration
}

Jump to

Keyboard shortcuts

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