Documentation ¶
Index ¶
- Variables
- func Check(user User, token TokenBody) bool
- func Create(accountName string, user User, newTOTP bool) (*Response, *User, bool, bool)
- func ResponseError(w http.ResponseWriter, statusCode int, err error)
- func ResponseSuccess(w http.ResponseWriter, res *Response, statusCode int, msg string)
- type QRCode
- type RegistrationData
- type Response
- type TokenBody
- type User
Constants ¶
This section is empty.
Variables ¶
View Source
var LOGGER = logging.MustGetLogger("totp-helper")
Functions ¶
func ResponseError ¶
func ResponseError(w http.ResponseWriter, statusCode int, err error)
func ResponseSuccess ¶
func ResponseSuccess(w http.ResponseWriter, res *Response, statusCode int, msg string)
Types ¶
type RegistrationData ¶
type RegistrationData struct {
Email string `json:"email"`
}
Click to show internal directories.
Click to hide internal directories.