mobile

package
v0.0.0-...-8cb3723 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mobile

type Mobile struct {
	// contains filtered or unexported fields
}

Mobile provides a mobile service implementation

func NewMobile

func NewMobile(config *config.TwilioConfig) *Mobile

NewMobile creates a new mobile service implementation

func (*Mobile) CheckCode

func (m *Mobile) CheckCode(countryCode, mobile, code string) error

CheckCode verifies if the user-provided code is approved

func (*Mobile) GenerateSMSToken

func (m *Mobile) GenerateSMSToken(countryCode, mobile string) error

GenerateSMSToken sends an sms token to the mobile numer

type Service

type Service interface {
	GenerateSMSToken(countryCode, mobile string) error
	CheckCode(countryCode, mobile, code string) error
}

Service is the interface to our mobile service

Jump to

Keyboard shortcuts

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