service

package
v0.0.0-...-79277af Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feed

type Feed interface {
	ProcessFeeds(ctx context.Context)
}

type FeedService

type FeedService struct {
	// contains filtered or unexported fields
}

func NewFeedService

func NewFeedService(userService pb.UserClient, rabbitMQ *mq.MQConn, mailer Mailer) *FeedService

func (*FeedService) ProcessFeeds

func (s *FeedService) ProcessFeeds(ctx context.Context)

type Mailer

type Mailer interface {
	Send(to string, message *model.Article) error
}

type MailerService

type MailerService struct {
	// contains filtered or unexported fields
}

func NewMailerService

func NewMailerService() *MailerService

func (*MailerService) Send

func (s *MailerService) Send(to string, message *model.Article) error

type Service

type Service struct {
	Feed
}

func New

func New(userService pb.UserClient, rabbitMQ *mq.MQConn) *Service

Jump to

Keyboard shortcuts

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