Versions in this module Expand all Collapse all v1 v1.0.4 Dec 22, 2023 Changes in this version + var TestBuffer string + func Change2RootDir() bool + func GenerateKey(base string) (string, error) + func GenerateRunTimeCode() (string, error) + func GenerateSN() (string, error) + func GetPrivateKeyBytes() ([]byte, error) + func InitLogger() + func IsValidData(iData interface{}, exclude []string) bool + func OverwriteGinLog(ctx *QCSExtractGINCtx) + func Record(level logrus.Level, msg string) + func SignMessage(message []byte) ([]byte, error) + func TimeUnitStrToTimeDuration(unit string) (time.Duration, error) + func WaitForShutdown(server *http.Server) + type AccessLog struct + ClientIP string + Latency string + Level string + Method string + Path string + Status int + Time string + Type string + type QCSExtractGINCtx struct + ClientIP string + FullPath string + Latency time.Duration + Method string + StatusCode int + type QCSJSONFormatter struct + func (f *QCSJSONFormatter) Format(entry *logrus.Entry) ([]byte, error) + type QCSTextFormatter struct + func (f *QCSTextFormatter) Format(entry *logrus.Entry) ([]byte, error)