Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleScopeBindingError ¶
Types ¶
type ScopeRequestValidator ¶
type ScopeRequestValidator struct { Scope struct { Name string `json:"name" binding:"required,min=5,max=128"` Description string `json:"description" binding:"max=512"` Resources []string `json:"resources" binding:"required,min=1,max=50,dive,validResource,max=128"` Permissions []string `json:"permissions" binding:"required,min=1,max=50,dive,validPermission,max=128"` } `json:"scope"` ScopeModel scopes.Scope `json:"-"` }
func NewScopeValidator ¶
func NewScopeValidator() ScopeRequestValidator
type ScopeSerializer ¶
func (*ScopeSerializer) Response ¶
func (s *ScopeSerializer) Response() api.ScopeForResponse
type ScopesHandler ¶
type ScopesHandler struct {
S scopes.ScopesRepository
}
func NewScopesHandler ¶
func NewScopesHandler() *ScopesHandler
func (*ScopesHandler) SetupRoutes ¶
func (S *ScopesHandler) SetupRoutes(router *gin.RouterGroup)
SetupRoutes Define the (sub)routes handled by JSONDecoratorHandler
type ScopesSerializer ¶
func (*ScopesSerializer) Response ¶
func (s *ScopesSerializer) Response() api.ScopesResponse
Click to show internal directories.
Click to hide internal directories.