Documentation
¶
Index ¶
- Variables
- func Dial(Address string, options ...grpc.DialOption) (*grpc.ClientConn, error)
- func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
- type FollowActionReply
- type FollowActionRequest
- func (*FollowActionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FollowActionRequest) GetAction() int32
- func (x *FollowActionRequest) GetUserId() int64
- func (*FollowActionRequest) ProtoMessage()
- func (x *FollowActionRequest) ProtoReflect() protoreflect.Message
- func (x *FollowActionRequest) Reset()
- func (x *FollowActionRequest) String() string
- type FollowQueryReq
- func (*FollowQueryReq) Descriptor() ([]byte, []int)deprecated
- func (x *FollowQueryReq) GetLimit() int32
- func (x *FollowQueryReq) GetPage() int64
- func (x *FollowQueryReq) GetUserId() int64
- func (*FollowQueryReq) ProtoMessage()
- func (x *FollowQueryReq) ProtoReflect() protoreflect.Message
- func (x *FollowQueryReq) Reset()
- func (x *FollowQueryReq) String() string
- type GetUserReply
- type GetUserRequest
- type GetUsersReply
- type GetUsersRequest
- type LoginReply
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (x *LoginRequest) GetPassword() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type RegisterReply
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetEmail() string
- func (x *RegisterRequest) GetName() string
- func (x *RegisterRequest) GetPassword() string
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type UnimplementedUserServiceServer
- 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
- type UpdateUserReply
- type UpdateUserRequest
- func (*UpdateUserRequest) Descriptor() ([]byte, []int)deprecated
- 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 (*UpdateUserRequest) ProtoMessage()
- func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateUserRequest) Reset()
- func (x *UpdateUserRequest) String() string
- type User
- func (*User) Descriptor() ([]byte, []int)deprecated
- 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 (*User) ProtoMessage()
- func (x *User) ProtoReflect() protoreflect.Message
- func (x *User) Reset()
- func (x *User) String() string
- type UserServiceClient
- type UserServiceServer
- type UsersPage
- func (*UsersPage) Descriptor() ([]byte, []int)deprecated
- func (x *UsersPage) GetAllCount() int32
- func (x *UsersPage) GetNextPage() int64
- func (x *UsersPage) GetUsers() []*User
- func (*UsersPage) ProtoMessage()
- func (x *UsersPage) ProtoReflect() protoreflect.Message
- func (x *UsersPage) Reset()
- func (x *UsersPage) String() string
Constants ¶
This section is empty.
Variables ¶
var File_user_proto protoreflect.FileDescriptor
var UserService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "sixwaaaay.user.UserService", HandlerType: (*UserServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetUser", Handler: _UserService_GetUser_Handler, }, { MethodName: "GetUsers", Handler: _UserService_GetUsers_Handler, }, { MethodName: "Login", Handler: _UserService_Login_Handler, }, { MethodName: "Register", Handler: _UserService_Register_Handler, }, { MethodName: "FollowAction", Handler: _UserService_FollowAction_Handler, }, { MethodName: "GetFollowers", Handler: _UserService_GetFollowers_Handler, }, { MethodName: "GetFollowings", Handler: _UserService_GetFollowings_Handler, }, { MethodName: "UpdateUser", Handler: _UserService_UpdateUser_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user.proto", }
UserService_ServiceDesc is the grpc.ServiceDesc for UserService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func Dial ¶ added in v0.1.1
func Dial(Address string, options ...grpc.DialOption) (*grpc.ClientConn, error)
func RegisterUserServiceServer ¶
func RegisterUserServiceServer(s grpc.ServiceRegistrar, srv UserServiceServer)
Types ¶
type FollowActionReply ¶
type FollowActionReply struct {
// contains filtered or unexported fields
}
func (*FollowActionReply) Descriptor
deprecated
func (*FollowActionReply) Descriptor() ([]byte, []int)
Deprecated: Use FollowActionReply.ProtoReflect.Descriptor instead.
func (*FollowActionReply) ProtoMessage ¶
func (*FollowActionReply) ProtoMessage()
func (*FollowActionReply) ProtoReflect ¶
func (x *FollowActionReply) ProtoReflect() protoreflect.Message
func (*FollowActionReply) Reset ¶
func (x *FollowActionReply) Reset()
func (*FollowActionReply) String ¶
func (x *FollowActionReply) String() string
type FollowActionRequest ¶
type FollowActionRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Action int32 `protobuf:"varint,2,opt,name=action,proto3" json:"action,omitempty"` // contains filtered or unexported fields }
func (*FollowActionRequest) Descriptor
deprecated
func (*FollowActionRequest) Descriptor() ([]byte, []int)
Deprecated: Use FollowActionRequest.ProtoReflect.Descriptor instead.
func (*FollowActionRequest) GetAction ¶
func (x *FollowActionRequest) GetAction() int32
func (*FollowActionRequest) GetUserId ¶
func (x *FollowActionRequest) GetUserId() int64
func (*FollowActionRequest) ProtoMessage ¶
func (*FollowActionRequest) ProtoMessage()
func (*FollowActionRequest) ProtoReflect ¶
func (x *FollowActionRequest) ProtoReflect() protoreflect.Message
func (*FollowActionRequest) Reset ¶
func (x *FollowActionRequest) Reset()
func (*FollowActionRequest) String ¶
func (x *FollowActionRequest) String() string
type FollowQueryReq ¶
type FollowQueryReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Page int64 `protobuf:"varint,2,opt,name=page,proto3" json:"page,omitempty"` Limit int32 `protobuf:"varint,3,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*FollowQueryReq) Descriptor
deprecated
func (*FollowQueryReq) Descriptor() ([]byte, []int)
Deprecated: Use FollowQueryReq.ProtoReflect.Descriptor instead.
func (*FollowQueryReq) GetLimit ¶
func (x *FollowQueryReq) GetLimit() int32
func (*FollowQueryReq) GetPage ¶
func (x *FollowQueryReq) GetPage() int64
func (*FollowQueryReq) GetUserId ¶
func (x *FollowQueryReq) GetUserId() int64
func (*FollowQueryReq) ProtoMessage ¶
func (*FollowQueryReq) ProtoMessage()
func (*FollowQueryReq) ProtoReflect ¶
func (x *FollowQueryReq) ProtoReflect() protoreflect.Message
func (*FollowQueryReq) Reset ¶
func (x *FollowQueryReq) Reset()
func (*FollowQueryReq) String ¶
func (x *FollowQueryReq) String() string
type GetUserReply ¶
type GetUserReply struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*GetUserReply) Descriptor
deprecated
func (*GetUserReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUserReply.ProtoReflect.Descriptor instead.
func (*GetUserReply) GetUser ¶
func (x *GetUserReply) GetUser() *User
func (*GetUserReply) ProtoMessage ¶
func (*GetUserReply) ProtoMessage()
func (*GetUserReply) ProtoReflect ¶
func (x *GetUserReply) ProtoReflect() protoreflect.Message
func (*GetUserReply) Reset ¶
func (x *GetUserReply) Reset()
func (*GetUserReply) String ¶
func (x *GetUserReply) String() string
type GetUserRequest ¶
type GetUserRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetUserRequest) Descriptor
deprecated
func (*GetUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUserRequest.ProtoReflect.Descriptor instead.
func (*GetUserRequest) GetUserId ¶
func (x *GetUserRequest) GetUserId() int64
func (*GetUserRequest) ProtoMessage ¶
func (*GetUserRequest) ProtoMessage()
func (*GetUserRequest) ProtoReflect ¶
func (x *GetUserRequest) ProtoReflect() protoreflect.Message
func (*GetUserRequest) Reset ¶
func (x *GetUserRequest) Reset()
func (*GetUserRequest) String ¶
func (x *GetUserRequest) String() string
type GetUsersReply ¶
type GetUsersReply struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*GetUsersReply) Descriptor
deprecated
func (*GetUsersReply) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersReply.ProtoReflect.Descriptor instead.
func (*GetUsersReply) GetUsers ¶
func (x *GetUsersReply) GetUsers() []*User
func (*GetUsersReply) ProtoMessage ¶
func (*GetUsersReply) ProtoMessage()
func (*GetUsersReply) ProtoReflect ¶
func (x *GetUsersReply) ProtoReflect() protoreflect.Message
func (*GetUsersReply) Reset ¶
func (x *GetUsersReply) Reset()
func (*GetUsersReply) String ¶
func (x *GetUsersReply) String() string
type GetUsersRequest ¶
type GetUsersRequest struct { UserIds []int64 `protobuf:"varint,1,rep,packed,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"` // contains filtered or unexported fields }
func (*GetUsersRequest) Descriptor
deprecated
func (*GetUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetUsersRequest.ProtoReflect.Descriptor instead.
func (*GetUsersRequest) GetUserIds ¶
func (x *GetUsersRequest) GetUserIds() []int64
func (*GetUsersRequest) ProtoMessage ¶
func (*GetUsersRequest) ProtoMessage()
func (*GetUsersRequest) ProtoReflect ¶
func (x *GetUsersRequest) ProtoReflect() protoreflect.Message
func (*GetUsersRequest) Reset ¶
func (x *GetUsersRequest) Reset()
func (*GetUsersRequest) String ¶
func (x *GetUsersRequest) String() string
type LoginReply ¶
type LoginReply struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetUser ¶
func (x *LoginReply) GetUser() *User
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
func (x *LoginReply) ProtoReflect() protoreflect.Message
func (*LoginReply) Reset ¶
func (x *LoginReply) Reset()
func (*LoginReply) String ¶
func (x *LoginReply) String() string
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) GetPassword ¶
func (x *LoginRequest) GetPassword() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type RegisterReply ¶
type RegisterReply struct { User *User `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*RegisterReply) Descriptor
deprecated
func (*RegisterReply) Descriptor() ([]byte, []int)
Deprecated: Use RegisterReply.ProtoReflect.Descriptor instead.
func (*RegisterReply) GetUser ¶
func (x *RegisterReply) GetUser() *User
func (*RegisterReply) ProtoMessage ¶
func (*RegisterReply) ProtoMessage()
func (*RegisterReply) ProtoReflect ¶
func (x *RegisterReply) ProtoReflect() protoreflect.Message
func (*RegisterReply) Reset ¶
func (x *RegisterReply) Reset()
func (*RegisterReply) String ¶
func (x *RegisterReply) String() string
type RegisterRequest ¶
type RegisterRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetEmail ¶
func (x *RegisterRequest) GetEmail() string
func (*RegisterRequest) GetName ¶
func (x *RegisterRequest) GetName() string
func (*RegisterRequest) GetPassword ¶
func (x *RegisterRequest) GetPassword() string
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
type UnimplementedUserServiceServer ¶
type UnimplementedUserServiceServer struct { }
UnimplementedUserServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedUserServiceServer) FollowAction ¶
func (UnimplementedUserServiceServer) FollowAction(context.Context, *FollowActionRequest) (*FollowActionReply, error)
func (UnimplementedUserServiceServer) GetFollowers ¶
func (UnimplementedUserServiceServer) GetFollowers(context.Context, *FollowQueryReq) (*UsersPage, error)
func (UnimplementedUserServiceServer) GetFollowings ¶
func (UnimplementedUserServiceServer) GetFollowings(context.Context, *FollowQueryReq) (*UsersPage, error)
func (UnimplementedUserServiceServer) GetUser ¶
func (UnimplementedUserServiceServer) GetUser(context.Context, *GetUserRequest) (*GetUserReply, error)
func (UnimplementedUserServiceServer) GetUsers ¶
func (UnimplementedUserServiceServer) GetUsers(context.Context, *GetUsersRequest) (*GetUsersReply, error)
func (UnimplementedUserServiceServer) Login ¶
func (UnimplementedUserServiceServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedUserServiceServer) Register ¶
func (UnimplementedUserServiceServer) Register(context.Context, *RegisterRequest) (*RegisterReply, error)
func (UnimplementedUserServiceServer) UpdateUser ¶
func (UnimplementedUserServiceServer) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error)
type UnsafeUserServiceServer ¶
type UnsafeUserServiceServer interface {
// contains filtered or unexported methods
}
UnsafeUserServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to UserServiceServer will result in compilation errors.
type UpdateUserReply ¶
type UpdateUserReply struct { Profile *User `protobuf:"bytes,1,opt,name=profile,proto3" json:"profile,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserReply) Descriptor
deprecated
func (*UpdateUserReply) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserReply.ProtoReflect.Descriptor instead.
func (*UpdateUserReply) GetProfile ¶
func (x *UpdateUserReply) GetProfile() *User
func (*UpdateUserReply) ProtoMessage ¶
func (*UpdateUserReply) ProtoMessage()
func (*UpdateUserReply) ProtoReflect ¶
func (x *UpdateUserReply) ProtoReflect() protoreflect.Message
func (*UpdateUserReply) Reset ¶
func (x *UpdateUserReply) Reset()
func (*UpdateUserReply) String ¶
func (x *UpdateUserReply) String() string
type UpdateUserRequest ¶
type UpdateUserRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Bio string `protobuf:"bytes,3,opt,name=bio,proto3" json:"bio,omitempty"` AvatarUrl string `protobuf:"bytes,4,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` BgUrl string `protobuf:"bytes,5,opt,name=bg_url,json=bgUrl,proto3" json:"bg_url,omitempty"` // contains filtered or unexported fields }
func (*UpdateUserRequest) Descriptor
deprecated
func (*UpdateUserRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateUserRequest.ProtoReflect.Descriptor instead.
func (*UpdateUserRequest) GetAvatarUrl ¶
func (x *UpdateUserRequest) GetAvatarUrl() string
func (*UpdateUserRequest) GetBgUrl ¶
func (x *UpdateUserRequest) GetBgUrl() string
func (*UpdateUserRequest) GetBio ¶
func (x *UpdateUserRequest) GetBio() string
func (*UpdateUserRequest) GetName ¶
func (x *UpdateUserRequest) GetName() string
func (*UpdateUserRequest) GetUserId ¶
func (x *UpdateUserRequest) GetUserId() int64
func (*UpdateUserRequest) ProtoMessage ¶
func (*UpdateUserRequest) ProtoMessage()
func (*UpdateUserRequest) ProtoReflect ¶
func (x *UpdateUserRequest) ProtoReflect() protoreflect.Message
func (*UpdateUserRequest) Reset ¶
func (x *UpdateUserRequest) Reset()
func (*UpdateUserRequest) String ¶
func (x *UpdateUserRequest) String() string
type User ¶
type User struct { Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` IsFollow bool `protobuf:"varint,5,opt,name=is_follow,json=isFollow,proto3" json:"is_follow,omitempty"` AvatarUrl string `protobuf:"bytes,6,opt,name=avatar_url,json=avatarUrl,proto3" json:"avatar_url,omitempty"` BgUrl string `protobuf:"bytes,7,opt,name=bg_url,json=bgUrl,proto3" json:"bg_url,omitempty"` Bio string `protobuf:"bytes,8,opt,name=bio,proto3" json:"bio,omitempty"` LikesGiven int32 `protobuf:"varint,9,opt,name=likes_given,json=likesGiven,proto3" json:"likes_given,omitempty"` LikesReceived int32 `protobuf:"varint,10,opt,name=likes_received,json=likesReceived,proto3" json:"likes_received,omitempty"` VideosPosted int32 `protobuf:"varint,11,opt,name=videos_posted,json=videosPosted,proto3" json:"videos_posted,omitempty"` Following int32 `protobuf:"varint,12,opt,name=following,proto3" json:"following,omitempty"` Followers int32 `protobuf:"varint,13,opt,name=followers,proto3" json:"followers,omitempty"` // contains filtered or unexported fields }
func (*User) Descriptor
deprecated
func (*User) GetAvatarUrl ¶
func (*User) GetFollowers ¶
func (*User) GetFollowing ¶
func (*User) GetIsFollow ¶
func (*User) GetLikesGiven ¶
func (*User) GetLikesReceived ¶
func (*User) GetVideosPosted ¶
func (*User) ProtoMessage ¶
func (*User) ProtoMessage()
func (*User) ProtoReflect ¶
func (x *User) ProtoReflect() protoreflect.Message
type UserServiceClient ¶
type UserServiceClient interface { GetUser(ctx context.Context, in *GetUserRequest, opts ...grpc.CallOption) (*GetUserReply, error) GetUsers(ctx context.Context, in *GetUsersRequest, opts ...grpc.CallOption) (*GetUsersReply, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterReply, error) FollowAction(ctx context.Context, in *FollowActionRequest, opts ...grpc.CallOption) (*FollowActionReply, error) GetFollowers(ctx context.Context, in *FollowQueryReq, opts ...grpc.CallOption) (*UsersPage, error) GetFollowings(ctx context.Context, in *FollowQueryReq, opts ...grpc.CallOption) (*UsersPage, error) UpdateUser(ctx context.Context, in *UpdateUserRequest, opts ...grpc.CallOption) (*UpdateUserReply, error) }
UserServiceClient is the client API for UserService 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 NewUserServiceClient ¶
func NewUserServiceClient(cc grpc.ClientConnInterface) UserServiceClient
type UserServiceServer ¶
type UserServiceServer interface { GetUser(context.Context, *GetUserRequest) (*GetUserReply, error) GetUsers(context.Context, *GetUsersRequest) (*GetUsersReply, error) Login(context.Context, *LoginRequest) (*LoginReply, error) Register(context.Context, *RegisterRequest) (*RegisterReply, error) FollowAction(context.Context, *FollowActionRequest) (*FollowActionReply, error) GetFollowers(context.Context, *FollowQueryReq) (*UsersPage, error) GetFollowings(context.Context, *FollowQueryReq) (*UsersPage, error) UpdateUser(context.Context, *UpdateUserRequest) (*UpdateUserReply, error) // contains filtered or unexported methods }
UserServiceServer is the server API for UserService service. All implementations must embed UnimplementedUserServiceServer for forward compatibility
type UsersPage ¶
type UsersPage struct { Users []*User `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` NextPage int64 `protobuf:"varint,2,opt,name=next_page,json=nextPage,proto3" json:"next_page,omitempty"` AllCount int32 `protobuf:"varint,3,opt,name=all_count,json=allCount,proto3" json:"all_count,omitempty"` // contains filtered or unexported fields }
func (*UsersPage) Descriptor
deprecated
func (*UsersPage) GetAllCount ¶
func (*UsersPage) GetNextPage ¶
func (*UsersPage) ProtoMessage ¶
func (*UsersPage) ProtoMessage()
func (*UsersPage) ProtoReflect ¶
func (x *UsersPage) ProtoReflect() protoreflect.Message