remove all "omitempty" from config structs to bring back full configuration file documentation
This commit is contained in:
@@ -12,18 +12,18 @@ type Config struct {
|
||||
|
||||
Service Service `yaml:"-"`
|
||||
|
||||
Log *Log `yaml:"log,omitempty"`
|
||||
Debug Debug `yaml:"debug,omitempty"`
|
||||
Log *Log `yaml:"log"`
|
||||
Debug Debug `yaml:"debug"`
|
||||
|
||||
Nats Nats `ociConfig:"nats,omitempty"`
|
||||
Nats Nats `ociConfig:"nats"`
|
||||
|
||||
Context context.Context `yaml:"-"`
|
||||
}
|
||||
|
||||
// Nats is the nats config
|
||||
type Nats struct {
|
||||
Host string `yaml:"host,omitempty" env:"NATS_NATS_HOST"`
|
||||
Port int `yaml:"port,omitempty" env:"NATS_NATS_PORT"`
|
||||
ClusterID string `yaml:"clusterid,omitempty" env:"NATS_NATS_CLUSTER_ID"`
|
||||
StoreDir string `yaml:"store_dir,omitempty" env:"NATS_NATS_STORE_DIR"`
|
||||
Host string `yaml:"host" env:"NATS_NATS_HOST"`
|
||||
Port int `yaml:"port" env:"NATS_NATS_PORT"`
|
||||
ClusterID string `yaml:"clusterid" env:"NATS_NATS_CLUSTER_ID"`
|
||||
StoreDir string `yaml:"store_dir" env:"NATS_NATS_STORE_DIR"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user