types

package
v0.0.0-...-9681882 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

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

Jump to

Keyboard shortcuts

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