queue

package
v0.0.0-...-52cd6b4 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumerService

type ConsumerService struct {
	Consumer            rabbit.Consumer
	Logger              *zap.Logger
	FriendService       friend.Service
	CacheService        cache.Service
	NotificationService *NotificationService
}

func (*ConsumerService) CreateFeed

func (s *ConsumerService) CreateFeed(ctx context.Context, post *model.Post) error

func (*ConsumerService) DeletePostFromFeed

func (s *ConsumerService) DeletePostFromFeed(ctx context.Context, post *model.Post) error

func (*ConsumerService) Run

func (s *ConsumerService) Run() error

func (*ConsumerService) UpdatePostInFeed

func (s *ConsumerService) UpdatePostInFeed(ctx context.Context, previousPost, post *model.Post) error

type NotificationService

type NotificationService struct {
	Producer rabbit.Publisher
	Logger   *zap.Logger
}

func (*NotificationService) PublishNotification

func (s *NotificationService) PublishNotification(post *model.Post, routingKey string) error

type ProducerService

type ProducerService struct {
	Producer   rabbit.Publisher
	Logger     *zap.Logger
	RoutingKey string
}

func (*ProducerService) CreateFeed

func (s *ProducerService) CreateFeed(post *model.Post) error

func (*ProducerService) DeleteFromFeed

func (s *ProducerService) DeleteFromFeed(post *model.Post) error

Jump to

Keyboard shortcuts

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