Documentation ¶
Index ¶
- func InfoCreateModule(ctx context.Context, name string)
- func InfoCreateUnit(ctx context.Context, name string)
- func NewAppSection(ctx context.Context, opts mrperms.AppSectionOptions, ...) mrperms.AppSection
- func WithMiddlewareCheckAccess(ctx context.Context, list []mrserver.HttpController, ...) []mrserver.HttpController
- func WithPermission(ctx context.Context, list []mrserver.HttpController, permission string) []mrserver.HttpController
- type ControllerHandlers
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InfoCreateModule ¶
func InfoCreateUnit ¶
func NewAppSection ¶
func NewAppSection(ctx context.Context, opts mrperms.AppSectionOptions, access mrperms.AccessControl) mrperms.AppSection
func WithMiddlewareCheckAccess ¶
func WithMiddlewareCheckAccess( ctx context.Context, list []mrserver.HttpController, section mrperms.AppSection, access mrperms.AccessControl, ) []mrserver.HttpController
func WithPermission ¶
func WithPermission(ctx context.Context, list []mrserver.HttpController, permission string) []mrserver.HttpController
Types ¶
type ControllerHandlers ¶
type ControllerHandlers []mrserver.HttpHandler
func (ControllerHandlers) Handlers ¶
func (c ControllerHandlers) Handlers() []mrserver.HttpHandler
Click to show internal directories.
Click to hide internal directories.