g

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	App                = "hd"
	ConfigFile         = "hd.toml"
	DefaultGatewayPort = 1000
)

Variables

View Source
var (
	Debug       bool // 是否开启debug模式
	Config      = &RootConfig{}
	ToolConfigs = map[string]ToolConfig{}
	RepoConfigs = map[string]RepoConfig{}
)

Functions

This section is empty.

Types

type ProjectConfig

type ProjectConfig struct {
	Name        string   `toml:"name"`
	Env         string   `toml:"env"`
	GatewayPort int      `toml:"gateway_port"`
	Apps        []string `toml:"apps"` // 应用启动顺序
}

type RepoConfig

type RepoConfig struct {
	Name string `toml:"name"`
	Url  string `toml:"url"`
}

type RootConfig

type RootConfig struct {
	Project ProjectConfig `toml:"project"`
	Repos   []RepoConfig  `toml:"repos"`
	Tools   []ToolConfig  `toml:"tools"`
}

type ToolConfig

type ToolConfig struct {
	Name            string `toml:"name"`
	Version         string `toml:"version"`
	UrlWinRelease   string `toml:"url_win_release"`
	UrlLinuxRelease string `toml:"url_linux_release"`
}

Jump to

Keyboard shortcuts

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