Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorGetFriendListFail(format string, args ...interface{}) *errors.Error
- func IsGetFriendListFail(err error) bool
- func RegisterFriendServer(s grpc.ServiceRegistrar, srv FriendServer)
- type FriendClient
- type FriendErrorReason
- func (FriendErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x FriendErrorReason) Enum() *FriendErrorReason
- func (FriendErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x FriendErrorReason) Number() protoreflect.EnumNumber
- func (x FriendErrorReason) String() string
- func (FriendErrorReason) Type() protoreflect.EnumType
- type FriendListReply
- type FriendListReq
- func (*FriendListReq) Descriptor() ([]byte, []int)deprecated
- func (x *FriendListReq) GetChangTime() map[string]int64
- func (x *FriendListReq) GetUserID() string
- func (*FriendListReq) ProtoMessage()
- func (x *FriendListReq) ProtoReflect() protoreflect.Message
- func (x *FriendListReq) Reset()
- func (x *FriendListReq) String() string
- type FriendServer
- type UnimplementedFriendServer
- type UnsafeFriendServer
Constants ¶
const (
Friend_GetFriendList_FullMethodName = "/api.friend.v2.Friend/GetFriendList"
)
Variables ¶
var ( FriendErrorReason_name = map[int32]string{ 0: "GET_FRIEND_LIST_FAIL", } FriendErrorReason_value = map[string]int32{ "GET_FRIEND_LIST_FAIL": 0, } )
Enum value maps for FriendErrorReason.
var File_api_friend_v2_friend_error_proto protoreflect.FileDescriptor
var File_friend_v2_friend_proto protoreflect.FileDescriptor
var Friend_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.friend.v2.Friend", HandlerType: (*FriendServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetFriendList", Handler: _Friend_GetFriendList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "friend/v2/friend.proto", }
Friend_ServiceDesc is the grpc.ServiceDesc for Friend service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorGetFriendListFail ¶ added in v0.0.7
获取好友信息失败
func RegisterFriendServer ¶ added in v0.0.3
func RegisterFriendServer(s grpc.ServiceRegistrar, srv FriendServer)
Types ¶
type FriendClient ¶ added in v0.0.3
type FriendClient interface { // 获取好友的请求参数 GetFriendList(ctx context.Context, in *FriendListReq, opts ...grpc.CallOption) (*FriendListReply, error) }
FriendClient is the client API for Friend 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 NewFriendClient ¶ added in v0.0.3
func NewFriendClient(cc grpc.ClientConnInterface) FriendClient
type FriendErrorReason ¶ added in v0.0.6
type FriendErrorReason int32
const ( // 获取好友信息失败 FriendErrorReason_GET_FRIEND_LIST_FAIL FriendErrorReason = 0 )
func (FriendErrorReason) Descriptor ¶ added in v0.0.6
func (FriendErrorReason) Descriptor() protoreflect.EnumDescriptor
func (FriendErrorReason) Enum ¶ added in v0.0.6
func (x FriendErrorReason) Enum() *FriendErrorReason
func (FriendErrorReason) EnumDescriptor
deprecated
added in
v0.0.6
func (FriendErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use FriendErrorReason.Descriptor instead.
func (FriendErrorReason) Number ¶ added in v0.0.6
func (x FriendErrorReason) Number() protoreflect.EnumNumber
func (FriendErrorReason) String ¶ added in v0.0.6
func (x FriendErrorReason) String() string
func (FriendErrorReason) Type ¶ added in v0.0.6
func (FriendErrorReason) Type() protoreflect.EnumType
type FriendListReply ¶ added in v0.0.3
type FriendListReply struct { Items []*v2.FriendItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"` // 好友列表 // contains filtered or unexported fields }
FriendListReply
func (*FriendListReply) Descriptor
deprecated
added in
v0.0.3
func (*FriendListReply) Descriptor() ([]byte, []int)
Deprecated: Use FriendListReply.ProtoReflect.Descriptor instead.
func (*FriendListReply) GetItems ¶ added in v0.0.3
func (x *FriendListReply) GetItems() []*v2.FriendItem
func (*FriendListReply) ProtoMessage ¶ added in v0.0.3
func (*FriendListReply) ProtoMessage()
func (*FriendListReply) ProtoReflect ¶ added in v0.0.3
func (x *FriendListReply) ProtoReflect() protoreflect.Message
func (*FriendListReply) Reset ¶ added in v0.0.3
func (x *FriendListReply) Reset()
func (*FriendListReply) String ¶ added in v0.0.3
func (x *FriendListReply) String() string
type FriendListReq ¶ added in v0.0.3
type FriendListReq 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 }
CreateFriendRequest
func (*FriendListReq) Descriptor
deprecated
added in
v0.0.3
func (*FriendListReq) Descriptor() ([]byte, []int)
Deprecated: Use FriendListReq.ProtoReflect.Descriptor instead.
func (*FriendListReq) GetChangTime ¶ added in v0.0.3
func (x *FriendListReq) GetChangTime() map[string]int64
func (*FriendListReq) GetUserID ¶ added in v0.0.3
func (x *FriendListReq) GetUserID() string
func (*FriendListReq) ProtoMessage ¶ added in v0.0.3
func (*FriendListReq) ProtoMessage()
func (*FriendListReq) ProtoReflect ¶ added in v0.0.3
func (x *FriendListReq) ProtoReflect() protoreflect.Message
func (*FriendListReq) Reset ¶ added in v0.0.3
func (x *FriendListReq) Reset()
func (*FriendListReq) String ¶ added in v0.0.3
func (x *FriendListReq) String() string
type FriendServer ¶ added in v0.0.3
type FriendServer interface { // 获取好友的请求参数 GetFriendList(context.Context, *FriendListReq) (*FriendListReply, error) // contains filtered or unexported methods }
FriendServer is the server API for Friend service. All implementations must embed UnimplementedFriendServer for forward compatibility
type UnimplementedFriendServer ¶ added in v0.0.3
type UnimplementedFriendServer struct { }
UnimplementedFriendServer must be embedded to have forward compatible implementations.
func (UnimplementedFriendServer) GetFriendList ¶ added in v0.0.3
func (UnimplementedFriendServer) GetFriendList(context.Context, *FriendListReq) (*FriendListReply, error)
type UnsafeFriendServer ¶ added in v0.0.3
type UnsafeFriendServer interface {
// contains filtered or unexported methods
}
UnsafeFriendServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FriendServer will result in compilation errors.