apis

package
v0.0.0-...-144a01a Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(server Server) error

Types

type MessageForm

type MessageForm struct {
	Msg string `json:"msg"`
}

type OTP

type OTP struct {
	PhoneNumber string `json:"phone_number"`
	OTP         string `json:"otp"`
}

type PhoneNumber

type PhoneNumber struct {
	PhoneNumber string `json:"phone_number"`
}

type Server

type Server struct {
	Logger *logrus.Logger
	Client *twilio.RestClient
}

func (Server) OTPVerification

func (s Server) OTPVerification(c *gin.Context)

func (Server) SMS

func (s Server) SMS(to, message string) (string, error)

func (Server) SMSCheck

func (s Server) SMSCheck(c *gin.Context)

func (Server) SendOTP

func (s Server) SendOTP(c *gin.Context)

Jump to

Keyboard shortcuts

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