Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( NewLogger, custom.NewSMSHookTimeout, custom.NewHookHTTPClient, custom.NewHookDenoClient, wire.Struct(new(ClientResolver), "*"), wire.Struct(new(Client), "*"), wire.Struct(new(custom.SMSWebHook), "*"), wire.Struct(new(custom.SMSDenoHook), "*"), )
View Source
var NewTemplateVariablesFromPreparedTemplateVariables = smsapi.NewTemplateVariablesFromPreparedTemplateVariables
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { Logger Logger ClientResolver *ClientResolver }
type ClientResolver ¶
type ClientResolver struct { AuthgearYAMLSMSProvider config.SMSProvider AuthgearYAMLSMSGateway *config.SMSGatewayConfig AuthgearSecretsYAMLNexmoCredentials *config.NexmoCredentials AuthgearSecretsYAMLTwilioCredentials *config.TwilioCredentials AuthgearSecretsYAMLCustomSMSProviderConfig *config.CustomSMSProviderConfig EnvironmentDefaultProvider config.SMSGatewayEnvironmentDefaultProvider EnvironmentDefaultUseConfigFrom config.SMSGatewayEnvironmentDefaultUseConfigFrom EnvironmentNexmoCredentials config.SMSGatewayEnvironmentNexmoCredentials EnvironmentTwilioCredentials config.SMSGatewayEnvironmentTwilioCredentials EnvironmentCustomSMSProviderConfig config.SMSGatewayEnvironmentCustomSMSProviderConfig SMSDenoHook custom.SMSDenoHook SMSWebHook custom.SMSWebHook }
func (*ClientResolver) ResolveClient ¶
func (r *ClientResolver) ResolveClient() (smsapi.Client, SMSClientCredentials, error)
type CustomClientCredentials ¶
type CustomClientCredentials struct { URL string Timeout *config.DurationSeconds }
type NexmoClientCredentials ¶
type SMSClientCredentials ¶
type SMSClientCredentials interface {
// contains filtered or unexported methods
}
type SendOptions ¶
type SendOptions = smsapi.SendOptions
type TwilioClientCredentials ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.