handlers

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BackendResponse added in v0.3.0

type BackendResponse struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

BackendResponse represents backend info in the response

type GroupResponse added in v0.3.0

type GroupResponse struct {
	Name     string            `json:"name"`
	Backends []BackendResponse `json:"backends"`
}

GroupResponse represents a group with its backends

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

func NewHandlers

func NewHandlers(cfg *config.AppConfig, dataStore *store.Store) *Handlers

func (*Handlers) GetBackends

func (h *Handlers) GetBackends(c *gin.Context)

func (*Handlers) GetUserGroups added in v0.3.0

func (h *Handlers) GetUserGroups(c *gin.Context)

GetUserGroups returns the groups a user belongs to along with backend information

type UserGroupsResponse added in v0.3.0

type UserGroupsResponse struct {
	Email  string          `json:"email"`
	Groups []GroupResponse `json:"groups"`
}

UserGroupsResponse represents the response for user groups endpoint

Jump to

Keyboard shortcuts

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