Add delete option
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m57s
All checks were successful
Build and Push Docker Image / build_and_push (push) Successful in 1m57s
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.19.4
|
||||
// protoc-gen-go v1.36.7
|
||||
// protoc v6.31.1
|
||||
// source: groups.proto
|
||||
|
||||
package grpcapi
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
structpb "google.golang.org/protobuf/types/known/structpb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -22,23 +23,20 @@ const (
|
||||
)
|
||||
|
||||
type Group struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||
Members []string `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
|
||||
Data *structpb.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Namespace string `protobuf:"bytes,2,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
||||
Members []string `protobuf:"bytes,3,rep,name=members,proto3" json:"members,omitempty"`
|
||||
Data *structpb.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Group) Reset() {
|
||||
*x = Group{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_groups_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_groups_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Group) String() string {
|
||||
@@ -49,7 +47,7 @@ func (*Group) ProtoMessage() {}
|
||||
|
||||
func (x *Group) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_groups_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -94,38 +92,29 @@ func (x *Group) GetData() *structpb.Struct {
|
||||
|
||||
var File_groups_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_groups_proto_rawDesc = []byte{
|
||||
0x0a, 0x0c, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c,
|
||||
0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f,
|
||||
0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x7c, 0x0a, 0x05,
|
||||
0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
||||
0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
|
||||
0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
|
||||
0x61, 0x63, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x18, 0x03,
|
||||
0x20, 0x03, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x73, 0x12, 0x2b, 0x0a,
|
||||
0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f,
|
||||
0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74,
|
||||
0x72, 0x75, 0x63, 0x74, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69,
|
||||
0x74, 0x2e, 0x63, 0x6f, 0x6f, 0x70, 0x67, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x63, 0x6f, 0x6f, 0x70,
|
||||
0x67, 0x6f, 0x2d, 0x70, 0x6c, 0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x72, 0x6f, 0x75,
|
||||
0x70, 0x73, 0x2d, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x67, 0x72,
|
||||
0x70, 0x63, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_groups_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\fgroups.proto\x1a\x1cgoogle/protobuf/struct.proto\"|\n" +
|
||||
"\x05Group\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1c\n" +
|
||||
"\tnamespace\x18\x02 \x01(\tR\tnamespace\x12\x18\n" +
|
||||
"\amembers\x18\x03 \x03(\tR\amembers\x12+\n" +
|
||||
"\x04data\x18\x04 \x01(\v2\x17.google.protobuf.StructR\x04dataB9Z7git.coopgo.io/coopgo-platform/groups-management/grpcapib\x06proto3"
|
||||
|
||||
var (
|
||||
file_groups_proto_rawDescOnce sync.Once
|
||||
file_groups_proto_rawDescData = file_groups_proto_rawDesc
|
||||
file_groups_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_groups_proto_rawDescGZIP() []byte {
|
||||
file_groups_proto_rawDescOnce.Do(func() {
|
||||
file_groups_proto_rawDescData = protoimpl.X.CompressGZIP(file_groups_proto_rawDescData)
|
||||
file_groups_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_groups_proto_rawDesc), len(file_groups_proto_rawDesc)))
|
||||
})
|
||||
return file_groups_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_groups_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_groups_proto_goTypes = []interface{}{
|
||||
var file_groups_proto_goTypes = []any{
|
||||
(*Group)(nil), // 0: Group
|
||||
(*structpb.Struct)(nil), // 1: google.protobuf.Struct
|
||||
}
|
||||
@@ -143,25 +132,11 @@ func file_groups_proto_init() {
|
||||
if File_groups_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_groups_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*Group); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_groups_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_groups_proto_rawDesc), len(file_groups_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
@@ -172,7 +147,6 @@ func file_groups_proto_init() {
|
||||
MessageInfos: file_groups_proto_msgTypes,
|
||||
}.Build()
|
||||
File_groups_proto = out.File
|
||||
file_groups_proto_rawDesc = nil
|
||||
file_groups_proto_goTypes = nil
|
||||
file_groups_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -14,6 +14,7 @@ service GroupsManagement {
|
||||
rpc GetGroupsBatch(GetGroupsBatchRequest) returns (GetGroupsBatchResponse) {}
|
||||
rpc Subscribe(SubscribeRequest) returns (SubscribeResponse) {}
|
||||
rpc Unsubscribe(UnsubscribeRequest) returns (UnsubscribeResponse) {}
|
||||
rpc DeleteGroup(DeleteGroupRequest) returns (DeleteGroupResponse) {}
|
||||
//////////member
|
||||
rpc AddGroupMember(AddGroupMemberRequest) returns (AddGroupMemberResponse) {}
|
||||
rpc GetGroupMember(GetGroupMemberRequest) returns (GetGroupMemberResponse) {}
|
||||
@@ -63,6 +64,12 @@ message UnsubscribeRequest {
|
||||
message UnsubscribeResponse {
|
||||
bool ok = 32;
|
||||
}
|
||||
message DeleteGroupRequest {
|
||||
string id = 50;
|
||||
}
|
||||
message DeleteGroupResponse {
|
||||
bool ok = 51;
|
||||
}
|
||||
//////////////////member
|
||||
|
||||
message AddGroupMemberRequest {
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
//COOPGO Groups Management gRPC service definition
|
||||
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.2.0
|
||||
// - protoc v3.19.4
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc v6.31.1
|
||||
// source: groupsmanagement.proto
|
||||
|
||||
package grpcapi
|
||||
@@ -15,8 +17,24 @@ import (
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
// Requires gRPC-Go v1.32.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion7
|
||||
// Requires gRPC-Go v1.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
GroupsManagement_AddGroup_FullMethodName = "/GroupsManagement/AddGroup"
|
||||
GroupsManagement_GetGroup_FullMethodName = "/GroupsManagement/GetGroup"
|
||||
GroupsManagement_GetGroups_FullMethodName = "/GroupsManagement/GetGroups"
|
||||
GroupsManagement_GetGroupsBatch_FullMethodName = "/GroupsManagement/GetGroupsBatch"
|
||||
GroupsManagement_Subscribe_FullMethodName = "/GroupsManagement/Subscribe"
|
||||
GroupsManagement_Unsubscribe_FullMethodName = "/GroupsManagement/Unsubscribe"
|
||||
GroupsManagement_DeleteGroup_FullMethodName = "/GroupsManagement/DeleteGroup"
|
||||
GroupsManagement_AddGroupMember_FullMethodName = "/GroupsManagement/AddGroupMember"
|
||||
GroupsManagement_GetGroupMember_FullMethodName = "/GroupsManagement/GetGroupMember"
|
||||
GroupsManagement_GetGroupsMember_FullMethodName = "/GroupsManagement/GetGroupsMember"
|
||||
GroupsManagement_GetGroupsBatchMember_FullMethodName = "/GroupsManagement/GetGroupsBatchMember"
|
||||
GroupsManagement_SubscribeMember_FullMethodName = "/GroupsManagement/SubscribeMember"
|
||||
GroupsManagement_UnsubscribeMember_FullMethodName = "/GroupsManagement/UnsubscribeMember"
|
||||
)
|
||||
|
||||
// GroupsManagementClient is the client API for GroupsManagement service.
|
||||
//
|
||||
@@ -28,7 +46,8 @@ type GroupsManagementClient interface {
|
||||
GetGroupsBatch(ctx context.Context, in *GetGroupsBatchRequest, opts ...grpc.CallOption) (*GetGroupsBatchResponse, error)
|
||||
Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error)
|
||||
Unsubscribe(ctx context.Context, in *UnsubscribeRequest, opts ...grpc.CallOption) (*UnsubscribeResponse, error)
|
||||
//////////member
|
||||
DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*DeleteGroupResponse, error)
|
||||
// ////////member
|
||||
AddGroupMember(ctx context.Context, in *AddGroupMemberRequest, opts ...grpc.CallOption) (*AddGroupMemberResponse, error)
|
||||
GetGroupMember(ctx context.Context, in *GetGroupMemberRequest, opts ...grpc.CallOption) (*GetGroupMemberResponse, error)
|
||||
GetGroupsMember(ctx context.Context, in *GetGroupsMemberRequest, opts ...grpc.CallOption) (*GetGroupsMemberResponse, error)
|
||||
@@ -46,8 +65,9 @@ func NewGroupsManagementClient(cc grpc.ClientConnInterface) GroupsManagementClie
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) AddGroup(ctx context.Context, in *AddGroupRequest, opts ...grpc.CallOption) (*AddGroupResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AddGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/AddGroup", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_AddGroup_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -55,8 +75,9 @@ func (c *groupsManagementClient) AddGroup(ctx context.Context, in *AddGroupReque
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*GetGroupResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetGroupResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/GetGroup", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_GetGroup_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -64,8 +85,9 @@ func (c *groupsManagementClient) GetGroup(ctx context.Context, in *GetGroupReque
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) GetGroups(ctx context.Context, in *GetGroupsRequest, opts ...grpc.CallOption) (*GetGroupsResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetGroupsResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/GetGroups", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_GetGroups_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -73,8 +95,9 @@ func (c *groupsManagementClient) GetGroups(ctx context.Context, in *GetGroupsReq
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) GetGroupsBatch(ctx context.Context, in *GetGroupsBatchRequest, opts ...grpc.CallOption) (*GetGroupsBatchResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetGroupsBatchResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/GetGroupsBatch", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_GetGroupsBatch_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -82,8 +105,9 @@ func (c *groupsManagementClient) GetGroupsBatch(ctx context.Context, in *GetGrou
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) Subscribe(ctx context.Context, in *SubscribeRequest, opts ...grpc.CallOption) (*SubscribeResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SubscribeResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/Subscribe", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_Subscribe_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -91,8 +115,19 @@ func (c *groupsManagementClient) Subscribe(ctx context.Context, in *SubscribeReq
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) Unsubscribe(ctx context.Context, in *UnsubscribeRequest, opts ...grpc.CallOption) (*UnsubscribeResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UnsubscribeResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/Unsubscribe", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_Unsubscribe_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*DeleteGroupResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(DeleteGroupResponse)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_DeleteGroup_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -100,8 +135,9 @@ func (c *groupsManagementClient) Unsubscribe(ctx context.Context, in *Unsubscrib
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) AddGroupMember(ctx context.Context, in *AddGroupMemberRequest, opts ...grpc.CallOption) (*AddGroupMemberResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(AddGroupMemberResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/AddGroupMember", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_AddGroupMember_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -109,8 +145,9 @@ func (c *groupsManagementClient) AddGroupMember(ctx context.Context, in *AddGrou
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) GetGroupMember(ctx context.Context, in *GetGroupMemberRequest, opts ...grpc.CallOption) (*GetGroupMemberResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetGroupMemberResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/GetGroupMember", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_GetGroupMember_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -118,8 +155,9 @@ func (c *groupsManagementClient) GetGroupMember(ctx context.Context, in *GetGrou
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) GetGroupsMember(ctx context.Context, in *GetGroupsMemberRequest, opts ...grpc.CallOption) (*GetGroupsMemberResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetGroupsMemberResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/GetGroupsMember", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_GetGroupsMember_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -127,8 +165,9 @@ func (c *groupsManagementClient) GetGroupsMember(ctx context.Context, in *GetGro
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) GetGroupsBatchMember(ctx context.Context, in *GetGroupsBatchMemberRequest, opts ...grpc.CallOption) (*GetGroupsBatchMemberResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GetGroupsBatchMemberResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/GetGroupsBatchMember", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_GetGroupsBatchMember_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -136,8 +175,9 @@ func (c *groupsManagementClient) GetGroupsBatchMember(ctx context.Context, in *G
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) SubscribeMember(ctx context.Context, in *SubscribeMemberRequest, opts ...grpc.CallOption) (*SubscribeMemberResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SubscribeMemberResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/SubscribeMember", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_SubscribeMember_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -145,8 +185,9 @@ func (c *groupsManagementClient) SubscribeMember(ctx context.Context, in *Subscr
|
||||
}
|
||||
|
||||
func (c *groupsManagementClient) UnsubscribeMember(ctx context.Context, in *UnsubscribeMemberRequest, opts ...grpc.CallOption) (*UnsubscribeMemberResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(UnsubscribeMemberResponse)
|
||||
err := c.cc.Invoke(ctx, "/GroupsManagement/UnsubscribeMember", in, out, opts...)
|
||||
err := c.cc.Invoke(ctx, GroupsManagement_UnsubscribeMember_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -155,7 +196,7 @@ func (c *groupsManagementClient) UnsubscribeMember(ctx context.Context, in *Unsu
|
||||
|
||||
// GroupsManagementServer is the server API for GroupsManagement service.
|
||||
// All implementations must embed UnimplementedGroupsManagementServer
|
||||
// for forward compatibility
|
||||
// for forward compatibility.
|
||||
type GroupsManagementServer interface {
|
||||
AddGroup(context.Context, *AddGroupRequest) (*AddGroupResponse, error)
|
||||
GetGroup(context.Context, *GetGroupRequest) (*GetGroupResponse, error)
|
||||
@@ -163,7 +204,8 @@ type GroupsManagementServer interface {
|
||||
GetGroupsBatch(context.Context, *GetGroupsBatchRequest) (*GetGroupsBatchResponse, error)
|
||||
Subscribe(context.Context, *SubscribeRequest) (*SubscribeResponse, error)
|
||||
Unsubscribe(context.Context, *UnsubscribeRequest) (*UnsubscribeResponse, error)
|
||||
//////////member
|
||||
DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error)
|
||||
// ////////member
|
||||
AddGroupMember(context.Context, *AddGroupMemberRequest) (*AddGroupMemberResponse, error)
|
||||
GetGroupMember(context.Context, *GetGroupMemberRequest) (*GetGroupMemberResponse, error)
|
||||
GetGroupsMember(context.Context, *GetGroupsMemberRequest) (*GetGroupsMemberResponse, error)
|
||||
@@ -173,9 +215,12 @@ type GroupsManagementServer interface {
|
||||
mustEmbedUnimplementedGroupsManagementServer()
|
||||
}
|
||||
|
||||
// UnimplementedGroupsManagementServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedGroupsManagementServer struct {
|
||||
}
|
||||
// UnimplementedGroupsManagementServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedGroupsManagementServer struct{}
|
||||
|
||||
func (UnimplementedGroupsManagementServer) AddGroup(context.Context, *AddGroupRequest) (*AddGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AddGroup not implemented")
|
||||
@@ -195,6 +240,9 @@ func (UnimplementedGroupsManagementServer) Subscribe(context.Context, *Subscribe
|
||||
func (UnimplementedGroupsManagementServer) Unsubscribe(context.Context, *UnsubscribeRequest) (*UnsubscribeResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Unsubscribe not implemented")
|
||||
}
|
||||
func (UnimplementedGroupsManagementServer) DeleteGroup(context.Context, *DeleteGroupRequest) (*DeleteGroupResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DeleteGroup not implemented")
|
||||
}
|
||||
func (UnimplementedGroupsManagementServer) AddGroupMember(context.Context, *AddGroupMemberRequest) (*AddGroupMemberResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method AddGroupMember not implemented")
|
||||
}
|
||||
@@ -214,6 +262,7 @@ func (UnimplementedGroupsManagementServer) UnsubscribeMember(context.Context, *U
|
||||
return nil, status.Errorf(codes.Unimplemented, "method UnsubscribeMember not implemented")
|
||||
}
|
||||
func (UnimplementedGroupsManagementServer) mustEmbedUnimplementedGroupsManagementServer() {}
|
||||
func (UnimplementedGroupsManagementServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeGroupsManagementServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to GroupsManagementServer will
|
||||
@@ -223,6 +272,13 @@ type UnsafeGroupsManagementServer interface {
|
||||
}
|
||||
|
||||
func RegisterGroupsManagementServer(s grpc.ServiceRegistrar, srv GroupsManagementServer) {
|
||||
// If the following call pancis, it indicates UnimplementedGroupsManagementServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&GroupsManagement_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
@@ -236,7 +292,7 @@ func _GroupsManagement_AddGroup_Handler(srv interface{}, ctx context.Context, de
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/AddGroup",
|
||||
FullMethod: GroupsManagement_AddGroup_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).AddGroup(ctx, req.(*AddGroupRequest))
|
||||
@@ -254,7 +310,7 @@ func _GroupsManagement_GetGroup_Handler(srv interface{}, ctx context.Context, de
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/GetGroup",
|
||||
FullMethod: GroupsManagement_GetGroup_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).GetGroup(ctx, req.(*GetGroupRequest))
|
||||
@@ -272,7 +328,7 @@ func _GroupsManagement_GetGroups_Handler(srv interface{}, ctx context.Context, d
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/GetGroups",
|
||||
FullMethod: GroupsManagement_GetGroups_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).GetGroups(ctx, req.(*GetGroupsRequest))
|
||||
@@ -290,7 +346,7 @@ func _GroupsManagement_GetGroupsBatch_Handler(srv interface{}, ctx context.Conte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/GetGroupsBatch",
|
||||
FullMethod: GroupsManagement_GetGroupsBatch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).GetGroupsBatch(ctx, req.(*GetGroupsBatchRequest))
|
||||
@@ -308,7 +364,7 @@ func _GroupsManagement_Subscribe_Handler(srv interface{}, ctx context.Context, d
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/Subscribe",
|
||||
FullMethod: GroupsManagement_Subscribe_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).Subscribe(ctx, req.(*SubscribeRequest))
|
||||
@@ -326,7 +382,7 @@ func _GroupsManagement_Unsubscribe_Handler(srv interface{}, ctx context.Context,
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/Unsubscribe",
|
||||
FullMethod: GroupsManagement_Unsubscribe_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).Unsubscribe(ctx, req.(*UnsubscribeRequest))
|
||||
@@ -334,6 +390,24 @@ func _GroupsManagement_Unsubscribe_Handler(srv interface{}, ctx context.Context,
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _GroupsManagement_DeleteGroup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(DeleteGroupRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(GroupsManagementServer).DeleteGroup(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: GroupsManagement_DeleteGroup_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).DeleteGroup(ctx, req.(*DeleteGroupRequest))
|
||||
}
|
||||
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 {
|
||||
@@ -344,7 +418,7 @@ func _GroupsManagement_AddGroupMember_Handler(srv interface{}, ctx context.Conte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/AddGroupMember",
|
||||
FullMethod: GroupsManagement_AddGroupMember_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).AddGroupMember(ctx, req.(*AddGroupMemberRequest))
|
||||
@@ -362,7 +436,7 @@ func _GroupsManagement_GetGroupMember_Handler(srv interface{}, ctx context.Conte
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/GetGroupMember",
|
||||
FullMethod: GroupsManagement_GetGroupMember_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).GetGroupMember(ctx, req.(*GetGroupMemberRequest))
|
||||
@@ -380,7 +454,7 @@ func _GroupsManagement_GetGroupsMember_Handler(srv interface{}, ctx context.Cont
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/GetGroupsMember",
|
||||
FullMethod: GroupsManagement_GetGroupsMember_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).GetGroupsMember(ctx, req.(*GetGroupsMemberRequest))
|
||||
@@ -398,7 +472,7 @@ func _GroupsManagement_GetGroupsBatchMember_Handler(srv interface{}, ctx context
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/GetGroupsBatchMember",
|
||||
FullMethod: GroupsManagement_GetGroupsBatchMember_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).GetGroupsBatchMember(ctx, req.(*GetGroupsBatchMemberRequest))
|
||||
@@ -416,7 +490,7 @@ func _GroupsManagement_SubscribeMember_Handler(srv interface{}, ctx context.Cont
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/SubscribeMember",
|
||||
FullMethod: GroupsManagement_SubscribeMember_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).SubscribeMember(ctx, req.(*SubscribeMemberRequest))
|
||||
@@ -434,7 +508,7 @@ func _GroupsManagement_UnsubscribeMember_Handler(srv interface{}, ctx context.Co
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/GroupsManagement/UnsubscribeMember",
|
||||
FullMethod: GroupsManagement_UnsubscribeMember_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(GroupsManagementServer).UnsubscribeMember(ctx, req.(*UnsubscribeMemberRequest))
|
||||
@@ -473,6 +547,10 @@ var GroupsManagement_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "Unsubscribe",
|
||||
Handler: _GroupsManagement_Unsubscribe_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "DeleteGroup",
|
||||
Handler: _GroupsManagement_DeleteGroup_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddGroupMember",
|
||||
Handler: _GroupsManagement_AddGroupMember_Handler,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.28.0
|
||||
// protoc v3.19.4
|
||||
// protoc-gen-go v1.36.7
|
||||
// protoc v6.31.1
|
||||
// source: groupsmember.proto
|
||||
|
||||
package grpcapi
|
||||
@@ -12,6 +12,7 @@ import (
|
||||
structpb "google.golang.org/protobuf/types/known/structpb"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -22,23 +23,20 @@ const (
|
||||
)
|
||||
|
||||
type GroupMember struct {
|
||||
state protoimpl.MessageState
|
||||
sizeCache protoimpl.SizeCache
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Memberid string `protobuf:"bytes,2,opt,name=memberid,proto3" json:"memberid,omitempty"`
|
||||
Groupid string `protobuf:"bytes,3,opt,name=groupid,proto3" json:"groupid,omitempty"`
|
||||
Data *structpb.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Memberid string `protobuf:"bytes,2,opt,name=memberid,proto3" json:"memberid,omitempty"`
|
||||
Groupid string `protobuf:"bytes,3,opt,name=groupid,proto3" json:"groupid,omitempty"`
|
||||
Data *structpb.Struct `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GroupMember) Reset() {
|
||||
*x = GroupMember{}
|
||||
if protoimpl.UnsafeEnabled {
|
||||
mi := &file_groupsmember_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
mi := &file_groupsmember_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GroupMember) String() string {
|
||||
@@ -49,7 +47,7 @@ func (*GroupMember) ProtoMessage() {}
|
||||
|
||||
func (x *GroupMember) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_groupsmember_proto_msgTypes[0]
|
||||
if protoimpl.UnsafeEnabled && x != nil {
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
@@ -94,39 +92,29 @@ func (x *GroupMember) GetData() *structpb.Struct {
|
||||
|
||||
var File_groupsmember_proto protoreflect.FileDescriptor
|
||||
|
||||
var file_groupsmember_proto_rawDesc = []byte{
|
||||
0x0a, 0x12, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x70,
|
||||
0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f,
|
||||
0x74, 0x6f, 0x22, 0x80, 0x01, 0x0a, 0x0b, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62,
|
||||
0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02,
|
||||
0x69, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x69, 0x64, 0x18, 0x02,
|
||||
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x69, 0x64, 0x12, 0x18,
|
||||
0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
||||
0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x69, 0x64, 0x12, 0x2b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
||||
0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
|
||||
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x52,
|
||||
0x04, 0x64, 0x61, 0x74, 0x61, 0x42, 0x39, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x2e, 0x63, 0x6f, 0x6f,
|
||||
0x70, 0x67, 0x6f, 0x2e, 0x69, 0x6f, 0x2f, 0x63, 0x6f, 0x6f, 0x70, 0x67, 0x6f, 0x2d, 0x70, 0x6c,
|
||||
0x61, 0x74, 0x66, 0x6f, 0x72, 0x6d, 0x2f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x73, 0x2d, 0x6d, 0x61,
|
||||
0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x67, 0x72, 0x70, 0x63, 0x61, 0x70, 0x69,
|
||||
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||||
}
|
||||
const file_groupsmember_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x12groupsmember.proto\x1a\x1cgoogle/protobuf/struct.proto\"\x80\x01\n" +
|
||||
"\vGroupMember\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x1a\n" +
|
||||
"\bmemberid\x18\x02 \x01(\tR\bmemberid\x12\x18\n" +
|
||||
"\agroupid\x18\x03 \x01(\tR\agroupid\x12+\n" +
|
||||
"\x04data\x18\x04 \x01(\v2\x17.google.protobuf.StructR\x04dataB9Z7git.coopgo.io/coopgo-platform/groups-management/grpcapib\x06proto3"
|
||||
|
||||
var (
|
||||
file_groupsmember_proto_rawDescOnce sync.Once
|
||||
file_groupsmember_proto_rawDescData = file_groupsmember_proto_rawDesc
|
||||
file_groupsmember_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_groupsmember_proto_rawDescGZIP() []byte {
|
||||
file_groupsmember_proto_rawDescOnce.Do(func() {
|
||||
file_groupsmember_proto_rawDescData = protoimpl.X.CompressGZIP(file_groupsmember_proto_rawDescData)
|
||||
file_groupsmember_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_groupsmember_proto_rawDesc), len(file_groupsmember_proto_rawDesc)))
|
||||
})
|
||||
return file_groupsmember_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_groupsmember_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
||||
var file_groupsmember_proto_goTypes = []interface{}{
|
||||
var file_groupsmember_proto_goTypes = []any{
|
||||
(*GroupMember)(nil), // 0: GroupMember
|
||||
(*structpb.Struct)(nil), // 1: google.protobuf.Struct
|
||||
}
|
||||
@@ -144,25 +132,11 @@ func file_groupsmember_proto_init() {
|
||||
if File_groupsmember_proto != nil {
|
||||
return
|
||||
}
|
||||
if !protoimpl.UnsafeEnabled {
|
||||
file_groupsmember_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||||
switch v := v.(*GroupMember); i {
|
||||
case 0:
|
||||
return &v.state
|
||||
case 1:
|
||||
return &v.sizeCache
|
||||
case 2:
|
||||
return &v.unknownFields
|
||||
default:
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: file_groupsmember_proto_rawDesc,
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_groupsmember_proto_rawDesc), len(file_groupsmember_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 1,
|
||||
NumExtensions: 0,
|
||||
@@ -173,7 +147,6 @@ func file_groupsmember_proto_init() {
|
||||
MessageInfos: file_groupsmember_proto_msgTypes,
|
||||
}.Build()
|
||||
File_groupsmember_proto = out.File
|
||||
file_groupsmember_proto_rawDesc = nil
|
||||
file_groupsmember_proto_goTypes = nil
|
||||
file_groupsmember_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -103,6 +103,16 @@ func (s GroupsManagementServerImpl) Unsubscribe(ctx context.Context, req *Unsubs
|
||||
Ok: true,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (s GroupsManagementServerImpl) DeleteGroup(ctx context.Context, req *DeleteGroupRequest) (*DeleteGroupResponse, error) {
|
||||
err := s.handler.DeleteGroup(req.Id)
|
||||
if err != nil {
|
||||
return nil, status.Errorf(codes.Internal, "could not delete group: %v", err)
|
||||
}
|
||||
return &DeleteGroupResponse{
|
||||
Ok: true,
|
||||
}, nil
|
||||
}
|
||||
func (s GroupsManagementServerImpl) mustEmbedUnimplementedGroupsManagementServer() {}
|
||||
|
||||
func Run(done chan error, cfg *viper.Viper, handler handlers.GroupsManagementHandler) {
|
||||
|
||||
Reference in New Issue
Block a user