Documentation ¶
Index ¶
Constants ¶
View Source
const DEFAULT_IMAGE_SIZE = 512
View Source
const MODULUS_SIZE = 8
Variables ¶
View Source
var ErrorEmptyIssuer = errors.New("Issuer cannot be empty")
View Source
var ErrorEmptyUserID = errors.New("UserID cannot be empty")
View Source
var ErrorInvalidSecret = errors.New("invalid base32 encoding of the secret")
View Source
var ErrorNilOtpKeyOptions = errors.New("OtpKeyOptions cannot be nil")
View Source
var ErrorWrongCodeSize = errors.New("Code length is not of expected length")
Functions ¶
This section is empty.
Types ¶
type PassCodeSize ¶
type PassCodeSize uint
const ( SixDigits PassCodeSize = 6 SevenDigits PassCodeSize = 7 EightDigits PassCodeSize = 8 )
func (PassCodeSize) Format ¶
func (d PassCodeSize) Format(value uint64) string
func (PassCodeSize) Length ¶
func (d PassCodeSize) Length() int
func (PassCodeSize) String ¶
func (d PassCodeSize) String() string
Click to show internal directories.
Click to hide internal directories.