Versions in this module Expand all Collapse all v1 v1.0.0 Aug 7, 2017 Changes in this version + var ErrGenerateMissingAccountName = errors.New("AccountName must be set") + var ErrGenerateMissingIssuer = errors.New("Issuer must be set") + var ErrValidateInputInvalidLength = errors.New("Input length unexpected") + var ErrValidateSecretInvalidBase32 = errors.New("Decoding of secret as base32 failed.") + type Algorithm int + const AlgorithmMD5 + const AlgorithmSHA1 + const AlgorithmSHA256 + const AlgorithmSHA512 + func (a Algorithm) Hash() hash.Hash + func (a Algorithm) String() string + type Digits int + const DigitsEight + const DigitsSix + func (d Digits) Format(in int32) string + func (d Digits) Length() int + func (d Digits) String() string + type Key struct + func NewKeyFromURL(orig string) (*Key, error) + func (k *Key) AccountName() string + func (k *Key) Image(width int, height int) (image.Image, error) + func (k *Key) Issuer() string + func (k *Key) Secret() string + func (k *Key) String() string + func (k *Key) Type() string