Documentation
¶
Index ¶
- func CheckAuth(r *http.Request, keys map[string]string, jwtKeystring string) (string, error)
- func CheckBearer(r *http.Request) (string, error)
- func CheckBearerToken(r *http.Request, jwtKeystring string) (string, error)
- func CheckCookie(r *http.Request, name string) (string, error)
- func CheckGuiaccess(r *http.Request, cookiename string, jwtKeystring string) (string, error)
- func CheckGuiaccessUsername(r *http.Request, cookiename string, jwtKeystring string) (string, error)
- func CheckToken(tokenstr string, jwtKey []byte) (string, error)
- func DisplayQRCode(image image.Image, w http.ResponseWriter, r *http.Request) error
- func FirstString(ss []string) string
- func GenerateApitoken(username string, jwtKeystring string, days int) (string, error)
- func GenerateToken(username string, jwtKeystring string, minutes time.Duration) (string, time.Time, error)
- func HttpGet(urlstr string, seconds time.Duration) (string, error)
- func JSONHandleError(w http.ResponseWriter, r *http.Request, errCode string, errDesc string, ...)
- func JwtParseGetCert(tokenString string) (jwt.MapClaims, string, error)
- func LastString(ss []string) string
- func TotpGenerate(issuer string, account string) (*otp.Key, error)
- func TotpGenerateImgSecret(issuer string, account string) (image.Image, string, error)
- func TotpQRcode(key *otp.Key) (string, error)
- func TotpQRcodeExport(key *otp.Key) (*bytes.Buffer, error)
- func TotpQRcodeImage(key *otp.Key) (image.Image, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGuiaccess ¶
func CheckGuiaccessUsername ¶
func DisplayQRCode ¶
func FirstString ¶
func GenerateApitoken ¶
func GenerateToken ¶
func JSONHandleError ¶
func LastString ¶
func TotpGenerateImgSecret ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.