Documentation ¶
Index ¶
Constants ¶
View Source
const ( PolicyType = "IAM-Policy-Type" Endpoint = "IAM-Access-Endpoint" Method = "IAM-Access-Method" )
View Source
const (
UserInfo = "userInfo"
)
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(config *viper.Viper, cache *redis.RedisClient) middleware.Object
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) Handle ¶
func (h *Handler) Handle() gin.HandlerFunc
type Permission ¶
type User ¶
type User struct { ID int64 `json:"id"` Name string `json:"name"` RogAccount string `json:"rogaccount"` Email string `json:"email"` EmailVerifiedAt time.Time `json:"email_verified_at"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Roles []*Role `json:"roles"` Permissions []*Permission `json:"permissions"` }
Click to show internal directories.
Click to hide internal directories.