Documentation ¶
Overview ¶
Package httpsrv provides the management server for the for the permissions API service.
This code was originally generated by github.com/deepmap/oapi-codegen version v1.12.4 However, it has been modified for it to work in a separate package with our additional middleware.
Index ¶
- func NewServer(logger *zap.SugaredLogger, cfg ginx.Config) *ginx.Server
- type GinServerOptions
- type Router
- func (rtr *Router) AddRolePermission(c *gin.Context)
- func (rtr *Router) AssignRole(c *gin.Context)
- func (rtr *Router) CreateRole(c *gin.Context)
- func (rtr *Router) DeleteRole(c *gin.Context)
- func (rtr *Router) ErrorChooser(gctx *gin.Context, err error)
- func (rtr *Router) ErrorHandler(gctx *gin.Context, err error, statusCode int)
- func (rtr *Router) GetAssignments(c *gin.Context)
- func (rtr *Router) GetPermissions(c *gin.Context)
- func (rtr *Router) GetRole(c *gin.Context)
- func (rtr *Router) GetRoleAssignments(c *gin.Context)
- func (rtr *Router) GetRolePermissions(c *gin.Context)
- func (rtr *Router) GetRoles(c *gin.Context)
- func (rtr *Router) RemoveRoleAssignment(c *gin.Context)
- func (rtr *Router) RemoveRolePermission(c *gin.Context)
- func (rtr *Router) Routes(rg *gin.RouterGroup)
- func (rtr *Router) UpdateRole(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GinServerOptions ¶
GinServerOptions provides options for the Gin server.
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router converts contexts to parameters.
func (*Router) AddRolePermission ¶
func (*Router) AssignRole ¶
func (*Router) CreateRole ¶
func (*Router) DeleteRole ¶
func (*Router) ErrorHandler ¶
func (*Router) GetAssignments ¶
func (*Router) GetPermissions ¶
func (*Router) GetRoleAssignments ¶
func (*Router) GetRolePermissions ¶
func (*Router) RemoveRoleAssignment ¶
func (*Router) RemoveRolePermission ¶
func (*Router) Routes ¶
func (rtr *Router) Routes(rg *gin.RouterGroup)
func (*Router) UpdateRole ¶
Click to show internal directories.
Click to hide internal directories.