v2

package
v0.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Friend_GetFriendList_FullMethodName = "/api.friend.v2.Friend/GetFriendList"
)

Variables

View Source
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.

View Source
var File_api_friend_v2_friend_error_proto protoreflect.FileDescriptor
View Source
var File_friend_v2_friend_proto protoreflect.FileDescriptor
View Source
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 ErrorGetFriendListFail(format string, args ...interface{}) *errors.Error

获取好友信息失败

func IsGetFriendListFail added in v0.0.7

func IsGetFriendListFail(err error) bool

获取好友信息失败

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) Enum added in v0.0.6

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 (FriendErrorReason) String added in v0.0.6

func (x FriendErrorReason) String() string

func (FriendErrorReason) Type added in v0.0.6

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL