Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidMetadata = errors.New("sms: invalid metadata type")
)
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { GetPhoneNumber(ctx context.Context, service string, country string) (*PhoneNumber, error) GetMessages(ctx context.Context, phoneNumber *PhoneNumber) ([]string, error) CancelPhoneNumber(ctx context.Context, phoneNumber *PhoneNumber) error ReportPhoneNumber(ctx context.Context, phoneNumber *PhoneNumber) error }
type PhoneNumber ¶
type PhoneNumber struct { *phonenumbers.PhoneNumber Metadata any // contains filtered or unexported fields }
func (*PhoneNumber) Cancelled ¶
func (p *PhoneNumber) Cancelled() bool
func (*PhoneNumber) Format ¶
func (p *PhoneNumber) Format(format phonenumbers.PhoneNumberFormat) string
func (*PhoneNumber) MarkCancelled ¶
func (p *PhoneNumber) MarkCancelled()
func (*PhoneNumber) MarkUsed ¶
func (p *PhoneNumber) MarkUsed()
func (*PhoneNumber) Reuse ¶
func (p *PhoneNumber) Reuse()
func (*PhoneNumber) Used ¶
func (p *PhoneNumber) Used() bool
type ReusableClient ¶
type ReusableClient interface { Client ReusePhoneNumber(ctx context.Context, phoneNumber *PhoneNumber) (*PhoneNumber, error) }
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
internal
|
|
Code generated by saucesteals/sms; DO NOT EDIT.
|
Code generated by saucesteals/sms; DO NOT EDIT. |
Code generated by saucesteals/sms; DO NOT EDIT.
|
Code generated by saucesteals/sms; DO NOT EDIT. |
Code generated by saucesteals/sms; DO NOT EDIT.
|
Code generated by saucesteals/sms; DO NOT EDIT. |
Code generated by saucesteals/sms; DO NOT EDIT.
|
Code generated by saucesteals/sms; DO NOT EDIT. |
Click to show internal directories.
Click to hide internal directories.