Documentation ¶ Index ¶ func Enabled(uid, role string) bool func Get(uid, role, keyid string) (string, time.Duration, []byte, error) func Revoke(uid, role string) error func SetIssuer(u string) func Validate(uid string, role string, keyid string, otp string) error func Verify(uid string, role string, otp string) bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Enabled ¶ func Enabled(uid, role string) bool func Get ¶ func Get(uid, role, keyid string) (string, time.Duration, []byte, error) func Revoke ¶ func Revoke(uid, role string) error func SetIssuer ¶ func SetIssuer(u string) func Validate ¶ func Validate(uid string, role string, keyid string, otp string) error func Verify ¶ func Verify(uid string, role string, otp string) bool Types ¶ This section is empty. Source Files ¶ View all Source files otp.go Click to show internal directories. Click to hide internal directories.