Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailProvider ¶
type EmailProvider struct {
// contains filtered or unexported fields
}
EmailProvider sends email via an HTTP API using bearer token auth.
func NewEmailProvider ¶
func NewEmailProvider() *EmailProvider
NewEmailProvider returns a new EmailProvider ready for Configure.
func (*EmailProvider) Configure ¶
func (e *EmailProvider) Configure(raw json.RawMessage) error
func (*EmailProvider) Send ¶
func (e *EmailProvider) Send(ctx context.Context, req notification.Request) error
func (*EmailProvider) Type ¶
func (e *EmailProvider) Type() notification.ChannelType
type SMSProvider ¶
type SMSProvider struct {
// contains filtered or unexported fields
}
SMSProvider sends SMS via the GovSMS service.
func NewSMSProvider ¶
func NewSMSProvider() *SMSProvider
NewSMSProvider returns an SMSProvider ready for Configure.
func (*SMSProvider) Configure ¶
func (s *SMSProvider) Configure(raw json.RawMessage) error
func (*SMSProvider) Send ¶
func (s *SMSProvider) Send(ctx context.Context, req notification.Request) error
func (*SMSProvider) Type ¶
func (s *SMSProvider) Type() notification.ChannelType
type SMSRequest ¶
type SMSRequest struct {
Data string `json:"data"`
PhoneNumber string `json:"phoneNumber"`
SIDCode string `json:"sIDCode"`
UserName string `json:"userName"`
Password string `json:"password"`
}
SMSRequest matches the GovSMS V1 API envelope. Credentials are sent per-request in the body as required by the spec.
Click to show internal directories.
Click to hide internal directories.