phone

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Phone string `json:"phone"`
	Code  string `json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*Data) ClearPhone

func (d *Data) ClearPhone() string

type Phone

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

func NewPhoneProvider

func NewPhoneProvider(provider *secure.Provider, service Service, ttl, len int) *Phone

func (*Phone) GetName

func (p *Phone) GetName() string

func (*Phone) GetRouter

func (p *Phone) GetRouter(r chi.Router)

type Service

type Service interface {
	SendVerificationCode(phone string, code string) error
}

Directories

Path Synopsis
service

Jump to

Keyboard shortcuts

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