Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2020 Changes in this version + var NIterations = 50000 + func AddCookie(w http.ResponseWriter, name, value string, inDays int) + func AddSecureCookie(w http.ResponseWriter, name, value string, inDays int) + func AnError(www http.ResponseWriter, req *http.Request, httpStatus int, msg string) + func Exists(name string) bool + func Fopen(fn string, mode string) (file *os.File, err error) + func GenRandBytes(nRandBytes int) (buf []byte, err error) + func GenRandNumber(nDigits int) (buf string) + func GenUUID() string + func GetCookie(www http.ResponseWriter, req *http.Request, cookieName string) (val string) + func GetMultipleVar(name []string, www http.ResponseWriter, req *http.Request) (found bool, value map[string]string) + func GetParam(www http.ResponseWriter, req *http.Request, name string, dflt string) (rv string) + func GetVar(name string, www http.ResponseWriter, req *http.Request) (found bool, value string) + func HaveCookie(www http.ResponseWriter, req *http.Request, cookieName string) bool + func IsTLS(req *http.Request) bool + func RedisClient(gCfg *RedisConfigType) (client *redis.Client, conFlag bool) + func SVar(v interface{}) string + func SVarI(v interface{}) string + func SetCookie(www http.ResponseWriter, req *http.Request, cookieName, value string, ...) + func SetSecureCookie(www http.ResponseWriter, req *http.Request, cookieName, value string, ...) + func SetSupport(dbf map[string]bool, lfp *os.File) + type RedisConfigType struct + RedisConnectAuth string + RedisConnectHost string + RedisConnectPort string + type RedisConnection struct + TtlRedis int + func NewRedisConnection(gCfg *RedisConfigType) (rv *RedisConnection, err error) + func (rCon *RedisConnection) CheckAuth(www http.ResponseWriter, req *http.Request) (ok bool) + func (rCon *RedisConnection) CheckSetup() + func (rCon *RedisConnection) CreateUser(un, pw string) (err error) + func (rCon *RedisConnection) DelRedis(key string) (err error) + func (rCon *RedisConnection) GetRedis(key string) (rv string, err error) + func (rCon *RedisConnection) SetRedis(key, data string) (err error) + func (rCon *RedisConnection) SetRedisTTL(key, data string, Ttl int) (err error)