Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DifySandboxGlobalConfigurations ¶
type DifySandboxGlobalConfigurations struct { App struct { Port int `yaml:"port"` Debug bool `yaml:"debug"` Key string `yaml:"key"` } `yaml:"app"` MaxWorkers int `yaml:"max_workers"` MaxRequests int `yaml:"max_requests"` WorkerTimeout int `yaml:"worker_timeout"` PythonPath string `yaml:"python_path"` PythonLibPaths []string `yaml:"python_lib_path"` PythonPipMirrorURL string `yaml:"python_pip_mirror_url"` PythonDepsUpdateInterval string `yaml:"python_deps_update_interval"` NodejsPath string `yaml:"nodejs_path"` EnableNetwork bool `yaml:"enable_network"` EnablePreload bool `yaml:"enable_preload"` AllowedSyscalls []int `yaml:"allowed_syscalls"` Proxy struct { Socks5 string `yaml:"socks5"` Https string `yaml:"https"` Http string `yaml:"http"` } `yaml:"proxy"` }
type DifySandboxResponse ¶
type DifySandboxResponse struct { // Code is the code of the response Code int `json:"code"` // Message is the message of the response Message string `json:"message"` // Data is the data of the response Data interface{} `json:"data"` }
func ErrorResponse ¶
func ErrorResponse(code int, message string) *DifySandboxResponse
func SuccessResponse ¶
func SuccessResponse(data interface{}) *DifySandboxResponse
Click to show internal directories.
Click to hide internal directories.