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 ProjectConfig ¶
type RepositoryConfig ¶ added in v0.1.2
Click to show internal directories.
Click to hide internal directories.