Skip to content

Commit fb97624

Browse files
arschlesAaron Schlesinger
authored andcommitted
fix(boot.go): extract config to sshd package
1 parent f51480c commit fb97624

2 files changed

Lines changed: 7 additions & 6 deletions

File tree

boot.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ func init() {
1414
runtime.GOMAXPROCS(runtime.NumCPU())
1515
}
1616

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-
2317
func main() {
2418
var conf Config
2519
if err := envconfig.Process("builder", &conf); err != nil {

pkg/sshd/config.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)