// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.4.0 // - protoc v3.19.4 // source: proto/slowwild.proto package slowwildserver import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" ) // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. // Requires gRPC-Go v1.62.0 or later. const _ = grpc.SupportPackageIsVersion8 const ( SlowWildServer_Login_FullMethodName = "/slowwildserver.SlowWildServer/Login" SlowWildServer_Register_FullMethodName = "/slowwildserver.SlowWildServer/Register" SlowWildServer_GetUserInfo_FullMethodName = "/slowwildserver.SlowWildServer/GetUserInfo" SlowWildServer_FindUser_FullMethodName = "/slowwildserver.SlowWildServer/FindUser" SlowWildServer_UserFollow_FullMethodName = "/slowwildserver.SlowWildServer/UserFollow" SlowWildServer_UnUserFollow_FullMethodName = "/slowwildserver.SlowWildServer/UnUserFollow" SlowWildServer_GetFans_FullMethodName = "/slowwildserver.SlowWildServer/GetFans" SlowWildServer_GetFollows_FullMethodName = "/slowwildserver.SlowWildServer/GetFollows" SlowWildServer_GetUserProfile_FullMethodName = "/slowwildserver.SlowWildServer/GetUserProfile" SlowWildServer_SearchUsername_FullMethodName = "/slowwildserver.SlowWildServer/SearchUsername" ) // SlowWildServerClient is the client API for SlowWildServer 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. type SlowWildServerClient interface { // 用户登录 Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error) // 用户注册 Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error) // 获取用户信息 GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) // 查询用户信息 FindUser(ctx context.Context, in *FindUserReq, opts ...grpc.CallOption) (*FindUserResp, error) // 关注用户 UserFollow(ctx context.Context, in *FollowUserReq, opts ...grpc.CallOption) (*FollowUserRes, error) // 取消关注用户 UnUserFollow(ctx context.Context, in *UnFollowUserReq, opts ...grpc.CallOption) (*UnFollowUserRes, error) // 获取我得粉丝 GetFans(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error) // 查询我的关注 GetFollows(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error) // 查询用户的详细信息 GetUserProfile(ctx context.Context, in *GetUserProfileReq, opts ...grpc.CallOption) (*GetUserProfileRes, error) // 搜索用户名称 SearchUsername(ctx context.Context, in *SearchUsernameReq, opts ...grpc.CallOption) (*SearchUsernameRes, error) } type slowWildServerClient struct { cc grpc.ClientConnInterface } func NewSlowWildServerClient(cc grpc.ClientConnInterface) SlowWildServerClient { return &slowWildServerClient{cc} } func (c *slowWildServerClient) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LoginAndRegisterRsp) err := c.cc.Invoke(ctx, SlowWildServer_Login_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *slowWildServerClient) Register(ctx context.Context, in *RegisterReq, opts ...grpc.CallOption) (*LoginAndRegisterRsp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(LoginAndRegisterRsp) err := c.cc.Invoke(ctx, SlowWildServer_Register_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *slowWildServerClient) GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUserInfoResp) err := c.cc.Invoke(ctx, SlowWildServer_GetUserInfo_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *slowWildServerClient) FindUser(ctx context.Context, in *FindUserReq, opts ...grpc.CallOption) (*FindUserResp, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FindUserResp) err := c.cc.Invoke(ctx, SlowWildServer_FindUser_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *slowWildServerClient) UserFollow(ctx context.Context, in *FollowUserReq, opts ...grpc.CallOption) (*FollowUserRes, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FollowUserRes) err := c.cc.Invoke(ctx, SlowWildServer_UserFollow_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *slowWildServerClient) UnUserFollow(ctx context.Context, in *UnFollowUserReq, opts ...grpc.CallOption) (*UnFollowUserRes, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(UnFollowUserRes) err := c.cc.Invoke(ctx, SlowWildServer_UnUserFollow_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *slowWildServerClient) GetFans(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetFollowingRes) err := c.cc.Invoke(ctx, SlowWildServer_GetFans_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *slowWildServerClient) GetFollows(ctx context.Context, in *GetFollowingReq, opts ...grpc.CallOption) (*GetFollowingRes, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetFollowingRes) err := c.cc.Invoke(ctx, SlowWildServer_GetFollows_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *slowWildServerClient) GetUserProfile(ctx context.Context, in *GetUserProfileReq, opts ...grpc.CallOption) (*GetUserProfileRes, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetUserProfileRes) err := c.cc.Invoke(ctx, SlowWildServer_GetUserProfile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *slowWildServerClient) SearchUsername(ctx context.Context, in *SearchUsernameReq, opts ...grpc.CallOption) (*SearchUsernameRes, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SearchUsernameRes) err := c.cc.Invoke(ctx, SlowWildServer_SearchUsername_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // SlowWildServerServer is the server API for SlowWildServer service. // All implementations must embed UnimplementedSlowWildServerServer // for forward compatibility type SlowWildServerServer interface { // 用户登录 Login(context.Context, *LoginReq) (*LoginAndRegisterRsp, error) // 用户注册 Register(context.Context, *RegisterReq) (*LoginAndRegisterRsp, error) // 获取用户信息 GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) // 查询用户信息 FindUser(context.Context, *FindUserReq) (*FindUserResp, error) // 关注用户 UserFollow(context.Context, *FollowUserReq) (*FollowUserRes, error) // 取消关注用户 UnUserFollow(context.Context, *UnFollowUserReq) (*UnFollowUserRes, error) // 获取我得粉丝 GetFans(context.Context, *GetFollowingReq) (*GetFollowingRes, error) // 查询我的关注 GetFollows(context.Context, *GetFollowingReq) (*GetFollowingRes, error) // 查询用户的详细信息 GetUserProfile(context.Context, *GetUserProfileReq) (*GetUserProfileRes, error) // 搜索用户名称 SearchUsername(context.Context, *SearchUsernameReq) (*SearchUsernameRes, error) mustEmbedUnimplementedSlowWildServerServer() } // UnimplementedSlowWildServerServer must be embedded to have forward compatible implementations. type UnimplementedSlowWildServerServer struct { } func (UnimplementedSlowWildServerServer) Login(context.Context, *LoginReq) (*LoginAndRegisterRsp, error) { return nil, status.Errorf(codes.Unimplemented, "method Login not implemented") } func (UnimplementedSlowWildServerServer) Register(context.Context, *RegisterReq) (*LoginAndRegisterRsp, error) { return nil, status.Errorf(codes.Unimplemented, "method Register not implemented") } func (UnimplementedSlowWildServerServer) GetUserInfo(context.Context, *GetUserInfoReq) (*GetUserInfoResp, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented") } func (UnimplementedSlowWildServerServer) FindUser(context.Context, *FindUserReq) (*FindUserResp, error) { return nil, status.Errorf(codes.Unimplemented, "method FindUser not implemented") } func (UnimplementedSlowWildServerServer) UserFollow(context.Context, *FollowUserReq) (*FollowUserRes, error) { return nil, status.Errorf(codes.Unimplemented, "method UserFollow not implemented") } func (UnimplementedSlowWildServerServer) UnUserFollow(context.Context, *UnFollowUserReq) (*UnFollowUserRes, error) { return nil, status.Errorf(codes.Unimplemented, "method UnUserFollow not implemented") } func (UnimplementedSlowWildServerServer) GetFans(context.Context, *GetFollowingReq) (*GetFollowingRes, error) { return nil, status.Errorf(codes.Unimplemented, "method GetFans not implemented") } func (UnimplementedSlowWildServerServer) GetFollows(context.Context, *GetFollowingReq) (*GetFollowingRes, error) { return nil, status.Errorf(codes.Unimplemented, "method GetFollows not implemented") } func (UnimplementedSlowWildServerServer) GetUserProfile(context.Context, *GetUserProfileReq) (*GetUserProfileRes, error) { return nil, status.Errorf(codes.Unimplemented, "method GetUserProfile not implemented") } func (UnimplementedSlowWildServerServer) SearchUsername(context.Context, *SearchUsernameReq) (*SearchUsernameRes, error) { return nil, status.Errorf(codes.Unimplemented, "method SearchUsername not implemented") } func (UnimplementedSlowWildServerServer) mustEmbedUnimplementedSlowWildServerServer() {} // UnsafeSlowWildServerServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to SlowWildServerServer will // result in compilation errors. type UnsafeSlowWildServerServer interface { mustEmbedUnimplementedSlowWildServerServer() } func RegisterSlowWildServerServer(s grpc.ServiceRegistrar, srv SlowWildServerServer) { s.RegisterService(&SlowWildServer_ServiceDesc, srv) } func _SlowWildServer_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LoginReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).Login(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_Login_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).Login(ctx, req.(*LoginReq)) } return interceptor(ctx, in, info, handler) } func _SlowWildServer_Register_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RegisterReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).Register(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_Register_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).Register(ctx, req.(*RegisterReq)) } return interceptor(ctx, in, info, handler) } func _SlowWildServer_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetUserInfoReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).GetUserInfo(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_GetUserInfo_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).GetUserInfo(ctx, req.(*GetUserInfoReq)) } return interceptor(ctx, in, info, handler) } func _SlowWildServer_FindUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FindUserReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).FindUser(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_FindUser_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).FindUser(ctx, req.(*FindUserReq)) } return interceptor(ctx, in, info, handler) } func _SlowWildServer_UserFollow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FollowUserReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).UserFollow(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_UserFollow_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).UserFollow(ctx, req.(*FollowUserReq)) } return interceptor(ctx, in, info, handler) } func _SlowWildServer_UnUserFollow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(UnFollowUserReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).UnUserFollow(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_UnUserFollow_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).UnUserFollow(ctx, req.(*UnFollowUserReq)) } return interceptor(ctx, in, info, handler) } func _SlowWildServer_GetFans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetFollowingReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).GetFans(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_GetFans_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).GetFans(ctx, req.(*GetFollowingReq)) } return interceptor(ctx, in, info, handler) } func _SlowWildServer_GetFollows_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetFollowingReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).GetFollows(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_GetFollows_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).GetFollows(ctx, req.(*GetFollowingReq)) } return interceptor(ctx, in, info, handler) } func _SlowWildServer_GetUserProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetUserProfileReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).GetUserProfile(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_GetUserProfile_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).GetUserProfile(ctx, req.(*GetUserProfileReq)) } return interceptor(ctx, in, info, handler) } func _SlowWildServer_SearchUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SearchUsernameReq) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(SlowWildServerServer).SearchUsername(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: SlowWildServer_SearchUsername_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(SlowWildServerServer).SearchUsername(ctx, req.(*SearchUsernameReq)) } return interceptor(ctx, in, info, handler) } // SlowWildServer_ServiceDesc is the grpc.ServiceDesc for SlowWildServer service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var SlowWildServer_ServiceDesc = grpc.ServiceDesc{ ServiceName: "slowwildserver.SlowWildServer", HandlerType: (*SlowWildServerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Login", Handler: _SlowWildServer_Login_Handler, }, { MethodName: "Register", Handler: _SlowWildServer_Register_Handler, }, { MethodName: "GetUserInfo", Handler: _SlowWildServer_GetUserInfo_Handler, }, { MethodName: "FindUser", Handler: _SlowWildServer_FindUser_Handler, }, { MethodName: "UserFollow", Handler: _SlowWildServer_UserFollow_Handler, }, { MethodName: "UnUserFollow", Handler: _SlowWildServer_UnUserFollow_Handler, }, { MethodName: "GetFans", Handler: _SlowWildServer_GetFans_Handler, }, { MethodName: "GetFollows", Handler: _SlowWildServer_GetFollows_Handler, }, { MethodName: "GetUserProfile", Handler: _SlowWildServer_GetUserProfile_Handler, }, { MethodName: "SearchUsername", Handler: _SlowWildServer_SearchUsername_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/slowwild.proto", }