-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtelemetry_config.go
More file actions
31 lines (27 loc) · 795 Bytes
/
Copy pathtelemetry_config.go
File metadata and controls
31 lines (27 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package acctelemetry
type accTelemetryConfig struct {
EnableUdp bool
UdpIpPort string
UdpConnectionPassword string
udpCommandPassword string
udpDisplayName string
udpRealtimeUpdateIntervalMS int32
}
func DefaultConfig() *accTelemetryConfig {
return &accTelemetryConfig{
EnableUdp: false,
}
}
func DefaultUdpConfig() *accTelemetryConfig {
return UdpConfig("127.0.0.1:9000", "asd")
}
func UdpConfig(ipPort string, password string) *accTelemetryConfig {
return &accTelemetryConfig{
EnableUdp: true,
UdpIpPort: ipPort,
UdpConnectionPassword: password,
udpCommandPassword: "",
udpDisplayName: "RaceMate",
udpRealtimeUpdateIntervalMS: 100,
}
}