Documentation ¶ Index ¶ type TOTP func New(seed string, len int, interval uint64) *TOTP func (totp *TOTP) Generate() string func (totp *TOTP) GenerateCustom(t time.Time) string func (totp *TOTP) Validate(otp string) bool func (totp *TOTP) ValidateCustom(otp string, t time.Time) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type TOTP ¶ type TOTP struct { oath.OTP // contains filtered or unexported fields } func New ¶ func New(seed string, len int, interval uint64) *TOTP func (*TOTP) Generate ¶ func (totp *TOTP) Generate() string func (*TOTP) GenerateCustom ¶ func (totp *TOTP) GenerateCustom(t time.Time) string func (*TOTP) Validate ¶ func (totp *TOTP) Validate(otp string) bool func (*TOTP) ValidateCustom ¶ func (totp *TOTP) ValidateCustom(otp string, t time.Time) bool Source Files ¶ View all Source files totp.go Click to show internal directories. Click to hide internal directories.