Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)
- type AddUsersToRoleRequest
- func (*AddUsersToRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddUsersToRoleRequest) GetRoleId() int32
- func (x *AddUsersToRoleRequest) GetUsernames() []string
- func (*AddUsersToRoleRequest) ProtoMessage()
- func (x *AddUsersToRoleRequest) ProtoReflect() protoreflect.Message
- func (x *AddUsersToRoleRequest) Reset()
- func (x *AddUsersToRoleRequest) String() string
- type AddUsersToRoleResponse
- type AdminServiceClient
- type AdminServiceServer
- type CreateRoleRequest
- func (*CreateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleRequest) GetName() string
- func (x *CreateRoleRequest) GetPermissions() []*PermissionGroup
- func (*CreateRoleRequest) ProtoMessage()
- func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *CreateRoleRequest) Reset()
- func (x *CreateRoleRequest) String() string
- type CreateRoleResponse
- func (*CreateRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateRoleResponse) GetRoleId() int32
- func (*CreateRoleResponse) ProtoMessage()
- func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
- func (x *CreateRoleResponse) Reset()
- func (x *CreateRoleResponse) String() string
- type DeleteRoleRequest
- func (*DeleteRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteRoleRequest) GetId() int32
- func (x *DeleteRoleRequest) GetReplacementRoleId() int32
- func (*DeleteRoleRequest) ProtoMessage()
- func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteRoleRequest) Reset()
- func (x *DeleteRoleRequest) String() string
- type DeleteRoleResponse
- type DeleteUsersFromRoleRequest
- func (*DeleteUsersFromRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteUsersFromRoleRequest) GetRoleId() int32
- func (x *DeleteUsersFromRoleRequest) GetUsernames() []string
- func (*DeleteUsersFromRoleRequest) ProtoMessage()
- func (x *DeleteUsersFromRoleRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteUsersFromRoleRequest) Reset()
- func (x *DeleteUsersFromRoleRequest) String() string
- type DeleteUsersFromRoleResponse
- type GetRoleRequest
- type GetRoleResponse
- type GetRolesRequest
- type GetRolesResponse
- func (*GetRolesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRolesResponse) GetAvailablePermissions() []*PermissionGroup
- func (x *GetRolesResponse) GetRoles() []*Role
- func (*GetRolesResponse) ProtoMessage()
- func (x *GetRolesResponse) ProtoReflect() protoreflect.Message
- func (x *GetRolesResponse) Reset()
- func (x *GetRolesResponse) String() string
- type PermissionGroup
- func (*PermissionGroup) Descriptor() ([]byte, []int)deprecated
- func (x *PermissionGroup) GetGroup() string
- func (x *PermissionGroup) GetPermissions() []string
- func (*PermissionGroup) ProtoMessage()
- func (x *PermissionGroup) ProtoReflect() protoreflect.Message
- func (x *PermissionGroup) Reset()
- func (x *PermissionGroup) String() string
- type Role
- type UnimplementedAdminServiceServer
- func (UnimplementedAdminServiceServer) AddUsersToRole(context.Context, *AddUsersToRoleRequest) (*AddUsersToRoleResponse, error)
- func (UnimplementedAdminServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
- func (UnimplementedAdminServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
- func (UnimplementedAdminServiceServer) DeleteUsersFromRole(context.Context, *DeleteUsersFromRoleRequest) (*DeleteUsersFromRoleResponse, error)
- func (UnimplementedAdminServiceServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
- func (UnimplementedAdminServiceServer) GetRoles(context.Context, *GetRolesRequest) (*GetRolesResponse, error)
- func (UnimplementedAdminServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
- type UnsafeAdminServiceServer
- type UpdateRoleRequest
- func (*UpdateRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateRoleRequest) GetId() int32
- func (x *UpdateRoleRequest) GetName() string
- func (x *UpdateRoleRequest) GetPermissions() []*PermissionGroup
- func (*UpdateRoleRequest) ProtoMessage()
- func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateRoleRequest) Reset()
- func (x *UpdateRoleRequest) String() string
- type UpdateRoleResponse
Constants ¶
const ( AdminService_CreateRole_FullMethodName = "/admin.v1.AdminService/CreateRole" AdminService_AddUsersToRole_FullMethodName = "/admin.v1.AdminService/AddUsersToRole" AdminService_DeleteUsersFromRole_FullMethodName = "/admin.v1.AdminService/DeleteUsersFromRole" AdminService_GetRoles_FullMethodName = "/admin.v1.AdminService/GetRoles" AdminService_GetRole_FullMethodName = "/admin.v1.AdminService/GetRole" AdminService_UpdateRole_FullMethodName = "/admin.v1.AdminService/UpdateRole" AdminService_DeleteRole_FullMethodName = "/admin.v1.AdminService/DeleteRole" )
Variables ¶
var AdminService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "admin.v1.AdminService", HandlerType: (*AdminServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateRole", Handler: _AdminService_CreateRole_Handler, }, { MethodName: "AddUsersToRole", Handler: _AdminService_AddUsersToRole_Handler, }, { MethodName: "DeleteUsersFromRole", Handler: _AdminService_DeleteUsersFromRole_Handler, }, { MethodName: "GetRoles", Handler: _AdminService_GetRoles_Handler, }, { MethodName: "GetRole", Handler: _AdminService_GetRole_Handler, }, { MethodName: "UpdateRole", Handler: _AdminService_UpdateRole_Handler, }, { MethodName: "DeleteRole", Handler: _AdminService_DeleteRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "admin/v1/admin.proto", }
AdminService_ServiceDesc is the grpc.ServiceDesc for AdminService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_admin_v1_admin_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAdminServiceServer ¶
func RegisterAdminServiceServer(s grpc.ServiceRegistrar, srv AdminServiceServer)
Types ¶
type AddUsersToRoleRequest ¶
type AddUsersToRoleRequest struct {
RoleId int32 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
Usernames []string `protobuf:"bytes,2,rep,name=usernames,proto3" json:"usernames,omitempty"`
// contains filtered or unexported fields
}
func (*AddUsersToRoleRequest) Descriptor
deprecated
func (*AddUsersToRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddUsersToRoleRequest.ProtoReflect.Descriptor instead.
func (*AddUsersToRoleRequest) GetRoleId ¶
func (x *AddUsersToRoleRequest) GetRoleId() int32
func (*AddUsersToRoleRequest) GetUsernames ¶
func (x *AddUsersToRoleRequest) GetUsernames() []string
func (*AddUsersToRoleRequest) ProtoMessage ¶
func (*AddUsersToRoleRequest) ProtoMessage()
func (*AddUsersToRoleRequest) ProtoReflect ¶
func (x *AddUsersToRoleRequest) ProtoReflect() protoreflect.Message
func (*AddUsersToRoleRequest) Reset ¶
func (x *AddUsersToRoleRequest) Reset()
func (*AddUsersToRoleRequest) String ¶
func (x *AddUsersToRoleRequest) String() string
type AddUsersToRoleResponse ¶
type AddUsersToRoleResponse struct {
// contains filtered or unexported fields
}
func (*AddUsersToRoleResponse) Descriptor
deprecated
func (*AddUsersToRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddUsersToRoleResponse.ProtoReflect.Descriptor instead.
func (*AddUsersToRoleResponse) ProtoMessage ¶
func (*AddUsersToRoleResponse) ProtoMessage()
func (*AddUsersToRoleResponse) ProtoReflect ¶
func (x *AddUsersToRoleResponse) ProtoReflect() protoreflect.Message
func (*AddUsersToRoleResponse) Reset ¶
func (x *AddUsersToRoleResponse) Reset()
func (*AddUsersToRoleResponse) String ¶
func (x *AddUsersToRoleResponse) String() string
type AdminServiceClient ¶
type AdminServiceClient interface {
CreateRole(ctx context.Context, in *CreateRoleRequest, opts ...grpc.CallOption) (*CreateRoleResponse, error)
AddUsersToRole(ctx context.Context, in *AddUsersToRoleRequest, opts ...grpc.CallOption) (*AddUsersToRoleResponse, error)
DeleteUsersFromRole(ctx context.Context, in *DeleteUsersFromRoleRequest, opts ...grpc.CallOption) (*DeleteUsersFromRoleResponse, error)
GetRoles(ctx context.Context, in *GetRolesRequest, opts ...grpc.CallOption) (*GetRolesResponse, error)
GetRole(ctx context.Context, in *GetRoleRequest, opts ...grpc.CallOption) (*GetRoleResponse, error)
UpdateRole(ctx context.Context, in *UpdateRoleRequest, opts ...grpc.CallOption) (*UpdateRoleResponse, error)
DeleteRole(ctx context.Context, in *DeleteRoleRequest, opts ...grpc.CallOption) (*DeleteRoleResponse, error)
}
AdminServiceClient is the client API for AdminService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewAdminServiceClient ¶
func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient
type AdminServiceServer ¶
type AdminServiceServer interface {
CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
AddUsersToRole(context.Context, *AddUsersToRoleRequest) (*AddUsersToRoleResponse, error)
DeleteUsersFromRole(context.Context, *DeleteUsersFromRoleRequest) (*DeleteUsersFromRoleResponse, error)
GetRoles(context.Context, *GetRolesRequest) (*GetRolesResponse, error)
GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
}
AdminServiceServer is the server API for AdminService service. All implementations should embed UnimplementedAdminServiceServer for forward compatibility
type CreateRoleRequest ¶
type CreateRoleRequest struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Permissions []*PermissionGroup `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
// contains filtered or unexported fields
}
func (*CreateRoleRequest) Descriptor
deprecated
func (*CreateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleRequest.ProtoReflect.Descriptor instead.
func (*CreateRoleRequest) GetName ¶
func (x *CreateRoleRequest) GetName() string
func (*CreateRoleRequest) GetPermissions ¶
func (x *CreateRoleRequest) GetPermissions() []*PermissionGroup
func (*CreateRoleRequest) ProtoMessage ¶
func (*CreateRoleRequest) ProtoMessage()
func (*CreateRoleRequest) ProtoReflect ¶
func (x *CreateRoleRequest) ProtoReflect() protoreflect.Message
func (*CreateRoleRequest) Reset ¶
func (x *CreateRoleRequest) Reset()
func (*CreateRoleRequest) String ¶
func (x *CreateRoleRequest) String() string
type CreateRoleResponse ¶
type CreateRoleResponse struct {
RoleId int32 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
// contains filtered or unexported fields
}
func (*CreateRoleResponse) Descriptor
deprecated
func (*CreateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateRoleResponse.ProtoReflect.Descriptor instead.
func (*CreateRoleResponse) GetRoleId ¶
func (x *CreateRoleResponse) GetRoleId() int32
func (*CreateRoleResponse) ProtoMessage ¶
func (*CreateRoleResponse) ProtoMessage()
func (*CreateRoleResponse) ProtoReflect ¶
func (x *CreateRoleResponse) ProtoReflect() protoreflect.Message
func (*CreateRoleResponse) Reset ¶
func (x *CreateRoleResponse) Reset()
func (*CreateRoleResponse) String ¶
func (x *CreateRoleResponse) String() string
type DeleteRoleRequest ¶
type DeleteRoleRequest struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
ReplacementRoleId *int32 `protobuf:"varint,2,opt,name=replacement_role_id,json=replacementRoleId,proto3,oneof" json:"replacement_role_id,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteRoleRequest) Descriptor
deprecated
func (*DeleteRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteRoleRequest) GetId ¶
func (x *DeleteRoleRequest) GetId() int32
func (*DeleteRoleRequest) GetReplacementRoleId ¶
func (x *DeleteRoleRequest) GetReplacementRoleId() int32
func (*DeleteRoleRequest) ProtoMessage ¶
func (*DeleteRoleRequest) ProtoMessage()
func (*DeleteRoleRequest) ProtoReflect ¶
func (x *DeleteRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteRoleRequest) Reset ¶
func (x *DeleteRoleRequest) Reset()
func (*DeleteRoleRequest) String ¶
func (x *DeleteRoleRequest) String() string
type DeleteRoleResponse ¶
type DeleteRoleResponse struct {
// contains filtered or unexported fields
}
func (*DeleteRoleResponse) Descriptor
deprecated
func (*DeleteRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteRoleResponse) ProtoMessage ¶
func (*DeleteRoleResponse) ProtoMessage()
func (*DeleteRoleResponse) ProtoReflect ¶
func (x *DeleteRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteRoleResponse) Reset ¶
func (x *DeleteRoleResponse) Reset()
func (*DeleteRoleResponse) String ¶
func (x *DeleteRoleResponse) String() string
type DeleteUsersFromRoleRequest ¶
type DeleteUsersFromRoleRequest struct {
RoleId int32 `protobuf:"varint,1,opt,name=role_id,json=roleId,proto3" json:"role_id,omitempty"`
Usernames []string `protobuf:"bytes,2,rep,name=usernames,proto3" json:"usernames,omitempty"`
// contains filtered or unexported fields
}
func (*DeleteUsersFromRoleRequest) Descriptor
deprecated
func (*DeleteUsersFromRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUsersFromRoleRequest.ProtoReflect.Descriptor instead.
func (*DeleteUsersFromRoleRequest) GetRoleId ¶
func (x *DeleteUsersFromRoleRequest) GetRoleId() int32
func (*DeleteUsersFromRoleRequest) GetUsernames ¶
func (x *DeleteUsersFromRoleRequest) GetUsernames() []string
func (*DeleteUsersFromRoleRequest) ProtoMessage ¶
func (*DeleteUsersFromRoleRequest) ProtoMessage()
func (*DeleteUsersFromRoleRequest) ProtoReflect ¶
func (x *DeleteUsersFromRoleRequest) ProtoReflect() protoreflect.Message
func (*DeleteUsersFromRoleRequest) Reset ¶
func (x *DeleteUsersFromRoleRequest) Reset()
func (*DeleteUsersFromRoleRequest) String ¶
func (x *DeleteUsersFromRoleRequest) String() string
type DeleteUsersFromRoleResponse ¶
type DeleteUsersFromRoleResponse struct {
// contains filtered or unexported fields
}
func (*DeleteUsersFromRoleResponse) Descriptor
deprecated
func (*DeleteUsersFromRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteUsersFromRoleResponse.ProtoReflect.Descriptor instead.
func (*DeleteUsersFromRoleResponse) ProtoMessage ¶
func (*DeleteUsersFromRoleResponse) ProtoMessage()
func (*DeleteUsersFromRoleResponse) ProtoReflect ¶
func (x *DeleteUsersFromRoleResponse) ProtoReflect() protoreflect.Message
func (*DeleteUsersFromRoleResponse) Reset ¶
func (x *DeleteUsersFromRoleResponse) Reset()
func (*DeleteUsersFromRoleResponse) String ¶
func (x *DeleteUsersFromRoleResponse) String() string
type GetRoleRequest ¶
type GetRoleRequest struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*GetRoleRequest) Descriptor
deprecated
func (*GetRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleRequest.ProtoReflect.Descriptor instead.
func (*GetRoleRequest) GetId ¶
func (x *GetRoleRequest) GetId() int32
func (*GetRoleRequest) ProtoMessage ¶
func (*GetRoleRequest) ProtoMessage()
func (*GetRoleRequest) ProtoReflect ¶
func (x *GetRoleRequest) ProtoReflect() protoreflect.Message
func (*GetRoleRequest) Reset ¶
func (x *GetRoleRequest) Reset()
func (*GetRoleRequest) String ¶
func (x *GetRoleRequest) String() string
type GetRoleResponse ¶
type GetRoleResponse struct {
Usernames []string `protobuf:"bytes,1,rep,name=usernames,proto3" json:"usernames,omitempty"`
// contains filtered or unexported fields
}
func (*GetRoleResponse) Descriptor
deprecated
func (*GetRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRoleResponse.ProtoReflect.Descriptor instead.
func (*GetRoleResponse) GetUsernames ¶
func (x *GetRoleResponse) GetUsernames() []string
func (*GetRoleResponse) ProtoMessage ¶
func (*GetRoleResponse) ProtoMessage()
func (*GetRoleResponse) ProtoReflect ¶
func (x *GetRoleResponse) ProtoReflect() protoreflect.Message
func (*GetRoleResponse) Reset ¶
func (x *GetRoleResponse) Reset()
func (*GetRoleResponse) String ¶
func (x *GetRoleResponse) String() string
type GetRolesRequest ¶
type GetRolesRequest struct {
// contains filtered or unexported fields
}
func (*GetRolesRequest) Descriptor
deprecated
func (*GetRolesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRolesRequest.ProtoReflect.Descriptor instead.
func (*GetRolesRequest) ProtoMessage ¶
func (*GetRolesRequest) ProtoMessage()
func (*GetRolesRequest) ProtoReflect ¶
func (x *GetRolesRequest) ProtoReflect() protoreflect.Message
func (*GetRolesRequest) Reset ¶
func (x *GetRolesRequest) Reset()
func (*GetRolesRequest) String ¶
func (x *GetRolesRequest) String() string
type GetRolesResponse ¶
type GetRolesResponse struct {
Roles []*Role `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"`
AvailablePermissions []*PermissionGroup `protobuf:"bytes,2,rep,name=available_permissions,json=availablePermissions,proto3" json:"available_permissions,omitempty"`
// contains filtered or unexported fields
}
func (*GetRolesResponse) Descriptor
deprecated
func (*GetRolesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRolesResponse.ProtoReflect.Descriptor instead.
func (*GetRolesResponse) GetAvailablePermissions ¶
func (x *GetRolesResponse) GetAvailablePermissions() []*PermissionGroup
func (*GetRolesResponse) GetRoles ¶
func (x *GetRolesResponse) GetRoles() []*Role
func (*GetRolesResponse) ProtoMessage ¶
func (*GetRolesResponse) ProtoMessage()
func (*GetRolesResponse) ProtoReflect ¶
func (x *GetRolesResponse) ProtoReflect() protoreflect.Message
func (*GetRolesResponse) Reset ¶
func (x *GetRolesResponse) Reset()
func (*GetRolesResponse) String ¶
func (x *GetRolesResponse) String() string
type PermissionGroup ¶
type PermissionGroup struct {
Group string `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
Permissions []string `protobuf:"bytes,2,rep,name=permissions,proto3" json:"permissions,omitempty"`
// contains filtered or unexported fields
}
func (*PermissionGroup) Descriptor
deprecated
func (*PermissionGroup) Descriptor() ([]byte, []int)
Deprecated: Use PermissionGroup.ProtoReflect.Descriptor instead.
func (*PermissionGroup) GetGroup ¶
func (x *PermissionGroup) GetGroup() string
func (*PermissionGroup) GetPermissions ¶
func (x *PermissionGroup) GetPermissions() []string
func (*PermissionGroup) ProtoMessage ¶
func (*PermissionGroup) ProtoMessage()
func (*PermissionGroup) ProtoReflect ¶
func (x *PermissionGroup) ProtoReflect() protoreflect.Message
func (*PermissionGroup) Reset ¶
func (x *PermissionGroup) Reset()
func (*PermissionGroup) String ¶
func (x *PermissionGroup) String() string
type Role ¶
type Role struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Permissions []*PermissionGroup `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
// contains filtered or unexported fields
}
func (*Role) Descriptor
deprecated
func (*Role) GetPermissions ¶
func (x *Role) GetPermissions() []*PermissionGroup
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type UnimplementedAdminServiceServer ¶
type UnimplementedAdminServiceServer struct {
}
UnimplementedAdminServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedAdminServiceServer) AddUsersToRole ¶
func (UnimplementedAdminServiceServer) AddUsersToRole(context.Context, *AddUsersToRoleRequest) (*AddUsersToRoleResponse, error)
func (UnimplementedAdminServiceServer) CreateRole ¶
func (UnimplementedAdminServiceServer) CreateRole(context.Context, *CreateRoleRequest) (*CreateRoleResponse, error)
func (UnimplementedAdminServiceServer) DeleteRole ¶
func (UnimplementedAdminServiceServer) DeleteRole(context.Context, *DeleteRoleRequest) (*DeleteRoleResponse, error)
func (UnimplementedAdminServiceServer) DeleteUsersFromRole ¶
func (UnimplementedAdminServiceServer) DeleteUsersFromRole(context.Context, *DeleteUsersFromRoleRequest) (*DeleteUsersFromRoleResponse, error)
func (UnimplementedAdminServiceServer) GetRole ¶
func (UnimplementedAdminServiceServer) GetRole(context.Context, *GetRoleRequest) (*GetRoleResponse, error)
func (UnimplementedAdminServiceServer) GetRoles ¶
func (UnimplementedAdminServiceServer) GetRoles(context.Context, *GetRolesRequest) (*GetRolesResponse, error)
func (UnimplementedAdminServiceServer) UpdateRole ¶
func (UnimplementedAdminServiceServer) UpdateRole(context.Context, *UpdateRoleRequest) (*UpdateRoleResponse, error)
type UnsafeAdminServiceServer ¶
type UnsafeAdminServiceServer interface {
// contains filtered or unexported methods
}
UnsafeAdminServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AdminServiceServer will result in compilation errors.
type UpdateRoleRequest ¶
type UpdateRoleRequest struct {
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name *string `protobuf:"bytes,2,opt,name=name,proto3,oneof" json:"name,omitempty"`
Permissions []*PermissionGroup `protobuf:"bytes,3,rep,name=permissions,proto3" json:"permissions,omitempty"`
// contains filtered or unexported fields
}
func (*UpdateRoleRequest) Descriptor
deprecated
func (*UpdateRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleRequest.ProtoReflect.Descriptor instead.
func (*UpdateRoleRequest) GetId ¶
func (x *UpdateRoleRequest) GetId() int32
func (*UpdateRoleRequest) GetName ¶
func (x *UpdateRoleRequest) GetName() string
func (*UpdateRoleRequest) GetPermissions ¶
func (x *UpdateRoleRequest) GetPermissions() []*PermissionGroup
func (*UpdateRoleRequest) ProtoMessage ¶
func (*UpdateRoleRequest) ProtoMessage()
func (*UpdateRoleRequest) ProtoReflect ¶
func (x *UpdateRoleRequest) ProtoReflect() protoreflect.Message
func (*UpdateRoleRequest) Reset ¶
func (x *UpdateRoleRequest) Reset()
func (*UpdateRoleRequest) String ¶
func (x *UpdateRoleRequest) String() string
type UpdateRoleResponse ¶
type UpdateRoleResponse struct {
// contains filtered or unexported fields
}
func (*UpdateRoleResponse) Descriptor
deprecated
func (*UpdateRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateRoleResponse.ProtoReflect.Descriptor instead.
func (*UpdateRoleResponse) ProtoMessage ¶
func (*UpdateRoleResponse) ProtoMessage()
func (*UpdateRoleResponse) ProtoReflect ¶
func (x *UpdateRoleResponse) ProtoReflect() protoreflect.Message
func (*UpdateRoleResponse) Reset ¶
func (x *UpdateRoleResponse) Reset()
func (*UpdateRoleResponse) String ¶
func (x *UpdateRoleResponse) String() string