nidus-sync/comms/text/text.go
Eli Ribble 7237f5f666
Some checks failed
/ golint (push) Failing after 3m50s
Move internal references to new source hosting
2026-05-19 15:33:57 +00:00

18 lines
456 B
Go

package text
import (
"context"
"fmt"
"source.gleipnir.technology/Gleipnir/nidus-sync/config"
)
func SendText(ctx context.Context, source string, destination string, message string) (string, error) {
switch config.TextProvider {
case "voipms":
return sendTextVoipms(ctx, destination, message)
case "twilio":
return sendTextTwilio(ctx, source, destination, message)
}
return "", fmt.Errorf("Unsupported provider '%s'", config.TextProvider)
}