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"`
AppPort int `toml:"app_port"`
AppExposed bool `toml:"app_exposed"`
ExternalPort int `toml:"external_port"` // 外部端口
Repo string `toml:"repo"`
Protocol string `toml:"protocol"`
ConfigRepo string `toml:"config_repo"`
ProtoRepo string `toml:"proto_repo"`
Build *BuildConfig `toml:"build"`
Plugins []*PluginConfig `toml:"plugins"`
Dapr DaprConfig `toml:"dapr"`
}
type BuildConfig ¶ added in v0.1.8
type BuildConfig struct {
PbDir string `toml:"pb_dir"` // protobuf编译后保存的的目录
PbPackage string `toml:"pb_package"` // protobuf编译后生成的包名
UseGRPC bool `toml:"use_grpc"` // 是否使用了GRPC, 需要编译GRPC代码
UseProtobuf bool `toml:"use_protobuf"` // 是否使用了protobuf, 需要编译protobuf文件
UseSQLBoiler bool `toml:"use_sqlboiler"` // 是否使用了sqlboiler, 需要自动生成sqlboiler代码
}
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"`
}
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.