Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCodeSendTooMany = repo.ErrCodeSendTooMany ErrCodeVerifyLimit = repo.ErrCodeVerifyLimit )
Functions ¶
This section is empty.
Types ¶
type CachedEmailCodeService ¶
type CachedEmailCodeService struct {
// contains filtered or unexported fields
}
type CodeServiceOption ¶
type CodeServiceOption func(option *CachedEmailCodeService)
func WithEffectiveTime ¶
func WithEffectiveTime(effectiveTime time.Duration) CodeServiceOption
func WithMaxRetry ¶
func WithMaxRetry(maxRetry int) CodeServiceOption
func WithResendInterval ¶
func WithResendInterval(resendInterval time.Duration) CodeServiceOption
func WithTemplate ¶
func WithTemplate(title string, temp *template.Template) CodeServiceOption
Click to show internal directories.
Click to hide internal directories.