Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func New ¶
func New(verificationCodeRedis repoiface.VerificationCodeRedisRepository) *AuthService
func (*AuthService) CreateVerificationCode ¶
func (s *AuthService) CreateVerificationCode(ctx context.Context, bits, expireTime int64) (*verificationcode.VerificationCode, error)
func (*AuthService) ValidateVerificationCode ¶
func (s *AuthService) ValidateVerificationCode(ctx context.Context, code *verificationcode.VerificationCode) (bool, error)
Click to show internal directories.
Click to hide internal directories.