team

package
v1.261026.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2026 License: MPL-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 NewHandler

func NewHandler(store *db.TeamStore) *Handler

func (*Handler) Create

func (h *Handler) Create(c *gin.Context)

func (*Handler) Delete

func (h *Handler) Delete(c *gin.Context)

func (*Handler) Disable

func (h *Handler) Disable(c *gin.Context)

func (*Handler) Enable

func (h *Handler) Enable(c *gin.Context)

func (*Handler) List

func (h *Handler) List(c *gin.Context)

func (*Handler) RegisterRoutes added in v1.261002.1

func (h *Handler) RegisterRoutes(rt *module.Routes)

func (*Handler) Update

func (h *Handler) Update(c *gin.Context)

type ListResponse

type ListResponse struct {
	Teams []TeamInfo `json:"teams"`
}

type TeamInfo

type TeamInfo struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	Slug      string    `json:"slug"`
	Enabled   bool      `json:"enabled"`
	IsDefault bool      `json:"is_default"`
	CreatedAt time.Time `json:"created_at"`
	UpdatedAt time.Time `json:"updated_at"`
}

type UpdateRequest

type UpdateRequest struct {
	Name string `json:"name" binding:"required"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL