Versions in this module Expand all Collapse all v1 v1.4.1 Feb 12, 2025 v1.4.0 Feb 12, 2025 Changes in this version + var GinLevel golog.Level = 6 + var Log = golog.New() + var LogD = Log.Debugf + var LogE = Log.Errorf + var LogF = Log.Fatalf + var LogI = Log.Infof + var LogW = Log.Warnf + var Logf = Log.Logf + func GetAppName() string + func GetRedisOptions() *redis.Options + func GetRedisPoolClient() (*redis.Client, error) + func InitRedisOptions(rawOpt redis.Options) *redis.Options + func InitializeAppName() + func InitializeLogger() + func LogErr(err error) + func LogJ(arg interface{}) + func LogJI(arg interface{}) + func LogSetLevel(levelName string) + func SetAppName(v string) + func ToJson(data interface{}) string + func ToJsonIndent(data interface{}) string v1.3.0 Oct 8, 2024 Changes in this version + const AUDITTRAIL_DATA + const AUDITTRAIL_PROCESS + const Key + const Numeric + const TIME_FORMAT + var AppName *string + var Channel *amqp.Channel + var Conn *amqp.Connection + var Que *string + func AddValidatorLibs() + func DeleteRedis(id string) (err error) + func GetRedis(id string) (result string, err error) + func GetRedisClient(redisHost, redisPort, redisPassword string, redisDb int) error + func JSONEncode(obj interface{}) string + func JsonMinify(jsonB []byte) ([]byte, error) + func LogAudittrailData(funcName, desc, source, commType string, key *[]string, ...) + func LogAudittrailProcess(funcName, desc, info string, key *[]string) + func LoggerErrorHub(err interface{}) + func PushMessage(data interface{}) + func ReadBody(c echo.Context, idem string) (map[string]interface{}, string, error) + func RevokeToken(next echo.HandlerFunc) echo.HandlerFunc + func StoreRedis(id string, data interface{}, duration time.Duration) (err error) + func VerifCsrf(next echo.HandlerFunc) echo.HandlerFunc + func VerifIdemKey(next echo.HandlerFunc) echo.HandlerFunc + func VerifyMD5(idemKey string, request []byte) (string, error) + type AuditTrialData struct + CommunicationType string + Data *RequestAndResponse + Description string + Function string + Key []string + Source string + Subject string + type AuditTrialProcess struct + Data DataAudittrailProcess + Description string + Function string + Key []string + Subject string + type DataAudittrailProcess struct + Info string + Time string + type Detail struct + Data interface{} + Message string + StatusCode int + type Headers struct + Csrf string + IdempotencyKey string + Session string + func (h *Headers) ValiadateHeaderCsrf() interface{} + func (h *Headers) ValiadateHeaderIdem() interface{} + type MessagePayloadAudit struct + Command string + Data interface{} + Id int + ModuleId string + Time string + type RMqAutoConnect struct + func SetUpRabbitMq(host, port, vhost, username, password, audittrailQue, appName string) RMqAutoConnect + func (r *RMqAutoConnect) CloseConnection() + type Request struct + Body interface{} + BrowserId int + Header interface{} + IpAddress string + Latitude string + Longitude string + Param interface{} + Path string + QueryString interface{} + Time string + type RequestAndResponse struct + Request Request + Response ResponseAudit + type ResponseApi struct + Code int + Data interface{} + InternalCode string + Message string + Status string + func (r *ResponseApi) Accepted(data interface{}) + func (r *ResponseApi) BadRequest(message string, intenalCode string) + func (r *ResponseApi) InternalServerError(err error) + func (r *ResponseApi) Out(code int, message, internalCode string, status string, data interface{}) + func (r *ResponseApi) Success(message string, data interface{}) + func (r *ResponseApi) Unauthorized(message string, intenalCode string) + type ResponseAudit struct + Detail Detail + Time string