config

package
v0.0.0-...-94effb4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Server配置
	Server ServerConfig

	// Sandbox配置
	Sandbox SandboxConfig
}

Config 应用配置

func Get

func Get() *Config

Get 获取全局配置

func Load

func Load() (*Config, error)

Load 加载配置

type SandboxConfig

type SandboxConfig struct {
	Timeout int // 超时时间(秒)
}

SandboxConfig 沙箱配置

type ServerConfig

type ServerConfig struct {
	Host string
	Port string
}

ServerConfig 服务器配置

Jump to

Keyboard shortcuts

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