Documentation ¶
Index ¶
- type Server
- func (s *Server) BatchGetUsers(context.Context, *proto.BatchGetUsersRequest) (*proto.BatchGetUsersReply, error)
- func (s *Server) CreateUser(context.Context, *proto.CreateUserRequest) (*proto.CreateUserReply, error)
- func (s *Server) GetUser(ctx context.Context, in *proto.GetUserRequest) (*proto.GetUserReply, error)
- func (s *Server) Login(context.Context, *proto.LoginRequest) (*proto.LoginReply, error)
- func (s *Server) Logout(context.Context, *proto.LogoutRequest) (*emptypb.Empty, error)
- func (s *Server) Register(context.Context, *proto.RegisterRequest) (*proto.RegisterReply, error)
- func (s *Server) UpdatePassword(context.Context, *proto.UpdatePasswordRequest) (*proto.UpdatePasswordReply, error)
- func (s *Server) UpdateUser(context.Context, *proto.UpdateUserRequest) (*proto.UpdateUserReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Db *gorm.DB Mongo *mongo.Client Rds *redis.Client proto.UnimplementedUserServiceServer }
func (*Server) BatchGetUsers ¶
func (s *Server) BatchGetUsers(context.Context, *proto.BatchGetUsersRequest) (*proto.BatchGetUsersReply, error)
BatchGetUsers implements proto.UserServiceServer.
func (*Server) CreateUser ¶
func (s *Server) CreateUser(context.Context, *proto.CreateUserRequest) (*proto.CreateUserReply, error)
CreateUser implements proto.UserServiceServer.
func (*Server) GetUser ¶
func (s *Server) GetUser(ctx context.Context, in *proto.GetUserRequest) (*proto.GetUserReply, error)
func (*Server) Login ¶
func (s *Server) Login(context.Context, *proto.LoginRequest) (*proto.LoginReply, error)
Login implements proto.UserServiceServer.
func (*Server) Register ¶
func (s *Server) Register(context.Context, *proto.RegisterRequest) (*proto.RegisterReply, error)
Register implements proto.UserServiceServer.
func (*Server) UpdatePassword ¶
func (s *Server) UpdatePassword(context.Context, *proto.UpdatePasswordRequest) (*proto.UpdatePasswordReply, error)
UpdatePassword implements proto.UserServiceServer.
func (*Server) UpdateUser ¶
func (s *Server) UpdateUser(context.Context, *proto.UpdateUserRequest) (*proto.UpdateUserReply, error)
UpdateUser implements proto.UserServiceServer.
Click to show internal directories.
Click to hide internal directories.