Notifications parameters and delete members
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m54s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m54s
This commit is contained in:
@@ -28,6 +28,7 @@ const (
|
||||
GroupsManagement_Subscribe_FullMethodName = "/GroupsManagement/Subscribe"
|
||||
GroupsManagement_Unsubscribe_FullMethodName = "/GroupsManagement/Unsubscribe"
|
||||
GroupsManagement_DeleteGroup_FullMethodName = "/GroupsManagement/DeleteGroup"
|
||||
GroupsManagement_UpdateGroup_FullMethodName = "/GroupsManagement/UpdateGroup"
|
||||
GroupsManagement_AddGroupMember_FullMethodName = "/GroupsManagement/AddGroupMember"
|
||||
GroupsManagement_GetGroupMember_FullMethodName = "/GroupsManagement/GetGroupMember"
|
||||
GroupsManagement_GetGroupsMember_FullMethodName = "/GroupsManagement/GetGroupsMember"
|
||||
@@ -47,6 +48,7 @@ type GroupsManagementClient interface {
|
||||
Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error)
|
||||
Unsubscribe(ctx context.Context, in *UnsubscribeRequest, opts ...grpc.CallOption) (*UnsubscribeResponse, error)
|
||||
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*DeleteGroupResponse, error)
|
||||
UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*UpdateGroupResponse, error)
|
||||
// ////////member
|
||||
AddGroupMember(ctx context.Context, in *AddGroupMemberRequest, opts ...grpc.CallOption) (*AddGroupMemberResponse, error)
|
||||
GetGroupMember(ctx context.Context, in *GetGroupMemberRequest, opts ...grpc.CallOption) (*GetGroupMemberResponse, error)
|
||||
@@ -134,6 +136,16 @@ func (c *groupsManagementClient) DeleteGroup(ctx context.Context, in *DeleteGrou
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*UpdateGroupResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UpdateGroupResponse)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_UpdateGroup_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) AddGroupMember(ctx context.Context, in *AddGroupMemberRequest, opts ...grpc.CallOption) (*AddGroupMemberResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AddGroupMemberResponse)
|
||||
@@ -205,6 +217,7 @@ type GroupsManagementServer interface {
|
||||
Subscribe(context.Context, *SubscribeRequest) (*SubscribeResponse, error)
|
||||
Unsubscribe(context.Context, *UnsubscribeRequest) (*UnsubscribeResponse, error)
|
||||
DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error)
|
||||
UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error)
|
||||
// ////////member
|
||||
AddGroupMember(context.Context, *AddGroupMemberRequest) (*AddGroupMemberResponse, error)
|
||||
GetGroupMember(context.Context, *GetGroupMemberRequest) (*GetGroupMemberResponse, error)
|
||||
@@ -243,6 +256,9 @@ func (UnimplementedGroupsManagementServer) Unsubscribe(context.Context, *Unsubsc
|
||||
func (UnimplementedGroupsManagementServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteGroup not implemented")
|
||||
}
|
||||
func (UnimplementedGroupsManagementServer) UpdateGroup(context.Context, *UpdateGroupRequest) (*UpdateGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UpdateGroup not implemented")
|
||||
}
|
||||
func (UnimplementedGroupsManagementServer) AddGroupMember(context.Context, *AddGroupMemberRequest) (*AddGroupMemberResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AddGroupMember not implemented")
|
||||
}
|
||||
@@ -408,6 +424,24 @@ func _GroupsManagement_DeleteGroup_Handler(srv interface{}, ctx context.Context,
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _GroupsManagement_UpdateGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(GroupsManagementServer).UpdateGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: GroupsManagement_UpdateGroup_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).UpdateGroup(ctx, req.(*UpdateGroupRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _GroupsManagement_AddGroupMember_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddGroupMemberRequest)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -551,6 +585,10 @@ var GroupsManagement_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "DeleteGroup",
|
||||
Handler: _GroupsManagement_DeleteGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateGroup",
|
||||
Handler: _GroupsManagement_UpdateGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddGroupMember",
|
||||
Handler: _GroupsManagement_AddGroupMember_Handler,
|
||||
|
||||
Reference in New Issue
Block a user