Adds telegram notification service and notifications services scaffold
This commit is contained in:
parent
12c74a0f74
commit
8825837e14
3 changed files with 60 additions and 9 deletions
4
notification/service.go
Normal file
4
notification/service.go
Normal file
|
@ -0,0 +1,4 @@
|
|||
package notification
|
||||
|
||||
type NotificationService interface {
|
||||
}
|
18
notification/service_telegram.go
Normal file
18
notification/service_telegram.go
Normal file
|
@ -0,0 +1,18 @@
|
|||
package notification
|
||||
|
||||
import (
|
||||
"git.ctrlz.es/mgdelacroix/birthdaybot/model"
|
||||
"github.com/charmbracelet/log"
|
||||
)
|
||||
|
||||
type TelegramNotificationService struct {
|
||||
logger *log.Logger
|
||||
config *model.TelegramNotificationsConfig
|
||||
}
|
||||
|
||||
func NewTelegramNotificationService(logger *log.Logger, config *model.TelegramNotificationsConfig) *TelegramNotificationService {
|
||||
return &TelegramNotificationService{
|
||||
logger: logger,
|
||||
config: config,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue