We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9603bea commit b41530cCopy full SHA for b41530c
README.md
@@ -33,11 +33,25 @@ package main
33
34
import (
35
"log"
36
+
37
"github.com/hashicorp/hcl/v2/hclsimple"
38
)
39
40
type Config struct {
- LogLevel string `hcl:"log_level"`
41
+ IOMode string `hcl:"io_mode"`
42
+ Service ServiceConfig `hcl:"service,block"`
43
+}
44
45
+type ServiceConfig struct {
46
+ Protocol string `hcl:"protocol,label"`
47
+ Type string `hcl:"type,label"`
48
+ ListenAddr string `hcl:"listen_addr"`
49
+ Processes []ProcessConfig `hcl:"process,block"`
50
51
52
+type ProcessConfig struct {
53
54
+ Command []string `hcl:"command"`
55
}
56
57
func main() {
0 commit comments