am

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckRolesPermission

func CheckRolesPermission(ctx context.Context, roleIds []string, action string) ([]*models.Role, error)

func Serve

func Serve(cfg *config.Config)

Types

type Server

type Server struct {
}

func (*Server) BindUserRole

func (p *Server) BindUserRole(ctx context.Context, req *pb.BindUserRoleRequest) (*pb.BindUserRoleResponse, error)

func (*Server) CanDo

func (p *Server) CanDo(ctx context.Context, req *pb.CanDoRequest) (*pb.CanDoResponse, error)

func (*Server) CreateRole

func (p *Server) CreateRole(ctx context.Context, req *pb.CreateRoleRequest) (*pb.CreateRoleResponse, error)

func (*Server) DeleteRoles

func (p *Server) DeleteRoles(ctx context.Context, req *pb.DeleteRolesRequest) (*pb.DeleteRolesResponse, error)

func (*Server) DescribeRoles

func (p *Server) DescribeRoles(ctx context.Context, req *pb.DescribeRolesRequest) (*pb.DescribeRolesResponse, error)

func (*Server) DescribeRolesWithUser

func (p *Server) DescribeRolesWithUser(ctx context.Context, req *pb.DescribeRolesRequest) (*pb.DescribeRolesWithUserResponse, error)

func (*Server) GetRole

func (p *Server) GetRole(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleResponse, error)

func (*Server) GetRoleModule

func (p *Server) GetRoleModule(ctx context.Context, req *pb.GetRoleModuleRequest) (*pb.GetRoleModuleResponse, error)

func (*Server) GetRoleWithUser

func (p *Server) GetRoleWithUser(ctx context.Context, req *pb.GetRoleRequest) (*pb.GetRoleWithUserResponse, error)

func (*Server) GetVersion

func (*Server) ModifyRole

func (p *Server) ModifyRole(ctx context.Context, req *pb.ModifyRoleRequest) (*pb.ModifyRoleResponse, error)

func (*Server) ModifyRoleModule

func (p *Server) ModifyRoleModule(ctx context.Context, req *pb.ModifyRoleModuleRequest) (*pb.ModifyRoleModuleResponse, error)

func (*Server) UnbindUserRole

func (p *Server) UnbindUserRole(ctx context.Context, req *pb.UnbindUserRoleRequest) (*pb.UnbindUserRoleResponse, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL