Documentation ¶
Overview ¶
Package sms provide utilities for sending sms esms docs: https://developers.esms.vn
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // TypeBrandName Brand name chăm sóc khách hàng TypeBrandName = Type{"2"} // Type10Numbers Tin nhắn đầu số cố định 10 số, chuyên dùng cho chăm sóc khách hàng. Type10Numbers = Type{"8"} // TypePriorityZalo Tin nhắn Zalo ưu tiên TypePriorityZalo = Type{"24"} // TypeNormalZalo Tin nhắn Zalo thường TypeNormalZalo = Type{"25"} )
Set of possible sms types.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string APIKey string SecretKey string BrandName string Client *http.Client }
Config represents the mandatory settings needed to work with sms.
type SMS ¶
type SMS struct {
// contains filtered or unexported fields
}
func (*SMS) CheckOTP ¶
func (s *SMS) CheckOTP(ctx context.Context, otp VerifyOTPInfo) error
CheckOTP verify user OTP
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
Type represents an sms type.
func (*Type) MarshalText ¶
MarshalText implement the marshal interface for JSON conversions.
func (*Type) UnmarshalText ¶
UnmarshalText implement the unmarshal interface for JSON conversions.
type VerifyOTPInfo ¶
VerifyOTPInfo provides info for verifying OTP
Click to show internal directories.
Click to hide internal directories.