chore: wiring startup with the flow [IN PROGRESS]

This commit is contained in:
braginini
2021-04-14 17:08:35 +02:00
parent 675358ce5c
commit cb60efef8d
6 changed files with 156 additions and 81 deletions

18
cmd/config.go Normal file
View File

@@ -0,0 +1,18 @@
package cmd
import "golang.zx2c4.com/wireguard/wgctrl/wgtypes"
type Config struct {
// Wireguard private key of local peer
PrivateKey wgtypes.Key
// configured remote peers (Wireguard public keys)
Peers []string
StunURL string
TurnURL string
TurnUser string
TurnPwd string
// host:port of the signal server
SignalAddr string
WgAddr string
WgIface string
}