providers

package
v0.0.0-...-c9de886 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

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 (*EmailProvider) Type

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 (*SMSProvider) Type

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL