SimpleCloudNotifier/scnserver/push/dummy.go

18 lines
396 B
Go
Raw Permalink Normal View History

2022-11-23 19:32:23 +01:00
package push
import (
"blackforestbytes.com/simplecloudnotifier/models"
"context"
_ "embed"
)
type DummyConnector struct{}
func NewDummy() NotificationClient {
return &DummyConnector{}
2022-11-23 19:32:23 +01:00
}
func (d DummyConnector) SendNotification(ctx context.Context, user models.User, client models.Client, channel models.Channel, msg models.Message) (string, string, error) {
return "%DUMMY%", "", nil
2022-11-23 19:32:23 +01:00
}