Skip to content

sms ​

go
import "github.com/prescriptoo/prescriptoo-api/services/notification/internal/adapters/sms"

Package sms provides SMS provider implementations.

Index ​

type StubSMSProvider ​

StubSMSProvider is a stub implementation that logs instead of sending.

go
type StubSMSProvider struct{}

func NewStubSMSProvider ​

go
func NewStubSMSProvider() *StubSMSProvider

NewStubSMSProvider creates a new stub SMS provider.

func (*StubSMSProvider) Send ​

go
func (p *StubSMSProvider) Send(_ context.Context, to, message string) error

Send logs the SMS instead of sending (for development).

Generated by gomarkdoc

Documentation follows the source. Planned contracts are marked explicitly.