events

package
v0.0.0-...-d9bd7fb Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountEventsConsumer

func NewAccountEventsConsumer(
	cfg KafkaReaderConfig,
	logger *logrus.Logger,
	repo ProfilesRepository,
	imagesService ImagesService) *accountsEventsConsumer

Types

type ImagesService

type ImagesService interface {
	DeleteImage(ctx context.Context, pictureID string) error
}

type KafkaReaderConfig

type KafkaReaderConfig struct {
	Brokers          []string
	GroupID          string
	ReadBatchTimeout time.Duration
}

type ProfilesRepository

type ProfilesRepository interface {
	DeleteProfile(ctx context.Context, id string) (tx repository.Transaction, err error)
	GetProfilePictureID(ctx context.Context, accountID string) (string, error)
	CreateProfile(ctx context.Context, profile *models.Profile) error
}

Jump to

Keyboard shortcuts

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