zelda/backend/pkg/notifier/mail.go

26 lines
430 B
Go
Raw Permalink Normal View History

2024-11-19 16:57:27 +08:00
package notifier
import "github.com/ycyxuehan/zelda/pkg/notifier/api"
type Mail struct {
messageChan chan api.Message
accessToken string
}
func NewMail(token string, queueLength int)*Mail{
if queueLength < 1 {
queueLength = 1
}
return &Mail{
accessToken: token,
messageChan: make(chan api.Message, queueLength),
}
}
func (dt *Mail)Run()error{
return nil
}
func (dt *Mail)Send(msg api.Message)error{
return nil
}