zelda/backend/pkg/notifier/mail.go

26 lines
430 B
Go

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
}