uniugm/admin/lib/node/node_flags.go
2025-04-18 17:17:23 +08:00

11 lines
689 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package node
var GlobalBootFlags = &CommonBootFlags{}
type CommonBootFlags struct {
NodeID string `env:"node_id" desc:"【必填】节点id进程id分布式环境下唯一标识没指定就是随机、k8s环境下用pod名字作为id"`
ServiceName string `env:"service_name" desc:"【可选】节点服务名标识节点服务种类例如game、login用于rpc服务名调用、日志服务种类输出等"`
TracePort string `env:"trace_port" default:"7788" desc:"监控服务端口暴露prometheus指标、pprof采集等"`
BootConfig string `env:"boot_config" default:"config/boot.yaml" desc:"启动配置文件路径,默认\"config/boot.yaml\""`
}