Documentation
¶
Index ¶
- type CreateRequest
- type Handler
- func (h *Handler) Create(c *gin.Context)
- func (h *Handler) Delete(c *gin.Context)
- func (h *Handler) Disable(c *gin.Context)
- func (h *Handler) Duplicate(c *gin.Context)
- func (h *Handler) Enable(c *gin.Context)
- func (h *Handler) List(c *gin.Context)
- func (h *Handler) RegisterRoutes(rt *module.Routes)
- func (h *Handler) Update(c *gin.Context)
- type ListResponse
- type TeamDuplicateRequest
- type TeamInfo
- type UpdateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRequest ¶
type CreateRequest struct {
Name string `json:"name" binding:"required"`
}
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) Duplicate ¶ added in v1.261105.1
Duplicate creates a team as a copy of :team_id: same routing, no sharing keys. The name is optional.
func (*Handler) RegisterRoutes ¶ added in v1.261002.1
type ListResponse ¶
type ListResponse struct {
Teams []TeamInfo `json:"teams"`
}
type TeamDuplicateRequest ¶ added in v1.261105.1
type TeamDuplicateRequest struct {
Name string `json:"name,omitempty" example:"Research copy"`
}
TeamDuplicateRequest names the copy; empty picks a free "<name> copy".
type UpdateRequest ¶
type UpdateRequest struct {
Name string `json:"name" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.