communication

package
v0.0.0-...-16c37a2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageSender

type MessageSender interface {
	Send(chatID int64, msg string) error
}

type NotificationRepository

type NotificationRepository interface {
	GetAll() ([]models.Notification, error)
	Delete(id int) error
}

type Service

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

func NewNotificationService

func NewNotificationService(repo NotificationRepository, sender MessageSender) *Service

func (*Service) SendMessage

func (s *Service) SendMessage(chatID int64, msg string) error

func (*Service) SendQueuedNotifications

func (s *Service) SendQueuedNotifications()

Jump to

Keyboard shortcuts

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