mirror of
https://github.com/langgenius/dify-plugin-daemon.git
synced 2026-07-23 10:15:22 -04:00
26 lines
618 B
Go
26 lines
618 B
Go
package service
|
|
|
|
import (
|
|
"github.com/langgenius/dify-plugin-daemon/internal/core/plugin_manager/debugging_runtime"
|
|
"github.com/langgenius/dify-plugin-daemon/internal/types/exception"
|
|
"github.com/langgenius/dify-plugin-daemon/pkg/entities"
|
|
)
|
|
|
|
func GetRemoteDebuggingKey(tenant_id string) *entities.Response {
|
|
type response struct {
|
|
Key string `json:"key"`
|
|
}
|
|
|
|
key, err := debugging_runtime.GetConnectionKey(debugging_runtime.ConnectionInfo{
|
|
TenantId: tenant_id,
|
|
})
|
|
|
|
if err != nil {
|
|
return exception.InternalServerError(err).ToResponse()
|
|
}
|
|
|
|
return entities.NewSuccessResponse(response{
|
|
Key: key,
|
|
})
|
|
}
|