Documentation ¶
Index ¶
- func DecryptText(key, text []byte) ([]byte, error)
- func EncryptLogData(pat string, vars ...interface{}) string
- func EncryptLogItem(vv interface{}) string
- func EncryptText(key, text []byte) ([]byte, error)
- func EncryptTextIndexable(key, xiv, text []byte) ([]byte, error)
- func EncryptTextToB64(key, text []byte) string
- func EncryptTextToB64Indexable(key, iv, text []byte) string
- func LogApacheReq(data string)
- func LogAttentionError(c *gin.Context, err error, message string)
- func LogInternalMiscError(c *gin.Context, err error, message string)
- func LogInvalidMethodError(c *gin.Context)
- func LogIt(s string, x ...interface{})
- func LogIt2(fp io.WriteCloser, s string, x ...interface{})
- func LogMiscError(c *gin.Context, err error, message string)
- func LogMiscWarn(c *gin.Context, err error, message string)
- func LogParamError(c *gin.Context, pn, msg string)
- func LogPrivError(c *gin.Context, priv_missing, msg string)
- func LogS3Error(err error, message, RequestURI, Method, requestId string)
- func LogSQLError(c *gin.Context, stmt string, err error, encPat string, data ...interface{})
- func LogSQLErrorNoErr(c *gin.Context, stmt string, err error, encPat string, data ...interface{})
- func LogSQLPrivelage(c *gin.Context, priv_missing, encPat string, user_id string)
- func LogStoredProcError(c *gin.Context, stmt string, encPat string, data ...interface{})
- func ResetLogFile(newFp io.WriteCloser)
- func SetJsonHdr(c *gin.Context)
- func SetupLogEnc(gcfg *data.BaseConfigType, acfg *data.AppConfig, log io.WriteCloser)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptText ¶
func EncryptLogData ¶
func EncryptLogItem ¶ added in v1.0.41
func EncryptLogItem(vv interface{}) string
func EncryptText ¶
func EncryptTextIndexable ¶
func EncryptTextToB64 ¶
func LogInternalMiscError ¶
Log a internal misc error.
func LogIt ¶
func LogIt(s string, x ...interface{})
LogIt sends output to both the log file, logFilePtr, and to os.Stderr if we are running in dev mode (gCfg.LogMode == "dev")
func LogIt2 ¶ added in v1.0.51
func LogIt2(fp io.WriteCloser, s string, x ...interface{})
func LogIt2(fp *os.File, s string, x ...interface{}) {
func LogParamError ¶
Log an invalid parameter error.
func LogPrivError ¶
Log an missing privilege.
func LogS3Error ¶
func LogSQLError ¶
Log a SQL error.
func LogSQLErrorNoErr ¶
func LogSQLPrivelage ¶
log_enc.LogSQLPrivilage(c, aPriv, ".", user_id) // Don't need to encyprt user_id
func LogStoredProcError ¶
LogStoredProcError(www, req, stmt, SVar(RegisterResp), pp.Un, pp.Pw /*gCfg.EncryptionPassword,*/, pp.RealName /*, gCfg.UserdataPassword*/)
func ResetLogFile ¶ added in v1.0.40
func ResetLogFile(newFp io.WriteCloser)
func ResetLogFile(newFp *os.File) {
func SetJsonHdr ¶
SetJsonHdr will set a content-type header to "application/json; charset=utf-8"
func SetupLogEnc ¶
func SetupLogEnc(gcfg *data.BaseConfigType, acfg *data.AppConfig, log io.WriteCloser)
func SetupLogEnc(gcfg *data.GlobalConfigData, log *os.File) { func SetupLogEnc(gcfg *data.BaseConfigType, acfg *data.AppConfig, log *os.File) {
Types ¶
This section is empty.