Documentation
¶
Index ¶
- type ConsumerService
- func (s *ConsumerService) CreateFeed(ctx context.Context, post *model.Post) error
- func (s *ConsumerService) DeletePostFromFeed(ctx context.Context, post *model.Post) error
- func (s *ConsumerService) Run() error
- func (s *ConsumerService) UpdatePostInFeed(ctx context.Context, previousPost, post *model.Post) error
- type NotificationService
- type ProducerService
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 (*ConsumerService) DeletePostFromFeed ¶
func (*ConsumerService) Run ¶
func (s *ConsumerService) Run() error
func (*ConsumerService) UpdatePostInFeed ¶
type NotificationService ¶
func (*NotificationService) PublishNotification ¶
func (s *NotificationService) PublishNotification(post *model.Post, routingKey string) error
type ProducerService ¶
func (*ProducerService) CreateFeed ¶
func (s *ProducerService) CreateFeed(post *model.Post) error
func (*ProducerService) DeleteFromFeed ¶
func (s *ProducerService) DeleteFromFeed(post *model.Post) error
Click to show internal directories.
Click to hide internal directories.