Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSecretLengthLss secret length less than 6 ErrSecretLengthLss = errors.New("secret length lss 6 error") // ErrParam param error ErrParam = errors.New("param error") )
Functions ¶
Types ¶
type GAuth ¶
type GAuth struct {
// contains filtered or unexported fields
}
GAuth struct of gauth
func (*GAuth) CreateSecret ¶
CreateSecret create new secret 16 characters, randomly chosen from the allowed base32 characters.
func (*GAuth) SetCodeLength ¶
SetCodeLength Set the code length, should be >=6
Source Files ¶
Click to show internal directories.
Click to hide internal directories.