g

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

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

Variables

View Source
var (
	Debug  bool // 是否开启debug模式
	Config HdConfig
)

Functions

This section is empty.

Types

type AppConfig added in v0.1.2

type AppConfig struct {
	Name         string         `toml:"name"`
	ExternalPort int            `toml:"external_port"`
	Repo         string         `toml:"repo"`
	Protocol     string         `toml:"protocol"`
	Plugins      []PluginConfig `toml:"plugins"`
}

type DaprConfig added in v0.1.2

type DaprConfig struct {
	PortStart              int    `toml:"port_start"`
	PortEnd                int    `toml:"port_end"`
	AppProtocol            string `toml:"app_protocol"`
	ConfigPath             string `toml:"config_path"`
	ResourcePath           string `toml:"resource_path"`
	SchedulerHostAddress   string `toml:"scheduler_host_address"`
	PlacementHostAddress   string `toml:"placement_host_address"`
	DisableAppHealthCheck  bool   `toml:"disable_app_health_check"`
	AppHealthProbeInterval int    `toml:"app_health_probe_interval"`
}

type HdConfig added in v0.1.2

type HdConfig struct {
	Project ProjectConfig      `toml:"project"`
	Apps    []AppConfig        `toml:"apps"` // 应用启动顺序
	Repos   []RepositoryConfig `toml:"repos"`
	Tools   []ToolConfig       `toml:"tools"`
	Dapr    DaprConfig         `toml:"dapr"`
}

type PluginConfig added in v0.0.6

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

type ProjectConfig

type ProjectConfig struct {
	Name string   `toml:"name"`
	Env  string   `toml:"env"`
	Apps []string `toml:"apps"`
}

type RepositoryConfig added in v0.1.2

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

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