Documentation ¶
Index ¶
- type UserController
- func (ctrl *UserController) ChangePassword(c *gin.Context)
- func (ctrl *UserController) Create(c *gin.Context)
- func (ctrl *UserController) Delete(c *gin.Context)
- func (ctrl *UserController) Get(c *gin.Context)
- func (ctrl *UserController) List(c *gin.Context)
- func (ctrl *UserController) ListUsers(ctx context.Context, r *pb.ListUsersRequest) (*pb.ListUsersResponse, error)
- func (ctrl *UserController) Login(c *gin.Context)
- func (ctrl *UserController) Update(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserController ¶
type UserController struct { pb.UnimplementedDazBlogServer // contains filtered or unexported fields }
func NewUserController ¶
func NewUserController(ds store.IStore, a *auth.Authz) *UserController
func (*UserController) ChangePassword ¶
func (ctrl *UserController) ChangePassword(c *gin.Context)
func (*UserController) Create ¶
func (ctrl *UserController) Create(c *gin.Context)
Create a new user account.
func (*UserController) Delete ¶
func (ctrl *UserController) Delete(c *gin.Context)
func (*UserController) List ¶
func (ctrl *UserController) List(c *gin.Context)
List return users list, only root user can call this function
func (*UserController) ListUsers ¶
func (ctrl *UserController) ListUsers(ctx context.Context, r *pb.ListUsersRequest) (*pb.ListUsersResponse, error)
ListUsers return users list for gRPC
func (*UserController) Login ¶
func (ctrl *UserController) Login(c *gin.Context)
func (*UserController) Update ¶
func (ctrl *UserController) Update(c *gin.Context)
Click to show internal directories.
Click to hide internal directories.