mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:57:33 +00:00
refactor: rename config structs (#5459)
This commit is contained in:
@@ -9,7 +9,7 @@ import (
|
||||
"github.com/zitadel/zitadel/internal/notification/messages"
|
||||
)
|
||||
|
||||
func InitTwilioChannel(config TwilioConfig) channels.NotificationChannel {
|
||||
func InitTwilioChannel(config Config) channels.NotificationChannel {
|
||||
client := twilio.NewClient(config.SID, config.Token, nil)
|
||||
|
||||
logging.Debug("successfully initialized twilio sms channel")
|
||||
|
@@ -1,11 +1,11 @@
|
||||
package twilio
|
||||
|
||||
type TwilioConfig struct {
|
||||
type Config struct {
|
||||
SID string
|
||||
Token string
|
||||
SenderNumber string
|
||||
}
|
||||
|
||||
func (t *TwilioConfig) IsValid() bool {
|
||||
func (t *Config) IsValid() bool {
|
||||
return t.SID != "" && t.Token != "" && t.SenderNumber != ""
|
||||
}
|
||||
|
Reference in New Issue
Block a user