Documentation ¶
Index ¶
- type LoginReq
- type ObservabilityHandler
- type Page
- type Result
- type SignUpReq
- type UserHandler
- func (c *UserHandler) Edit(ctx *gin.Context)
- func (c *UserHandler) Login(ctx *gin.Context)
- func (c *UserHandler) LoginJWT(ctx *gin.Context, req LoginReq) (ginx.Result, error)
- func (c *UserHandler) Logout(ctx *gin.Context)
- func (c *UserHandler) Profile(ctx *gin.Context)
- func (c *UserHandler) ProfileJWT(ctx *gin.Context)
- func (c *UserHandler) RefreshToken(ctx *gin.Context)
- func (c *UserHandler) RegisterRoutes(server *gin.Engine)
- func (c *UserHandler) SignUp(ctx *gin.Context, req SignUpReq) (ginx.Result, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObservabilityHandler ¶
type ObservabilityHandler struct { }
ObservabilityHandler 用于演示可观测性的 Handler
func NewObservabilityHandler ¶
func NewObservabilityHandler() *ObservabilityHandler
func (*ObservabilityHandler) Random ¶
func (o *ObservabilityHandler) Random(ctx *gin.Context)
func (*ObservabilityHandler) RegisterRoutes ¶
func (o *ObservabilityHandler) RegisterRoutes(s *gin.Engine)
type UserHandler ¶
func NewUserHandler ¶
func NewUserHandler(svc userv1.UserServiceClient, jwthdl jwt3.Handler) *UserHandler
func (*UserHandler) Logout ¶
func (c *UserHandler) Logout(ctx *gin.Context)
func (*UserHandler) ProfileJWT ¶
func (c *UserHandler) ProfileJWT(ctx *gin.Context)
ProfileJWT 用户详情, JWT 版本
func (*UserHandler) RefreshToken ¶
func (c *UserHandler) RefreshToken(ctx *gin.Context)
func (*UserHandler) RegisterRoutes ¶
func (c *UserHandler) RegisterRoutes(server *gin.Engine)
Click to show internal directories.
Click to hide internal directories.