Versions in this module Expand all Collapse all v0 v0.1.2 Dec 16, 2023 v0.1.1 Dec 16, 2023 Changes in this version + func Dial(Address string, options ...grpc.DialOption) (*grpc.ClientConn, error) v0.1.0 Dec 16, 2023 Changes in this version + var File_user_proto protoreflect.FileDescriptor + var UserService_ServiceDesc = grpc.ServiceDesc + func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer) + type FollowActionReply struct + func (*FollowActionReply) Descriptor() ([]byte, []int) + func (*FollowActionReply) ProtoMessage() + func (x *FollowActionReply) ProtoReflect() protoreflect.Message + func (x *FollowActionReply) Reset() + func (x *FollowActionReply) String() string + type FollowActionRequest struct + Action int32 + UserId int64 + func (*FollowActionRequest) Descriptor() ([]byte, []int) + func (*FollowActionRequest) ProtoMessage() + func (x *FollowActionRequest) GetAction() int32 + func (x *FollowActionRequest) GetUserId() int64 + func (x *FollowActionRequest) ProtoReflect() protoreflect.Message + func (x *FollowActionRequest) Reset() + func (x *FollowActionRequest) String() string + type FollowQueryReq struct + Limit int32 + Page int64 + UserId int64 + func (*FollowQueryReq) Descriptor() ([]byte, []int) + func (*FollowQueryReq) ProtoMessage() + func (x *FollowQueryReq) GetLimit() int32 + func (x *FollowQueryReq) GetPage() int64 + func (x *FollowQueryReq) GetUserId() int64 + func (x *FollowQueryReq) ProtoReflect() protoreflect.Message + func (x *FollowQueryReq) Reset() + func (x *FollowQueryReq) String() string + type GetUserReply struct + User *User + func (*GetUserReply) Descriptor() ([]byte, []int) + func (*GetUserReply) ProtoMessage() + func (x *GetUserReply) GetUser() *User + func (x *GetUserReply) ProtoReflect() protoreflect.Message + func (x *GetUserReply) Reset() + func (x *GetUserReply) String() string + type GetUserRequest struct + UserId int64 + func (*GetUserRequest) Descriptor() ([]byte, []int) + func (*GetUserRequest) ProtoMessage() + func (x *GetUserRequest) GetUserId() int64 + func (x *GetUserRequest) ProtoReflect() protoreflect.Message + func (x *GetUserRequest) Reset() + func (x *GetUserRequest) String() string + type GetUsersReply struct + Users []*User + func (*GetUsersReply) Descriptor() ([]byte, []int) + func (*GetUsersReply) ProtoMessage() + func (x *GetUsersReply) GetUsers() []*User + func (x *GetUsersReply) ProtoReflect() protoreflect.Message + func (x *GetUsersReply) Reset() + func (x *GetUsersReply) String() string + type GetUsersRequest struct + UserIds []int64 + func (*GetUsersRequest) Descriptor() ([]byte, []int) + func (*GetUsersRequest) ProtoMessage() + func (x *GetUsersRequest) GetUserIds() []int64 + func (x *GetUsersRequest) ProtoReflect() protoreflect.Message + func (x *GetUsersRequest) Reset() + func (x *GetUsersRequest) String() string + type LoginReply struct + User *User + func (*LoginReply) Descriptor() ([]byte, []int) + func (*LoginReply) ProtoMessage() + func (x *LoginReply) GetUser() *User + func (x *LoginReply) ProtoReflect() protoreflect.Message + func (x *LoginReply) Reset() + func (x *LoginReply) String() string + type LoginRequest struct + Email string + Password string + func (*LoginRequest) Descriptor() ([]byte, []int) + func (*LoginRequest) ProtoMessage() + func (x *LoginRequest) GetEmail() string + func (x *LoginRequest) GetPassword() string + func (x *LoginRequest) ProtoReflect() protoreflect.Message + func (x *LoginRequest) Reset() + func (x *LoginRequest) String() string + type RegisterReply struct + User *User + func (*RegisterReply) Descriptor() ([]byte, []int) + func (*RegisterReply) ProtoMessage() + func (x *RegisterReply) GetUser() *User + func (x *RegisterReply) ProtoReflect() protoreflect.Message + func (x *RegisterReply) Reset() + func (x *RegisterReply) String() string + type RegisterRequest struct + Email string + Name string + Password string + func (*RegisterRequest) Descriptor() ([]byte, []int) + func (*RegisterRequest) ProtoMessage() + func (x *RegisterRequest) GetEmail() string + func (x *RegisterRequest) GetName() string + func (x *RegisterRequest) GetPassword() string + func (x *RegisterRequest) ProtoReflect() protoreflect.Message + func (x *RegisterRequest) Reset() + func (x *RegisterRequest) String() string + type UnimplementedUserServiceServer struct + func (UnimplementedUserServiceServer) FollowAction(context.Context, *FollowActionRequest) (*FollowActionReply, error) + func (UnimplementedUserServiceServer) GetFollowers(context.Context, *FollowQueryReq) (*UsersPage, error) + func (UnimplementedUserServiceServer) GetFollowings(context.Context, *FollowQueryReq) (*UsersPage, error) + func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) + func (UnimplementedUserServiceServer) GetUsers(context.Context, *GetUsersRequest) (*GetUsersReply, error) + func (UnimplementedUserServiceServer) Login(context.Context, *LoginRequest) (*LoginReply, error) + func (UnimplementedUserServiceServer) Register(context.Context, *RegisterRequest) (*RegisterReply, error) + func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) + type UnsafeUserServiceServer interface + type UpdateUserReply struct + Profile *User + func (*UpdateUserReply) Descriptor() ([]byte, []int) + func (*UpdateUserReply) ProtoMessage() + func (x *UpdateUserReply) GetProfile() *User + func (x *UpdateUserReply) ProtoReflect() protoreflect.Message + func (x *UpdateUserReply) Reset() + func (x *UpdateUserReply) String() string + type UpdateUserRequest struct + AvatarUrl string + BgUrl string + Bio string + Name string + UserId int64 + func (*UpdateUserRequest) Descriptor() ([]byte, []int) + func (*UpdateUserRequest) ProtoMessage() + func (x *UpdateUserRequest) GetAvatarUrl() string + func (x *UpdateUserRequest) GetBgUrl() string + func (x *UpdateUserRequest) GetBio() string + func (x *UpdateUserRequest) GetName() string + func (x *UpdateUserRequest) GetUserId() int64 + func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message + func (x *UpdateUserRequest) Reset() + func (x *UpdateUserRequest) String() string + type User struct + AvatarUrl string + BgUrl string + Bio string + Followers int32 + Following int32 + Id int64 + IsFollow bool + LikesGiven int32 + LikesReceived int32 + Name string + VideosPosted int32 + func (*User) Descriptor() ([]byte, []int) + func (*User) ProtoMessage() + func (x *User) GetAvatarUrl() string + func (x *User) GetBgUrl() string + func (x *User) GetBio() string + func (x *User) GetFollowers() int32 + func (x *User) GetFollowing() int32 + func (x *User) GetId() int64 + func (x *User) GetIsFollow() bool + func (x *User) GetLikesGiven() int32 + func (x *User) GetLikesReceived() int32 + func (x *User) GetName() string + func (x *User) GetVideosPosted() int32 + func (x *User) ProtoReflect() protoreflect.Message + func (x *User) Reset() + func (x *User) String() string + type UserServiceClient interface + FollowAction func(ctx context.Context, in *FollowActionRequest, opts ...grpc.CallOption) (*FollowActionReply, error) + GetFollowers func(ctx context.Context, in *FollowQueryReq, opts ...grpc.CallOption) (*UsersPage, error) + GetFollowings func(ctx context.Context, in *FollowQueryReq, opts ...grpc.CallOption) (*UsersPage, error) + GetUser func(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) + GetUsers func(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersReply, error) + Login func(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) + Register func(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterReply, error) + UpdateUser func(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error) + func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient + type UserServiceServer interface + FollowAction func(context.Context, *FollowActionRequest) (*FollowActionReply, error) + GetFollowers func(context.Context, *FollowQueryReq) (*UsersPage, error) + GetFollowings func(context.Context, *FollowQueryReq) (*UsersPage, error) + GetUser func(context.Context, *GetUserRequest) (*GetUserReply, error) + GetUsers func(context.Context, *GetUsersRequest) (*GetUsersReply, error) + Login func(context.Context, *LoginRequest) (*LoginReply, error) + Register func(context.Context, *RegisterRequest) (*RegisterReply, error) + UpdateUser func(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) + type UsersPage struct + AllCount int32 + NextPage int64 + Users []*User + func (*UsersPage) Descriptor() ([]byte, []int) + func (*UsersPage) ProtoMessage() + func (x *UsersPage) GetAllCount() int32 + func (x *UsersPage) GetNextPage() int64 + func (x *UsersPage) GetUsers() []*User + func (x *UsersPage) ProtoReflect() protoreflect.Message + func (x *UsersPage) Reset() + func (x *UsersPage) String() string