Documentation ¶
Index ¶
- Variables
- func RegisterRelationServiceHTTPServer(r gin.IRouter, srv RelationServiceHTTPServer)
- func RegisterRelationServiceServer(s grpc.ServiceRegistrar, srv RelationServiceServer)
- type FollowReply
- func (*FollowReply) Descriptor() ([]byte, []int)
- func (m *FollowReply) Marshal() (dAtA []byte, err error)
- func (m *FollowReply) MarshalTo(dAtA []byte) (int, error)
- func (m *FollowReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FollowReply) ProtoMessage()
- func (m *FollowReply) Reset()
- func (m *FollowReply) Size() (n int)
- func (m *FollowReply) String() string
- func (m *FollowReply) Unmarshal(dAtA []byte) error
- func (m *FollowReply) XXX_DiscardUnknown()
- func (m *FollowReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FollowReply) XXX_Merge(src proto.Message)
- func (m *FollowReply) XXX_Size() int
- func (m *FollowReply) XXX_Unmarshal(b []byte) error
- type FollowRequest
- func (*FollowRequest) Descriptor() ([]byte, []int)
- func (m *FollowRequest) GetUserId() int64
- func (m *FollowRequest) Marshal() (dAtA []byte, err error)
- func (m *FollowRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *FollowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FollowRequest) ProtoMessage()
- func (m *FollowRequest) Reset()
- func (m *FollowRequest) Size() (n int)
- func (m *FollowRequest) String() string
- func (m *FollowRequest) Unmarshal(dAtA []byte) error
- func (m *FollowRequest) XXX_DiscardUnknown()
- func (m *FollowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FollowRequest) XXX_Merge(src proto.Message)
- func (m *FollowRequest) XXX_Size() int
- func (m *FollowRequest) XXX_Unmarshal(b []byte) error
- type GetFollowerUserListReply
- func (*GetFollowerUserListReply) Descriptor() ([]byte, []int)
- func (m *GetFollowerUserListReply) GetHasMore() int32
- func (m *GetFollowerUserListReply) GetItems() []*v1.User
- func (m *GetFollowerUserListReply) GetLastId() string
- func (m *GetFollowerUserListReply) Marshal() (dAtA []byte, err error)
- func (m *GetFollowerUserListReply) MarshalTo(dAtA []byte) (int, error)
- func (m *GetFollowerUserListReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetFollowerUserListReply) ProtoMessage()
- func (m *GetFollowerUserListReply) Reset()
- func (m *GetFollowerUserListReply) Size() (n int)
- func (m *GetFollowerUserListReply) String() string
- func (m *GetFollowerUserListReply) Unmarshal(dAtA []byte) error
- func (m *GetFollowerUserListReply) XXX_DiscardUnknown()
- func (m *GetFollowerUserListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetFollowerUserListReply) XXX_Merge(src proto.Message)
- func (m *GetFollowerUserListReply) XXX_Size() int
- func (m *GetFollowerUserListReply) XXX_Unmarshal(b []byte) error
- type GetFollowerUserListRequest
- func (*GetFollowerUserListRequest) Descriptor() ([]byte, []int)
- func (m *GetFollowerUserListRequest) GetLastId() string
- func (m *GetFollowerUserListRequest) GetLimit() string
- func (m *GetFollowerUserListRequest) GetUserId() string
- func (m *GetFollowerUserListRequest) Marshal() (dAtA []byte, err error)
- func (m *GetFollowerUserListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetFollowerUserListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetFollowerUserListRequest) ProtoMessage()
- func (m *GetFollowerUserListRequest) Reset()
- func (m *GetFollowerUserListRequest) Size() (n int)
- func (m *GetFollowerUserListRequest) String() string
- func (m *GetFollowerUserListRequest) Unmarshal(dAtA []byte) error
- func (m *GetFollowerUserListRequest) XXX_DiscardUnknown()
- func (m *GetFollowerUserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetFollowerUserListRequest) XXX_Merge(src proto.Message)
- func (m *GetFollowerUserListRequest) XXX_Size() int
- func (m *GetFollowerUserListRequest) XXX_Unmarshal(b []byte) error
- type GetFollowingUserListReply
- func (*GetFollowingUserListReply) Descriptor() ([]byte, []int)
- func (m *GetFollowingUserListReply) GetHasMore() int32
- func (m *GetFollowingUserListReply) GetItems() []*v1.User
- func (m *GetFollowingUserListReply) GetLastId() string
- func (m *GetFollowingUserListReply) Marshal() (dAtA []byte, err error)
- func (m *GetFollowingUserListReply) MarshalTo(dAtA []byte) (int, error)
- func (m *GetFollowingUserListReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetFollowingUserListReply) ProtoMessage()
- func (m *GetFollowingUserListReply) Reset()
- func (m *GetFollowingUserListReply) Size() (n int)
- func (m *GetFollowingUserListReply) String() string
- func (m *GetFollowingUserListReply) Unmarshal(dAtA []byte) error
- func (m *GetFollowingUserListReply) XXX_DiscardUnknown()
- func (m *GetFollowingUserListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetFollowingUserListReply) XXX_Merge(src proto.Message)
- func (m *GetFollowingUserListReply) XXX_Size() int
- func (m *GetFollowingUserListReply) XXX_Unmarshal(b []byte) error
- type GetFollowingUserListRequest
- func (*GetFollowingUserListRequest) Descriptor() ([]byte, []int)
- func (m *GetFollowingUserListRequest) GetId() string
- func (m *GetFollowingUserListRequest) GetLastId() string
- func (m *GetFollowingUserListRequest) GetLimit() string
- func (m *GetFollowingUserListRequest) Marshal() (dAtA []byte, err error)
- func (m *GetFollowingUserListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetFollowingUserListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetFollowingUserListRequest) ProtoMessage()
- func (m *GetFollowingUserListRequest) Reset()
- func (m *GetFollowingUserListRequest) Size() (n int)
- func (m *GetFollowingUserListRequest) String() string
- func (m *GetFollowingUserListRequest) Unmarshal(dAtA []byte) error
- func (m *GetFollowingUserListRequest) XXX_DiscardUnknown()
- func (m *GetFollowingUserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetFollowingUserListRequest) XXX_Merge(src proto.Message)
- func (m *GetFollowingUserListRequest) XXX_Size() int
- func (m *GetFollowingUserListRequest) XXX_Unmarshal(b []byte) error
- type RelationService
- type RelationServiceClient
- type RelationServiceHTTPServer
- type RelationServiceServer
- type UnfollowReply
- func (*UnfollowReply) Descriptor() ([]byte, []int)
- func (m *UnfollowReply) Marshal() (dAtA []byte, err error)
- func (m *UnfollowReply) MarshalTo(dAtA []byte) (int, error)
- func (m *UnfollowReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnfollowReply) ProtoMessage()
- func (m *UnfollowReply) Reset()
- func (m *UnfollowReply) Size() (n int)
- func (m *UnfollowReply) String() string
- func (m *UnfollowReply) Unmarshal(dAtA []byte) error
- func (m *UnfollowReply) XXX_DiscardUnknown()
- func (m *UnfollowReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnfollowReply) XXX_Merge(src proto.Message)
- func (m *UnfollowReply) XXX_Size() int
- func (m *UnfollowReply) XXX_Unmarshal(b []byte) error
- type UnfollowRequest
- func (*UnfollowRequest) Descriptor() ([]byte, []int)
- func (m *UnfollowRequest) GetUserId() int64
- func (m *UnfollowRequest) Marshal() (dAtA []byte, err error)
- func (m *UnfollowRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *UnfollowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UnfollowRequest) ProtoMessage()
- func (m *UnfollowRequest) Reset()
- func (m *UnfollowRequest) Size() (n int)
- func (m *UnfollowRequest) String() string
- func (m *UnfollowRequest) Unmarshal(dAtA []byte) error
- func (m *UnfollowRequest) XXX_DiscardUnknown()
- func (m *UnfollowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UnfollowRequest) XXX_Merge(src proto.Message)
- func (m *UnfollowRequest) XXX_Size() int
- func (m *UnfollowRequest) XXX_Unmarshal(b []byte) error
- type UnimplementedRelationServiceServer
- func (UnimplementedRelationServiceServer) Follow(context.Context, *FollowRequest) (*FollowReply, error)
- func (UnimplementedRelationServiceServer) GetFollowerUserList(context.Context, *GetFollowerUserListRequest) (*GetFollowerUserListReply, error)
- func (UnimplementedRelationServiceServer) GetFollowingUserList(context.Context, *GetFollowingUserListRequest) (*GetFollowingUserListReply, error)
- func (UnimplementedRelationServiceServer) Unfollow(context.Context, *UnfollowRequest) (*UnfollowReply, error)
- type UnsafeRelationServiceServer
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthRelation = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRelation = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupRelation = fmt.Errorf("proto: unexpected end of group") )
var RelationService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.micro.relation.v1.RelationService", HandlerType: (*RelationServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Follow", Handler: _RelationService_Follow_Handler, }, { MethodName: "Unfollow", Handler: _RelationService_Unfollow_Handler, }, { MethodName: "GetFollowingUserList", Handler: _RelationService_GetFollowingUserList_Handler, }, { MethodName: "GetFollowerUserList", Handler: _RelationService_GetFollowerUserList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/micro/relation/v1/relation.proto", }
RelationService_ServiceDesc is the grpc.ServiceDesc for RelationService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRelationServiceHTTPServer ¶
func RegisterRelationServiceHTTPServer(r gin.IRouter, srv RelationServiceHTTPServer)
func RegisterRelationServiceServer ¶
func RegisterRelationServiceServer(s grpc.ServiceRegistrar, srv RelationServiceServer)
Types ¶
type FollowReply ¶
type FollowReply struct { }
func (*FollowReply) Descriptor ¶
func (*FollowReply) Descriptor() ([]byte, []int)
func (*FollowReply) Marshal ¶
func (m *FollowReply) Marshal() (dAtA []byte, err error)
func (*FollowReply) MarshalToSizedBuffer ¶
func (m *FollowReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FollowReply) ProtoMessage ¶
func (*FollowReply) ProtoMessage()
func (*FollowReply) Reset ¶
func (m *FollowReply) Reset()
func (*FollowReply) Size ¶
func (m *FollowReply) Size() (n int)
func (*FollowReply) String ¶
func (m *FollowReply) String() string
func (*FollowReply) Unmarshal ¶
func (m *FollowReply) Unmarshal(dAtA []byte) error
func (*FollowReply) XXX_DiscardUnknown ¶
func (m *FollowReply) XXX_DiscardUnknown()
func (*FollowReply) XXX_Marshal ¶
func (m *FollowReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FollowReply) XXX_Merge ¶
func (m *FollowReply) XXX_Merge(src proto.Message)
func (*FollowReply) XXX_Size ¶
func (m *FollowReply) XXX_Size() int
func (*FollowReply) XXX_Unmarshal ¶
func (m *FollowReply) XXX_Unmarshal(b []byte) error
type FollowRequest ¶
type FollowRequest struct { // 被关注人uid UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` }
func (*FollowRequest) Descriptor ¶
func (*FollowRequest) Descriptor() ([]byte, []int)
func (*FollowRequest) GetUserId ¶
func (m *FollowRequest) GetUserId() int64
func (*FollowRequest) Marshal ¶
func (m *FollowRequest) Marshal() (dAtA []byte, err error)
func (*FollowRequest) MarshalToSizedBuffer ¶
func (m *FollowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*FollowRequest) ProtoMessage ¶
func (*FollowRequest) ProtoMessage()
func (*FollowRequest) Reset ¶
func (m *FollowRequest) Reset()
func (*FollowRequest) Size ¶
func (m *FollowRequest) Size() (n int)
func (*FollowRequest) String ¶
func (m *FollowRequest) String() string
func (*FollowRequest) Unmarshal ¶
func (m *FollowRequest) Unmarshal(dAtA []byte) error
func (*FollowRequest) XXX_DiscardUnknown ¶
func (m *FollowRequest) XXX_DiscardUnknown()
func (*FollowRequest) XXX_Marshal ¶
func (m *FollowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*FollowRequest) XXX_Merge ¶
func (m *FollowRequest) XXX_Merge(src proto.Message)
func (*FollowRequest) XXX_Size ¶
func (m *FollowRequest) XXX_Size() int
func (*FollowRequest) XXX_Unmarshal ¶
func (m *FollowRequest) XXX_Unmarshal(b []byte) error
type GetFollowerUserListReply ¶
type GetFollowerUserListReply struct { HasMore int32 `protobuf:"varint,1,opt,name=has_more,json=hasMore,proto3" json:"has_more"` LastId string `protobuf:"bytes,2,opt,name=last_id,json=lastId,proto3" json:"last_id"` Items []*v1.User `protobuf:"bytes,3,rep,name=items,proto3" json:"items"` }
func (*GetFollowerUserListReply) Descriptor ¶
func (*GetFollowerUserListReply) Descriptor() ([]byte, []int)
func (*GetFollowerUserListReply) GetHasMore ¶
func (m *GetFollowerUserListReply) GetHasMore() int32
func (*GetFollowerUserListReply) GetItems ¶
func (m *GetFollowerUserListReply) GetItems() []*v1.User
func (*GetFollowerUserListReply) GetLastId ¶
func (m *GetFollowerUserListReply) GetLastId() string
func (*GetFollowerUserListReply) Marshal ¶
func (m *GetFollowerUserListReply) Marshal() (dAtA []byte, err error)
func (*GetFollowerUserListReply) MarshalTo ¶
func (m *GetFollowerUserListReply) MarshalTo(dAtA []byte) (int, error)
func (*GetFollowerUserListReply) MarshalToSizedBuffer ¶
func (m *GetFollowerUserListReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetFollowerUserListReply) ProtoMessage ¶
func (*GetFollowerUserListReply) ProtoMessage()
func (*GetFollowerUserListReply) Reset ¶
func (m *GetFollowerUserListReply) Reset()
func (*GetFollowerUserListReply) Size ¶
func (m *GetFollowerUserListReply) Size() (n int)
func (*GetFollowerUserListReply) String ¶
func (m *GetFollowerUserListReply) String() string
func (*GetFollowerUserListReply) Unmarshal ¶
func (m *GetFollowerUserListReply) Unmarshal(dAtA []byte) error
func (*GetFollowerUserListReply) XXX_DiscardUnknown ¶
func (m *GetFollowerUserListReply) XXX_DiscardUnknown()
func (*GetFollowerUserListReply) XXX_Marshal ¶
func (m *GetFollowerUserListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetFollowerUserListReply) XXX_Merge ¶
func (m *GetFollowerUserListReply) XXX_Merge(src proto.Message)
func (*GetFollowerUserListReply) XXX_Size ¶
func (m *GetFollowerUserListReply) XXX_Size() int
func (*GetFollowerUserListReply) XXX_Unmarshal ¶
func (m *GetFollowerUserListReply) XXX_Unmarshal(b []byte) error
type GetFollowerUserListRequest ¶
type GetFollowerUserListRequest struct { UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty" form:"user_id"` LastId string `protobuf:"bytes,2,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty" form:"last_id"` Limit string `protobuf:"bytes,3,opt,name=limit,proto3" json:"limit,omitempty" form:"limit"` }
func (*GetFollowerUserListRequest) Descriptor ¶
func (*GetFollowerUserListRequest) Descriptor() ([]byte, []int)
func (*GetFollowerUserListRequest) GetLastId ¶
func (m *GetFollowerUserListRequest) GetLastId() string
func (*GetFollowerUserListRequest) GetLimit ¶
func (m *GetFollowerUserListRequest) GetLimit() string
func (*GetFollowerUserListRequest) GetUserId ¶
func (m *GetFollowerUserListRequest) GetUserId() string
func (*GetFollowerUserListRequest) Marshal ¶
func (m *GetFollowerUserListRequest) Marshal() (dAtA []byte, err error)
func (*GetFollowerUserListRequest) MarshalTo ¶
func (m *GetFollowerUserListRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetFollowerUserListRequest) MarshalToSizedBuffer ¶
func (m *GetFollowerUserListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetFollowerUserListRequest) ProtoMessage ¶
func (*GetFollowerUserListRequest) ProtoMessage()
func (*GetFollowerUserListRequest) Reset ¶
func (m *GetFollowerUserListRequest) Reset()
func (*GetFollowerUserListRequest) Size ¶
func (m *GetFollowerUserListRequest) Size() (n int)
func (*GetFollowerUserListRequest) String ¶
func (m *GetFollowerUserListRequest) String() string
func (*GetFollowerUserListRequest) Unmarshal ¶
func (m *GetFollowerUserListRequest) Unmarshal(dAtA []byte) error
func (*GetFollowerUserListRequest) XXX_DiscardUnknown ¶
func (m *GetFollowerUserListRequest) XXX_DiscardUnknown()
func (*GetFollowerUserListRequest) XXX_Marshal ¶
func (m *GetFollowerUserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetFollowerUserListRequest) XXX_Merge ¶
func (m *GetFollowerUserListRequest) XXX_Merge(src proto.Message)
func (*GetFollowerUserListRequest) XXX_Size ¶
func (m *GetFollowerUserListRequest) XXX_Size() int
func (*GetFollowerUserListRequest) XXX_Unmarshal ¶
func (m *GetFollowerUserListRequest) XXX_Unmarshal(b []byte) error
type GetFollowingUserListReply ¶
type GetFollowingUserListReply struct { HasMore int32 `protobuf:"varint,1,opt,name=has_more,json=hasMore,proto3" json:"has_more"` LastId string `protobuf:"bytes,2,opt,name=last_id,json=lastId,proto3" json:"last_id"` Items []*v1.User `protobuf:"bytes,3,rep,name=items,proto3" json:"items"` }
func (*GetFollowingUserListReply) Descriptor ¶
func (*GetFollowingUserListReply) Descriptor() ([]byte, []int)
func (*GetFollowingUserListReply) GetHasMore ¶
func (m *GetFollowingUserListReply) GetHasMore() int32
func (*GetFollowingUserListReply) GetItems ¶
func (m *GetFollowingUserListReply) GetItems() []*v1.User
func (*GetFollowingUserListReply) GetLastId ¶
func (m *GetFollowingUserListReply) GetLastId() string
func (*GetFollowingUserListReply) Marshal ¶
func (m *GetFollowingUserListReply) Marshal() (dAtA []byte, err error)
func (*GetFollowingUserListReply) MarshalTo ¶
func (m *GetFollowingUserListReply) MarshalTo(dAtA []byte) (int, error)
func (*GetFollowingUserListReply) MarshalToSizedBuffer ¶
func (m *GetFollowingUserListReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetFollowingUserListReply) ProtoMessage ¶
func (*GetFollowingUserListReply) ProtoMessage()
func (*GetFollowingUserListReply) Reset ¶
func (m *GetFollowingUserListReply) Reset()
func (*GetFollowingUserListReply) Size ¶
func (m *GetFollowingUserListReply) Size() (n int)
func (*GetFollowingUserListReply) String ¶
func (m *GetFollowingUserListReply) String() string
func (*GetFollowingUserListReply) Unmarshal ¶
func (m *GetFollowingUserListReply) Unmarshal(dAtA []byte) error
func (*GetFollowingUserListReply) XXX_DiscardUnknown ¶
func (m *GetFollowingUserListReply) XXX_DiscardUnknown()
func (*GetFollowingUserListReply) XXX_Marshal ¶
func (m *GetFollowingUserListReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetFollowingUserListReply) XXX_Merge ¶
func (m *GetFollowingUserListReply) XXX_Merge(src proto.Message)
func (*GetFollowingUserListReply) XXX_Size ¶
func (m *GetFollowingUserListReply) XXX_Size() int
func (*GetFollowingUserListReply) XXX_Unmarshal ¶
func (m *GetFollowingUserListReply) XXX_Unmarshal(b []byte) error
type GetFollowingUserListRequest ¶
type GetFollowingUserListRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" form:"user_id"` LastId string `protobuf:"bytes,2,opt,name=last_id,json=lastId,proto3" json:"last_id,omitempty" form:"last_id"` Limit string `protobuf:"bytes,3,opt,name=limit,proto3" json:"limit,omitempty" form:"limit"` }
func (*GetFollowingUserListRequest) Descriptor ¶
func (*GetFollowingUserListRequest) Descriptor() ([]byte, []int)
func (*GetFollowingUserListRequest) GetId ¶
func (m *GetFollowingUserListRequest) GetId() string
func (*GetFollowingUserListRequest) GetLastId ¶
func (m *GetFollowingUserListRequest) GetLastId() string
func (*GetFollowingUserListRequest) GetLimit ¶
func (m *GetFollowingUserListRequest) GetLimit() string
func (*GetFollowingUserListRequest) Marshal ¶
func (m *GetFollowingUserListRequest) Marshal() (dAtA []byte, err error)
func (*GetFollowingUserListRequest) MarshalTo ¶
func (m *GetFollowingUserListRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetFollowingUserListRequest) MarshalToSizedBuffer ¶
func (m *GetFollowingUserListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetFollowingUserListRequest) ProtoMessage ¶
func (*GetFollowingUserListRequest) ProtoMessage()
func (*GetFollowingUserListRequest) Reset ¶
func (m *GetFollowingUserListRequest) Reset()
func (*GetFollowingUserListRequest) Size ¶
func (m *GetFollowingUserListRequest) Size() (n int)
func (*GetFollowingUserListRequest) String ¶
func (m *GetFollowingUserListRequest) String() string
func (*GetFollowingUserListRequest) Unmarshal ¶
func (m *GetFollowingUserListRequest) Unmarshal(dAtA []byte) error
func (*GetFollowingUserListRequest) XXX_DiscardUnknown ¶
func (m *GetFollowingUserListRequest) XXX_DiscardUnknown()
func (*GetFollowingUserListRequest) XXX_Marshal ¶
func (m *GetFollowingUserListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetFollowingUserListRequest) XXX_Merge ¶
func (m *GetFollowingUserListRequest) XXX_Merge(src proto.Message)
func (*GetFollowingUserListRequest) XXX_Size ¶
func (m *GetFollowingUserListRequest) XXX_Size() int
func (*GetFollowingUserListRequest) XXX_Unmarshal ¶
func (m *GetFollowingUserListRequest) XXX_Unmarshal(b []byte) error
type RelationService ¶
type RelationService struct {
// contains filtered or unexported fields
}
func (*RelationService) Follow_0 ¶
func (s *RelationService) Follow_0(ctx *gin.Context)
func (*RelationService) GetFollowerUserList_0 ¶
func (s *RelationService) GetFollowerUserList_0(ctx *gin.Context)
func (*RelationService) GetFollowingUserList_0 ¶
func (s *RelationService) GetFollowingUserList_0(ctx *gin.Context)
func (*RelationService) RegisterService ¶
func (s *RelationService) RegisterService()
func (*RelationService) Unfollow_0 ¶
func (s *RelationService) Unfollow_0(ctx *gin.Context)
type RelationServiceClient ¶
type RelationServiceClient interface { Follow(ctx context.Context, in *FollowRequest, opts ...grpc.CallOption) (*FollowReply, error) Unfollow(ctx context.Context, in *UnfollowRequest, opts ...grpc.CallOption) (*UnfollowReply, error) GetFollowingUserList(ctx context.Context, in *GetFollowingUserListRequest, opts ...grpc.CallOption) (*GetFollowingUserListReply, error) GetFollowerUserList(ctx context.Context, in *GetFollowerUserListRequest, opts ...grpc.CallOption) (*GetFollowerUserListReply, error) }
RelationServiceClient is the client API for RelationService 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 NewRelationServiceClient ¶
func NewRelationServiceClient(cc grpc.ClientConnInterface) RelationServiceClient
type RelationServiceHTTPServer ¶
type RelationServiceHTTPServer interface { Follow(context.Context, *FollowRequest) (*FollowReply, error) GetFollowerUserList(context.Context, *GetFollowerUserListRequest) (*GetFollowerUserListReply, error) GetFollowingUserList(context.Context, *GetFollowingUserListRequest) (*GetFollowingUserListReply, error) Unfollow(context.Context, *UnfollowRequest) (*UnfollowReply, error) }
type RelationServiceServer ¶
type RelationServiceServer interface { Follow(context.Context, *FollowRequest) (*FollowReply, error) Unfollow(context.Context, *UnfollowRequest) (*UnfollowReply, error) GetFollowingUserList(context.Context, *GetFollowingUserListRequest) (*GetFollowingUserListReply, error) GetFollowerUserList(context.Context, *GetFollowerUserListRequest) (*GetFollowerUserListReply, error) // contains filtered or unexported methods }
RelationServiceServer is the server API for RelationService service. All implementations must embed UnimplementedRelationServiceServer for forward compatibility
type UnfollowReply ¶
type UnfollowReply struct { }
func (*UnfollowReply) Descriptor ¶
func (*UnfollowReply) Descriptor() ([]byte, []int)
func (*UnfollowReply) Marshal ¶
func (m *UnfollowReply) Marshal() (dAtA []byte, err error)
func (*UnfollowReply) MarshalToSizedBuffer ¶
func (m *UnfollowReply) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnfollowReply) ProtoMessage ¶
func (*UnfollowReply) ProtoMessage()
func (*UnfollowReply) Reset ¶
func (m *UnfollowReply) Reset()
func (*UnfollowReply) Size ¶
func (m *UnfollowReply) Size() (n int)
func (*UnfollowReply) String ¶
func (m *UnfollowReply) String() string
func (*UnfollowReply) Unmarshal ¶
func (m *UnfollowReply) Unmarshal(dAtA []byte) error
func (*UnfollowReply) XXX_DiscardUnknown ¶
func (m *UnfollowReply) XXX_DiscardUnknown()
func (*UnfollowReply) XXX_Marshal ¶
func (m *UnfollowReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnfollowReply) XXX_Merge ¶
func (m *UnfollowReply) XXX_Merge(src proto.Message)
func (*UnfollowReply) XXX_Size ¶
func (m *UnfollowReply) XXX_Size() int
func (*UnfollowReply) XXX_Unmarshal ¶
func (m *UnfollowReply) XXX_Unmarshal(b []byte) error
type UnfollowRequest ¶
type UnfollowRequest struct { // 被取消关注人uid UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` }
func (*UnfollowRequest) Descriptor ¶
func (*UnfollowRequest) Descriptor() ([]byte, []int)
func (*UnfollowRequest) GetUserId ¶
func (m *UnfollowRequest) GetUserId() int64
func (*UnfollowRequest) Marshal ¶
func (m *UnfollowRequest) Marshal() (dAtA []byte, err error)
func (*UnfollowRequest) MarshalToSizedBuffer ¶
func (m *UnfollowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UnfollowRequest) ProtoMessage ¶
func (*UnfollowRequest) ProtoMessage()
func (*UnfollowRequest) Reset ¶
func (m *UnfollowRequest) Reset()
func (*UnfollowRequest) Size ¶
func (m *UnfollowRequest) Size() (n int)
func (*UnfollowRequest) String ¶
func (m *UnfollowRequest) String() string
func (*UnfollowRequest) Unmarshal ¶
func (m *UnfollowRequest) Unmarshal(dAtA []byte) error
func (*UnfollowRequest) XXX_DiscardUnknown ¶
func (m *UnfollowRequest) XXX_DiscardUnknown()
func (*UnfollowRequest) XXX_Marshal ¶
func (m *UnfollowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UnfollowRequest) XXX_Merge ¶
func (m *UnfollowRequest) XXX_Merge(src proto.Message)
func (*UnfollowRequest) XXX_Size ¶
func (m *UnfollowRequest) XXX_Size() int
func (*UnfollowRequest) XXX_Unmarshal ¶
func (m *UnfollowRequest) XXX_Unmarshal(b []byte) error
type UnimplementedRelationServiceServer ¶
type UnimplementedRelationServiceServer struct { }
UnimplementedRelationServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRelationServiceServer) Follow ¶
func (UnimplementedRelationServiceServer) Follow(context.Context, *FollowRequest) (*FollowReply, error)
func (UnimplementedRelationServiceServer) GetFollowerUserList ¶
func (UnimplementedRelationServiceServer) GetFollowerUserList(context.Context, *GetFollowerUserListRequest) (*GetFollowerUserListReply, error)
func (UnimplementedRelationServiceServer) GetFollowingUserList ¶
func (UnimplementedRelationServiceServer) GetFollowingUserList(context.Context, *GetFollowingUserListRequest) (*GetFollowingUserListReply, error)
func (UnimplementedRelationServiceServer) Unfollow ¶
func (UnimplementedRelationServiceServer) Unfollow(context.Context, *UnfollowRequest) (*UnfollowReply, error)
type UnsafeRelationServiceServer ¶
type UnsafeRelationServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRelationServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RelationServiceServer will result in compilation errors.