minder
minder copied to clipboard
Split ProfileService proto to ProfileService and RuleTypeService
The ProfileService has RPC methods for both profiles and rule types, so it's nicer if we split it.
Example of the server-side methods:
type ProfileServiceServer interface {
CreateProfile(context.Context, *CreateProfileRequest) (*CreateProfileResponse, error)
UpdateProfile(context.Context, *UpdateProfileRequest) (*UpdateProfileResponse, error)
DeleteProfile(context.Context, *DeleteProfileRequest) (*DeleteProfileResponse, error)
ListProfiles(context.Context, *ListProfilesRequest) (*ListProfilesResponse, error)
GetProfileById(context.Context, *GetProfileByIdRequest) (*GetProfileByIdResponse, error)
GetProfileStatusByName(context.Context, *GetProfileStatusByNameRequest) (*GetProfileStatusByNameResponse, error)
GetProfileStatusByProject(context.Context, *GetProfileStatusByProjectRequest) (*GetProfileStatusByProjectResponse, error)
ListRuleTypes(context.Context, *ListRuleTypesRequest) (*ListRuleTypesResponse, error)
GetRuleTypeByName(context.Context, *GetRuleTypeByNameRequest) (*GetRuleTypeByNameResponse, error)
GetRuleTypeById(context.Context, *GetRuleTypeByIdRequest) (*GetRuleTypeByIdResponse, error)
CreateRuleType(context.Context, *CreateRuleTypeRequest) (*CreateRuleTypeResponse, error)
UpdateRuleType(context.Context, *UpdateRuleTypeRequest) (*UpdateRuleTypeResponse, error)
DeleteRuleType(context.Context, *DeleteRuleTypeRequest) (*DeleteRuleTypeResponse, error)
mustEmbedUnimplementedProfileServiceServer()
}
Hey @rdimitrov can I work on this issue
Of course! 🚀
ok @rdimitrov
Unassigning @nitishmalang since they want to work on something else 👍