Documentation
¶
Index ¶
- Constants
- Variables
- func ErrorGetGroupListFail(format string, args ...interface{}) *errors.Error
- func IsGetGroupListFail(err error) bool
- func RegisterGroupServer(s grpc.ServiceRegistrar, srv GroupServer)
- type GroupClient
- type GroupErrorReason
- func (GroupErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x GroupErrorReason) Enum() *GroupErrorReason
- func (GroupErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x GroupErrorReason) Number() protoreflect.EnumNumber
- func (x GroupErrorReason) String() string
- func (GroupErrorReason) Type() protoreflect.EnumType
- type GroupServer
- type JoinGroupListReply
- func (*JoinGroupListReply) Descriptor() ([]byte, []int)deprecated
- func (x *JoinGroupListReply) GetItems() []*v2.GroupItem
- func (*JoinGroupListReply) ProtoMessage()
- func (x *JoinGroupListReply) ProtoReflect() protoreflect.Message
- func (x *JoinGroupListReply) Reset()
- func (x *JoinGroupListReply) String() string
- type JoinGroupListReq
- func (*JoinGroupListReq) Descriptor() ([]byte, []int)deprecated
- func (x *JoinGroupListReq) GetChangTime() map[string]int64
- func (x *JoinGroupListReq) GetUserID() string
- func (*JoinGroupListReq) ProtoMessage()
- func (x *JoinGroupListReq) ProtoReflect() protoreflect.Message
- func (x *JoinGroupListReq) Reset()
- func (x *JoinGroupListReq) String() string
- type UnimplementedGroupServer
- type UnsafeGroupServer
Constants ¶
const (
Group_GetJoinGroupList_FullMethodName = "/api.group.v2.Group/GetJoinGroupList"
)
Variables ¶
var ( GroupErrorReason_name = map[int32]string{ 0: "GET_GROUP_LIST_FAIL", } GroupErrorReason_value = map[string]int32{ "GET_GROUP_LIST_FAIL": 0, } )
Enum value maps for GroupErrorReason.
var File_group_v2_group_error_proto protoreflect.FileDescriptor
var File_group_v2_group_proto protoreflect.FileDescriptor
var Group_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.group.v2.Group", HandlerType: (*GroupServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetJoinGroupList", Handler: _Group_GetJoinGroupList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "group/v2/group.proto", }
Group_ServiceDesc is the grpc.ServiceDesc for Group service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorGetGroupListFail ¶ added in v0.0.7
获取群信息失败
func RegisterGroupServer ¶
func RegisterGroupServer(s grpc.ServiceRegistrar, srv GroupServer)
Types ¶
type GroupClient ¶
type GroupClient interface {
GetJoinGroupList(ctx context.Context, in *JoinGroupListReq, opts ...grpc.CallOption) (*JoinGroupListReply, error)
}
GroupClient is the client API for Group 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 NewGroupClient ¶
func NewGroupClient(cc grpc.ClientConnInterface) GroupClient
type GroupErrorReason ¶ added in v0.0.6
type GroupErrorReason int32
const ( // 获取群信息失败 GroupErrorReason_GET_GROUP_LIST_FAIL GroupErrorReason = 0 )
func (GroupErrorReason) Descriptor ¶ added in v0.0.6
func (GroupErrorReason) Descriptor() protoreflect.EnumDescriptor
func (GroupErrorReason) Enum ¶ added in v0.0.6
func (x GroupErrorReason) Enum() *GroupErrorReason
func (GroupErrorReason) EnumDescriptor
deprecated
added in
v0.0.6
func (GroupErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use GroupErrorReason.Descriptor instead.
func (GroupErrorReason) Number ¶ added in v0.0.6
func (x GroupErrorReason) Number() protoreflect.EnumNumber
func (GroupErrorReason) String ¶ added in v0.0.6
func (x GroupErrorReason) String() string
func (GroupErrorReason) Type ¶ added in v0.0.6
func (GroupErrorReason) Type() protoreflect.EnumType
type GroupServer ¶
type GroupServer interface { GetJoinGroupList(context.Context, *JoinGroupListReq) (*JoinGroupListReply, error) // contains filtered or unexported methods }
GroupServer is the server API for Group service. All implementations must embed UnimplementedGroupServer for forward compatibility
type JoinGroupListReply ¶
type JoinGroupListReply struct { Items []*v2.GroupItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // 群列表 // contains filtered or unexported fields }
加入群组列表返回
func (*JoinGroupListReply) Descriptor
deprecated
func (*JoinGroupListReply) Descriptor() ([]byte, []int)
Deprecated: Use JoinGroupListReply.ProtoReflect.Descriptor instead.
func (*JoinGroupListReply) GetItems ¶
func (x *JoinGroupListReply) GetItems() []*v2.GroupItem
func (*JoinGroupListReply) ProtoMessage ¶
func (*JoinGroupListReply) ProtoMessage()
func (*JoinGroupListReply) ProtoReflect ¶
func (x *JoinGroupListReply) ProtoReflect() protoreflect.Message
func (*JoinGroupListReply) Reset ¶
func (x *JoinGroupListReply) Reset()
func (*JoinGroupListReply) String ¶
func (x *JoinGroupListReply) String() string
type JoinGroupListReq ¶
type JoinGroupListReq struct { UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` // 用户id ChangTime map[string]int64 `` //群信息更新时间列表 /* 160-byte string literal not displayed */ // contains filtered or unexported fields }
加入群组列表请求
func (*JoinGroupListReq) Descriptor
deprecated
func (*JoinGroupListReq) Descriptor() ([]byte, []int)
Deprecated: Use JoinGroupListReq.ProtoReflect.Descriptor instead.
func (*JoinGroupListReq) GetChangTime ¶
func (x *JoinGroupListReq) GetChangTime() map[string]int64
func (*JoinGroupListReq) GetUserID ¶
func (x *JoinGroupListReq) GetUserID() string
func (*JoinGroupListReq) ProtoMessage ¶
func (*JoinGroupListReq) ProtoMessage()
func (*JoinGroupListReq) ProtoReflect ¶
func (x *JoinGroupListReq) ProtoReflect() protoreflect.Message
func (*JoinGroupListReq) Reset ¶
func (x *JoinGroupListReq) Reset()
func (*JoinGroupListReq) String ¶
func (x *JoinGroupListReq) String() string
type UnimplementedGroupServer ¶
type UnimplementedGroupServer struct { }
UnimplementedGroupServer must be embedded to have forward compatible implementations.
func (UnimplementedGroupServer) GetJoinGroupList ¶
func (UnimplementedGroupServer) GetJoinGroupList(context.Context, *JoinGroupListReq) (*JoinGroupListReply, error)
type UnsafeGroupServer ¶
type UnsafeGroupServer interface {
// contains filtered or unexported methods
}
UnsafeGroupServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GroupServer will result in compilation errors.