Versions in this module Expand all Collapse all v3 v3.0.27 Jan 11, 2022 v3.0.26 Jul 29, 2021 v3.0.25 Jul 15, 2021 v3.0.24 Jul 2, 2021 v3.0.23 Jul 2, 2021 v3.0.22 Jun 30, 2021 v3.0.21 Jun 30, 2021 v3.0.20 Jun 30, 2021 v3.0.19 Jun 30, 2021 v3.0.18 Jun 30, 2021 v3.0.17 Jun 30, 2021 v3.0.16 Jun 30, 2021 v3.0.15 Jun 30, 2021 v3.0.14 Jun 25, 2021 v3.0.13 Jun 25, 2021 Changes in this version + const Endpoint + const Method + const PolicyType + const UserInfo + func New(config *viper.Viper, cache *redis.RedisClient) middleware.Object + func Resp2User(in []byte) (resp response.Response, err error) + type Handler struct + func (h *Handler) GetConfig() *viper.Viper + func (h *Handler) Handle() gin.HandlerFunc + func (h *Handler) SetConfig(config *viper.Viper) + type Object struct + Action string + Object string + Subject string + Type string + type Permission struct + CreatedAt time.Time + GuardName string + ID int64 + Name string + Pivot *Pivot + UpdatedAt time.Time + type Pivot struct + ModelID int64 + ModelType string + PermissionID int64 + RoleID int64 + type Response struct + User *User + type Role struct + CreatedAt time.Time + GuardName string + ID int64 + Name string + Pivot *Pivot + UpdatedAt time.Time + type User struct + CreatedAt time.Time + Email string + EmailVerifiedAt time.Time + ID int64 + Name string + Permissions []*Permission + RogAccount string + Roles []*Role + UpdatedAt time.Time + func GetUser(c *gin.Context) (*User, error)