Documentation ¶
Index ¶
- func DecryptText(key, text []byte) ([]byte, error)
- func EncryptLogData(pat string, vars ...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 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 SetJsonHdr(c *gin.Context)
- func SetupLogEnc(gcfg *data.GlobalConfigData, log *os.File)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptText ¶
func EncryptLogData ¶
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 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 SetJsonHdr ¶
SetJsonHdr will set a content-type header to "application/json; charset=utf-8"
func SetupLogEnc ¶
func SetupLogEnc(gcfg *data.GlobalConfigData, log *os.File)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.