Versions in this module Expand all Collapse all v1 v1.2.2 Oct 18, 2023 Changes in this version + const Key + const Numeric + var RedisPoolClient *redis.Client + func AddValidatorLibs() + func DeleteRedis(id string) (err error) + func GetRedis(id string) (result string, err error) + func GetRedisClient(redisHost, redisPort, redisPassword string, redisDb int) (*redis.Client, error) + func JSONEncode(obj interface{}) string + func JSONMarshalNoEsc(t interface{}) ([]byte, error) + func JsonMinify(jsonB []byte) ([]byte, error) + func LoggerErrorHub(err interface{}) + func ReadBody(c echo.Context, idem string) (map[string]interface{}, string, error) + 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 Headers struct + Csrf string + IdempotencyKey string + Session string + func (h *Headers) ValiadateHeaderCsrf() interface{} + func (h *Headers) ValiadateHeaderIdem() interface{} + type ResponseApi struct + Code int + Data interface{} + Message string + Status string + func (r *ResponseApi) Accepted(data interface{}) + func (r *ResponseApi) BadRequest(message string, err interface{}) + func (r *ResponseApi) InternalServerError(err error) + func (r *ResponseApi) Out(code int, message, status string, data interface{}) + func (r *ResponseApi) Success(message string, data interface{}) + func (r *ResponseApi) Unauthorized(message string)