Documentation ¶
Overview ¶
Package router Permissions API
Permissions service stores user resources and allows to manage access to resources
Consumes: - application/json Produces: - application/json
swagger:meta
Index ¶
- type Router
- type TranslateValidate
- func (tv *TranslateValidate) BadRequest(ctx *gin.Context, err error) (int, *cherry.Err)
- func (tv *TranslateValidate) HandleError(err error) (int, *cherry.Err)
- func (tv *TranslateValidate) ValidateHeaders(headerTagMap map[string]string) gin.HandlerFunc
- func (tv *TranslateValidate) ValidateURLParams(paramTagMap map[string]string) gin.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(engine gin.IRouter, status *model.ServiceStatus, tv *TranslateValidate) *Router
func (*Router) SetupAccessRoutes ¶
func (r *Router) SetupAccessRoutes(acts server.AccessActions)
func (*Router) SetupNamespaceRoutes ¶
func (r *Router) SetupNamespaceRoutes(acts server.NamespaceActions)
func (*Router) SetupProjectRoutes ¶ added in v1.0.2
func (r *Router) SetupProjectRoutes(acts server.ProjectActions)
type TranslateValidate ¶
type TranslateValidate struct { *ut.UniversalTranslator *validator.Validate }
func (*TranslateValidate) BadRequest ¶
func (*TranslateValidate) HandleError ¶
func (tv *TranslateValidate) HandleError(err error) (int, *cherry.Err)
func (*TranslateValidate) ValidateHeaders ¶
func (tv *TranslateValidate) ValidateHeaders(headerTagMap map[string]string) gin.HandlerFunc
func (*TranslateValidate) ValidateURLParams ¶
func (tv *TranslateValidate) ValidateURLParams(paramTagMap map[string]string) gin.HandlerFunc
Click to show internal directories.
Click to hide internal directories.