Documentation ¶
Index ¶
- type PermissionServiceServer
- func (s *PermissionServiceServer) HasPermission(ctx context.Context, req *protos.HasPermissionRequest) (*protos.HasPermissionResponse, error)
- func (s *PermissionServiceServer) ListResourcePatterns(ctx context.Context, req *protos.ListResourcePatternsRequest) (*protos.ListResourcePatternsResponse, error)
- type RoleServiceServer
- func (s *RoleServiceServer) AssignRole(ctx context.Context, req *protos.AssignRoleRequest) (*protos.AssignRoleResponse, error)
- func (s *RoleServiceServer) AssignRoleToGroup(ctx context.Context, req *protos.AssignRoleToGroupRequest) (*protos.AssignRoleToGroupResponse, error)
- func (s *RoleServiceServer) CreateRole(ctx context.Context, req *protos.CreateRoleRequest) (*protos.CreateRoleResponse, error)
- func (s *RoleServiceServer) DeleteRole(ctx context.Context, req *protos.DeleteRoleRequest) (*protos.DeleteRoleResponse, error)
- func (s *RoleServiceServer) HasRole(ctx context.Context, req *protos.HasRoleRequest) (*protos.HasRoleResponse, error)
- func (s *RoleServiceServer) HasRoleForGroup(ctx context.Context, req *protos.HasRoleForGroupRequest) (*protos.HasRoleForGroupResponse, error)
- func (s *RoleServiceServer) ListRolePermissions(ctx context.Context, req *protos.ListRolePermissionsRequest) (*protos.ListRolePermissionsResponse, error)
- func (s *RoleServiceServer) UnassignRole(ctx context.Context, req *protos.UnassignRoleRequest) (*protos.UnassignRoleResponse, error)
- func (s *RoleServiceServer) UnassignRoleFromGroup(ctx context.Context, req *protos.UnassignRoleFromGroupRequest) (*protos.UnassignRoleFromGroupResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PermissionServiceServer ¶
type PermissionServiceServer struct {
// contains filtered or unexported fields
}
func NewPermissionServiceServer ¶
func NewPermissionServiceServer( logger logx.Logger, securityLogger logx.SecurityLogger, permissionRepo repos.PermissionRepo, ) *PermissionServiceServer
func (*PermissionServiceServer) HasPermission ¶
func (s *PermissionServiceServer) HasPermission( ctx context.Context, req *protos.HasPermissionRequest, ) (*protos.HasPermissionResponse, error)
func (*PermissionServiceServer) ListResourcePatterns ¶
func (s *PermissionServiceServer) ListResourcePatterns( ctx context.Context, req *protos.ListResourcePatternsRequest, ) (*protos.ListResourcePatternsResponse, error)
type RoleServiceServer ¶
type RoleServiceServer struct {
// contains filtered or unexported fields
}
func NewRoleServiceServer ¶
func NewRoleServiceServer( logger logx.Logger, securityLogger logx.SecurityLogger, roleRepo repos.RoleRepo, ) *RoleServiceServer
func (*RoleServiceServer) AssignRole ¶
func (s *RoleServiceServer) AssignRole( ctx context.Context, req *protos.AssignRoleRequest, ) (*protos.AssignRoleResponse, error)
func (*RoleServiceServer) AssignRoleToGroup ¶
func (s *RoleServiceServer) AssignRoleToGroup( ctx context.Context, req *protos.AssignRoleToGroupRequest, ) (*protos.AssignRoleToGroupResponse, error)
func (*RoleServiceServer) CreateRole ¶
func (s *RoleServiceServer) CreateRole( ctx context.Context, req *protos.CreateRoleRequest, ) (*protos.CreateRoleResponse, error)
func (*RoleServiceServer) DeleteRole ¶
func (s *RoleServiceServer) DeleteRole( ctx context.Context, req *protos.DeleteRoleRequest, ) (*protos.DeleteRoleResponse, error)
func (*RoleServiceServer) HasRole ¶
func (s *RoleServiceServer) HasRole( ctx context.Context, req *protos.HasRoleRequest, ) (*protos.HasRoleResponse, error)
func (*RoleServiceServer) HasRoleForGroup ¶
func (s *RoleServiceServer) HasRoleForGroup( ctx context.Context, req *protos.HasRoleForGroupRequest, ) (*protos.HasRoleForGroupResponse, error)
func (*RoleServiceServer) ListRolePermissions ¶
func (s *RoleServiceServer) ListRolePermissions( ctx context.Context, req *protos.ListRolePermissionsRequest, ) (*protos.ListRolePermissionsResponse, error)
func (*RoleServiceServer) UnassignRole ¶
func (s *RoleServiceServer) UnassignRole( ctx context.Context, req *protos.UnassignRoleRequest, ) (*protos.UnassignRoleResponse, error)
func (*RoleServiceServer) UnassignRoleFromGroup ¶
func (s *RoleServiceServer) UnassignRoleFromGroup( ctx context.Context, req *protos.UnassignRoleFromGroupRequest, ) (*protos.UnassignRoleFromGroupResponse, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.