Versions in this module Expand all Collapse all v0 v0.0.4 Aug 4, 2022 Changes in this version type Contextx + func (c *Contextx) Finish(data interface{}, err error) error + func (c *Contextx) Page(items interface{}, pageIndex, pageSize int, total int64, err error) error v0.0.3 Jul 12, 2022 Changes in this version + func NewRecover(log zerolog.Logger) context.Handler v0.0.2 Jul 12, 2022 Changes in this version type Contextx + func (c *Contextx) FailInternal(message string, state int) error + func (c *Contextx) FailParams(fieldErrors map[string]string) error + func (c *Contextx) FailService(message string, state int) error v0.0.1 Jul 11, 2022 Changes in this version + var IrisxLog = logger.NewLogger(map[string]string{ ... }, true, false) + func GetJSONSerializer() jsoniter.API + func HandleError(err error) commons.Result + func OK(data interface{}) commons.Result + type Contextx struct + func (c *Contextx) Error(err error) error + func (c *Contextx) ErrorFields(fieldErrors map[string]string) error + func (c *Contextx) ErrorParam(err error) error + func (c *Contextx) ErrorService(err error) error + func (c *Contextx) Fail(message string, state, httpStatus int) error + func (c *Contextx) GetIP() string + func (c *Contextx) GetUID() string + func (c *Contextx) IsLogined() bool + func (c *Contextx) JSON(v interface{}) error + func (c *Contextx) OK(data interface{}) error + func (c *Contextx) ReadForm(formObject interface{}) error + func (c *Contextx) ReadJSON(outPtr interface{}) error + func (c *Contextx) ReadQuery(ptr interface{}) error + type RbacClaims struct + Roles string + type RbacMiddleware struct + func NewRbacMiddleware(roles ...string) *RbacMiddleware + func (s *RbacMiddleware) Middleware(ctx iris.Context) + type Verifier struct + func NewVerifier(publicKey string, alg jwt.Alg) *Verifier + func (v *Verifier) GetVerifier() *jwt.Verifier + func (v *Verifier) Middleware(validators ...jwt.TokenValidator) context.Handler + func (v *Verifier) SetBlockList(blocklist *redis.Blocklist)