g

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 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"`
	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 PluginConfig struct {
	Name string `toml:"name"`
	Repo string `toml:"repo"`
}

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