Documentation
¶
Index ¶
- type Auth
- type Permission
- func (s *Permission) Create(ctx context.Context, req *appv1.CreatePermissionReq) (*appv1.Permission, error)
- func (s *Permission) Delete(ctx context.Context, req *appv1.DeletePermissionReq) (*servercommon.Empty, error)
- func (s *Permission) Get(ctx context.Context, req *appv1.GetPermissionReq) (*appv1.Permission, error)
- func (s *Permission) List(ctx context.Context, req *appv1.ListPermissionReq) (*appv1.ListPermissionResp, error)
- func (s *Permission) Update(ctx context.Context, req *appv1.UpdatePermissionReq) (*appv1.Permission, error)
- type Role
- func (s *Role) Create(ctx context.Context, req *appv1.CreateRoleReq) (*appv1.Role, error)
- func (s *Role) Delete(ctx context.Context, req *appv1.DeleteRoleReq) (*servercommon.Empty, error)
- func (s *Role) Get(ctx context.Context, req *appv1.GetRoleReq) (*appv1.Role, error)
- func (s *Role) List(ctx context.Context, req *appv1.ListRoleReq) (*appv1.ListRoleResp, error)
- func (s *Role) SetPermissions(ctx context.Context, req *appv1.SetRolePermissionsReq) (*servercommon.Empty, error)
- func (s *Role) Update(ctx context.Context, req *appv1.UpdateRoleReq) (*appv1.Role, error)
- type User
- func (s *User) Create(ctx context.Context, req *appv1.CreateUserReq) (*appv1.User, error)
- func (s *User) Delete(ctx context.Context, req *appv1.DeleteUserReq) (*servercommon.Empty, error)
- func (s *User) Get(ctx context.Context, req *appv1.GetUserReq) (*appv1.User, error)
- func (s *User) List(ctx context.Context, req *appv1.ListUserReq) (*appv1.ListUserResp, error)
- func (s *User) SetRoles(ctx context.Context, req *appv1.SetUserRolesReq) (*servercommon.Empty, error)
- func (s *User) Update(ctx context.Context, req *appv1.UpdateUserReq) (*appv1.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
appv1.UnimplementedAuthServiceServer
// contains filtered or unexported fields
}
type Permission ¶
type Permission struct {
appv1.UnimplementedPermissionServiceServer
}
func NewPermission ¶
func NewPermission() *Permission
func (*Permission) Create ¶
func (s *Permission) Create(ctx context.Context, req *appv1.CreatePermissionReq) (*appv1.Permission, error)
func (*Permission) Delete ¶
func (s *Permission) Delete(ctx context.Context, req *appv1.DeletePermissionReq) (*servercommon.Empty, error)
func (*Permission) Get ¶
func (s *Permission) Get(ctx context.Context, req *appv1.GetPermissionReq) (*appv1.Permission, error)
func (*Permission) List ¶
func (s *Permission) List(ctx context.Context, req *appv1.ListPermissionReq) (*appv1.ListPermissionResp, error)
func (*Permission) Update ¶
func (s *Permission) Update(ctx context.Context, req *appv1.UpdatePermissionReq) (*appv1.Permission, error)
type Role ¶
type Role struct {
appv1.UnimplementedRoleServiceServer
}
func (*Role) Delete ¶
func (s *Role) Delete(ctx context.Context, req *appv1.DeleteRoleReq) (*servercommon.Empty, error)
func (*Role) List ¶
func (s *Role) List(ctx context.Context, req *appv1.ListRoleReq) (*appv1.ListRoleResp, error)
func (*Role) SetPermissions ¶
func (s *Role) SetPermissions(ctx context.Context, req *appv1.SetRolePermissionsReq) (*servercommon.Empty, error)
type User ¶
type User struct {
appv1.UnimplementedUserServiceServer
// contains filtered or unexported fields
}
func (*User) Delete ¶
func (s *User) Delete(ctx context.Context, req *appv1.DeleteUserReq) (*servercommon.Empty, error)
func (*User) List ¶
func (s *User) List(ctx context.Context, req *appv1.ListUserReq) (*appv1.ListUserResp, error)
func (*User) SetRoles ¶
func (s *User) SetRoles(ctx context.Context, req *appv1.SetUserRolesReq) (*servercommon.Empty, error)
Click to show internal directories.
Click to hide internal directories.