Documentation ¶
Index ¶
- type Server
- func (server *Server) CreateUser(ctx context.Context, req *usercenterproto.CreateUserRequest) (*usercenterproto.CreateUserReply, error)
- func (server *Server) GetUserByUID(ctx context.Context, req *usercenterproto.GetUserByUIDRequest) (*usercenterproto.GetUserByUIDReply, error)
- func (server *Server) GetUserByUsername(ctx context.Context, req *usercenterproto.GetUserByUsernameRequest) (*usercenterproto.GetUserByUsernameReply, error)
- func (server *Server) SearchUser(ctx context.Context, req *usercenterproto.SearchUserRequest) (*usercenterproto.SearchUserReply, error)
- func (server *Server) ValidatePassword(ctx context.Context, req *usercenterproto.ValidatePasswordRequest) (*usercenterproto.ValidatePasswordReply, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { usercenterproto.UnimplementedUserCenterServer // contains filtered or unexported fields }
func NewServer ¶
func NewServer(userService service.UserService) *Server
func (*Server) CreateUser ¶
func (server *Server) CreateUser(ctx context.Context, req *usercenterproto.CreateUserRequest) (*usercenterproto.CreateUserReply, error)
func (*Server) GetUserByUID ¶
func (server *Server) GetUserByUID(ctx context.Context, req *usercenterproto.GetUserByUIDRequest) (*usercenterproto.GetUserByUIDReply, error)
func (*Server) GetUserByUsername ¶
func (server *Server) GetUserByUsername(ctx context.Context, req *usercenterproto.GetUserByUsernameRequest) (*usercenterproto.GetUserByUsernameReply, error)
func (*Server) SearchUser ¶
func (server *Server) SearchUser(ctx context.Context, req *usercenterproto.SearchUserRequest) (*usercenterproto.SearchUserReply, error)
func (*Server) ValidatePassword ¶
func (server *Server) ValidatePassword(ctx context.Context, req *usercenterproto.ValidatePasswordRequest) (*usercenterproto.ValidatePasswordReply, error)
Click to show internal directories.
Click to hide internal directories.