Documentation
¶
Index ¶
- func AdminAuthMiddleware() gin.HandlerFunc
- func HandleRuntimeConfig(c *gin.Context)
- type Chat
- func (h *Chat) HandleDefaultLLMProviders(c *gin.Context)
- func (h *Chat) HandleDeleteChatSession(c *gin.Context)
- func (h *Chat) HandleGetChatMessages(c *gin.Context)
- func (h *Chat) HandleGetChatSessions(c *gin.Context)
- func (h *Chat) HandleSaveChatMessage(c *gin.Context)
- func (h *Chat) HandleUpdateChatSessionTitle(c *gin.Context)
- type Handler
- func (h *Handler) ChangePassword(c *gin.Context)
- func (h *Handler) CreateTenant(c *gin.Context)
- func (h *Handler) CreateUser(c *gin.Context)
- func (h *Handler) DeleteTenant(c *gin.Context)
- func (h *Handler) DeleteUser(c *gin.Context)
- func (h *Handler) GetTenantInfo(c *gin.Context)
- func (h *Handler) GetUserInfo(c *gin.Context)
- func (h *Handler) GetUserWithTenants(c *gin.Context)
- func (h *Handler) ListTenants(c *gin.Context)
- func (h *Handler) ListUsers(c *gin.Context)
- func (h *Handler) Login(c *gin.Context)
- func (h *Handler) UpdateTenant(c *gin.Context)
- func (h *Handler) UpdateUser(c *gin.Context)
- func (h *Handler) UpdateUserTenants(c *gin.Context)
- type MCP
- func (h *MCP) HandleGetConfigNames(c *gin.Context)
- func (h *MCP) HandleGetConfigVersions(c *gin.Context)
- func (h *MCP) HandleListMCPServers(c *gin.Context)
- func (h *MCP) HandleMCPServerCreate(c *gin.Context)
- func (h *MCP) HandleMCPServerDelete(c *gin.Context)
- func (h *MCP) HandleMCPServerSync(c *gin.Context)
- func (h *MCP) HandleMCPServerUpdate(c *gin.Context)
- func (h *MCP) HandleSetActiveVersion(c *gin.Context)
- type OpenAPI
- type SystemPrompt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AdminAuthMiddleware ¶
func AdminAuthMiddleware() gin.HandlerFunc
AdminAuthMiddleware creates a middleware that checks if the user has admin role
func HandleRuntimeConfig ¶ added in v0.8.1
HandleRuntimeConfig serves frontend runtime config as JSON
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) HandleDefaultLLMProviders ¶ added in v0.8.3
HandleDefaultLLMProviders returns only the default LLM provider from ENV in the required format
func (*Chat) HandleDeleteChatSession ¶
HandleDeleteChatSession handles the deletion of a chat session
func (*Chat) HandleGetChatMessages ¶
func (*Chat) HandleGetChatSessions ¶
func (*Chat) HandleSaveChatMessage ¶ added in v0.8.0
HandleSaveChatMessage handles saving a chat message
func (*Chat) HandleUpdateChatSessionTitle ¶
HandleUpdateChatSessionTitle handles updating the title of a chat session
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler represents the authentication handler
func NewHandler ¶
func NewHandler(db database.Database, jwtService *jwt.Service, cfg *config.MCPGatewayConfig, logger *zap.Logger) *Handler
NewHandler creates a new authentication handler
func (*Handler) ChangePassword ¶
ChangePassword handles password change requests
func (*Handler) CreateTenant ¶
CreateTenant handles tenant creation
func (*Handler) CreateUser ¶
CreateUser handles user creation
func (*Handler) DeleteTenant ¶
DeleteTenant handles tenant deletion
func (*Handler) DeleteUser ¶
DeleteUser handles user deletion
func (*Handler) GetTenantInfo ¶
GetTenantInfo handles getting tenant info by name
func (*Handler) GetUserInfo ¶
GetUserInfo handles getting current user info
func (*Handler) GetUserWithTenants ¶
GetUserWithTenants gets a user with their associated tenants
func (*Handler) ListTenants ¶
ListTenants handles listing all tenants
func (*Handler) UpdateTenant ¶
UpdateTenant handles tenant updates
func (*Handler) UpdateUser ¶
UpdateUser handles user updates
func (*Handler) UpdateUserTenants ¶
UpdateUserTenants updates the tenant associations for a user
type MCP ¶
type MCP struct {
// contains filtered or unexported fields
}
func (*MCP) HandleGetConfigNames ¶
HandleGetConfigNames handles the request to get all configuration names
func (*MCP) HandleGetConfigVersions ¶
HandleGetConfigVersions handles the request to get configuration versions
func (*MCP) HandleListMCPServers ¶
func (*MCP) HandleMCPServerCreate ¶
func (*MCP) HandleMCPServerDelete ¶
func (*MCP) HandleMCPServerSync ¶
func (*MCP) HandleMCPServerUpdate ¶
func (*MCP) HandleSetActiveVersion ¶
HandleSetActiveVersion handles setting a version as active
type OpenAPI ¶
type OpenAPI struct {
// contains filtered or unexported fields
}
OpenAPI handles OpenAPI related operations
func NewOpenAPI ¶
func NewOpenAPI(db database.Database, store storage.Store, ntf notifier.Notifier, logger *zap.Logger) *OpenAPI
NewOpenAPI creates a new OpenAPI handler
func (*OpenAPI) HandleImport ¶
HandleImport handles OpenAPI import requests
type SystemPrompt ¶ added in v0.8.3
type SystemPrompt struct {
// contains filtered or unexported fields
}
func NewSystemPrompt ¶ added in v0.8.3
func NewSystemPrompt(db database.Database, logger *zap.Logger) *SystemPrompt
func (*SystemPrompt) GetSystemPrompt ¶ added in v0.8.3
func (h *SystemPrompt) GetSystemPrompt(c *gin.Context)
GetSystemPrompt returns the system prompt for the current user
func (*SystemPrompt) SaveSystemPrompt ¶ added in v0.8.3
func (h *SystemPrompt) SaveSystemPrompt(c *gin.Context)
SaveSystemPrompt saves the system prompt for the current user