Configuration Reference
Complete configuration reference for go-zero services, covering how configuration loading works, YAML field references, and per-component settings.
Contents
Section titled “Contents”- Configuration Overview — How
conf.MustLoadworks, supported formats, environment variables, tag rules, and config inheritance - API Service Configuration — HTTP service configuration (
rest.RestConf) - RPC Service Configuration — gRPC service configuration (
zrpc.RpcServerConf/zrpc.RpcClientConf) - Service Configuration — Base service configuration shared by all service types (
service.ServiceConf) - Log Configuration — Structured logging settings (
logx.LogConf) - Config Auto-Validation — Validate configuration on startup via the
Validatorinterface