Documentation ¶
Index ¶
- Variables
- type GreeterService
- type UserServiceServer
- func (s *UserServiceServer) BatchGetUsers(ctx context.Context, req *pb.BatchGetUsersRequest) (*pb.BatchGetUsersReply, error)
- func (s *UserServiceServer) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)
- func (s *UserServiceServer) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)
- func (s *UserServiceServer) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)
- func (s *UserServiceServer) Logout(ctx context.Context, req *pb.LogoutRequest) (*pb.LogoutReply, error)
- func (s *UserServiceServer) Register(ctx context.Context, req *pb.RegisterRequest) (*pb.RegisterReply, error)
- func (s *UserServiceServer) UpdatePassword(ctx context.Context, req *pb.UpdatePasswordRequest) (*pb.UpdatePasswordReply, error)
- func (s *UserServiceServer) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserServiceServer)
ProviderSet is service providers.
Functions ¶
This section is empty.
Types ¶
type GreeterService ¶
GreeterService define a interface
func NewGreeterService ¶
func NewGreeterService(repo repository.UserRepo) GreeterService
NewGreeterService create a service
type UserServiceServer ¶
type UserServiceServer struct { pb.UnimplementedUserServiceServer // contains filtered or unexported fields }
func NewUserServiceServer ¶
func NewUserServiceServer(repo repository.UserRepo) *UserServiceServer
func (*UserServiceServer) BatchGetUsers ¶
func (s *UserServiceServer) BatchGetUsers(ctx context.Context, req *pb.BatchGetUsersRequest) (*pb.BatchGetUsersReply, error)
func (*UserServiceServer) CreateUser ¶
func (s *UserServiceServer) CreateUser(ctx context.Context, req *pb.CreateUserRequest) (*pb.CreateUserReply, error)
func (*UserServiceServer) GetUser ¶
func (s *UserServiceServer) GetUser(ctx context.Context, req *pb.GetUserRequest) (*pb.GetUserReply, error)
func (*UserServiceServer) Login ¶
func (s *UserServiceServer) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginReply, error)
func (*UserServiceServer) Logout ¶
func (s *UserServiceServer) Logout(ctx context.Context, req *pb.LogoutRequest) (*pb.LogoutReply, error)
func (*UserServiceServer) Register ¶
func (s *UserServiceServer) Register(ctx context.Context, req *pb.RegisterRequest) (*pb.RegisterReply, error)
func (*UserServiceServer) UpdatePassword ¶
func (s *UserServiceServer) UpdatePassword(ctx context.Context, req *pb.UpdatePasswordRequest) (*pb.UpdatePasswordReply, error)
func (*UserServiceServer) UpdateUser ¶
func (s *UserServiceServer) UpdateUser(ctx context.Context, req *pb.UpdateUserRequest) (*pb.UpdateUserReply, error)
Click to show internal directories.
Click to hide internal directories.