We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f51480c commit fb97624Copy full SHA for fb97624
2 files changed
boot.go
@@ -14,12 +14,6 @@ func init() {
14
runtime.GOMAXPROCS(runtime.NumCPU())
15
}
16
17
-type Config struct {
18
- FetcherPort int `envconfig:"fetcher_port"`
19
- SSHHostIP string `envconfig:"ssh_host_ip"`
20
- SSHHostPort int `envconfig:"ssh_host_port"`
21
-}
22
-
23
func main() {
24
var conf Config
25
if err := envconfig.Process("builder", &conf); err != nil {
pkg/sshd/config.go
@@ -0,0 +1,7 @@
1
+package sshd
2
+
3
+type Config struct {
4
+ FetcherPort int `envconfig:"fetcher_port"`
5
+ SSHHostIP string `envconfig:"ssh_host_ip"`
6
+ SSHHostPort int `envconfig:"ssh_host_port"`
7
+}
0 commit comments