Documentation ¶
Index ¶
- func Init(c zrpc.RpcServerConf, service *srv.Service) *zrpc.RpcServer
- type RelationServiceServer
- func (s *RelationServiceServer) FollowUser(ctx context.Context, req *relationv1.FollowUserRequest) (*relationv1.FollowUserResponse, error)
- func (s *RelationServiceServer) GetUserFanCount(ctx context.Context, req *relationv1.GetUserFanCountRequest) (*relationv1.GetUserFanCountResponse, error)
- func (s *RelationServiceServer) GetUserFanList(ctx context.Context, req *relationv1.GetUserFanListRequest) (*relationv1.GetUserFanListResponse, error)
- func (s *RelationServiceServer) GetUserFollowingCount(ctx context.Context, req *relationv1.GetUserFollowingCountRequest) (*relationv1.GetUserFollowingCountResponse, error)
- func (s *RelationServiceServer) GetUserFollowingList(ctx context.Context, req *relationv1.GetUserFollowingListRequest) (*relationv1.GetUserFollowingListResponse, error)
- func (s *RelationServiceServer) RemoveUserFan(ctx context.Context, req *relationv1.RemoveUserFanRequest) (*relationv1.RemoveUserFanResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RelationServiceServer ¶
type RelationServiceServer struct { relationv1.UnimplementedRelationServiceServer Srv *srv.Service }
func NewRelationServiceServer ¶
func NewRelationServiceServer(srv *srv.Service) *RelationServiceServer
func (*RelationServiceServer) FollowUser ¶
func (s *RelationServiceServer) FollowUser(ctx context.Context, req *relationv1.FollowUserRequest) (*relationv1.FollowUserResponse, error)
func (*RelationServiceServer) GetUserFanCount ¶
func (s *RelationServiceServer) GetUserFanCount(ctx context.Context, req *relationv1.GetUserFanCountRequest) ( *relationv1.GetUserFanCountResponse, error)
func (*RelationServiceServer) GetUserFanList ¶
func (s *RelationServiceServer) GetUserFanList(ctx context.Context, req *relationv1.GetUserFanListRequest) (*relationv1.GetUserFanListResponse, error)
func (*RelationServiceServer) GetUserFollowingCount ¶
func (s *RelationServiceServer) GetUserFollowingCount(ctx context.Context, req *relationv1.GetUserFollowingCountRequest) ( *relationv1.GetUserFollowingCountResponse, error)
func (*RelationServiceServer) GetUserFollowingList ¶
func (s *RelationServiceServer) GetUserFollowingList(ctx context.Context, req *relationv1.GetUserFollowingListRequest) ( *relationv1.GetUserFollowingListResponse, error)
func (*RelationServiceServer) RemoveUserFan ¶
func (s *RelationServiceServer) RemoveUserFan(ctx context.Context, req *relationv1.RemoveUserFanRequest) ( *relationv1.RemoveUserFanResponse, error)
Click to show internal directories.
Click to hide internal directories.