Activity
requested review from @aalimonov_2
assigned to @amefremov1
1 1 package main changed this line in version 3 of the diff
31 func setupApp(cfg *config.Config) { 40 func setupApp(systemConfig *core.SystemConfig, userConfig *config.UserConfig) { 32 41 deviceManager := midiHermophrodite.NewDeviceManager() 33 42 defer deviceManager.Close() 34 43 35 44 agentConf := core.AgentConfiguration{ 36 45 System: &core.SystemConfig{ 37 46 Server: &core.InterfaceConfig{ 38 IP: net.ParseIP(cfg.AppConfig.IPAddr), 39 Port: cfg.AppConfig.Port, 47 IP: systemConfig.Server.IP, 48 Port: systemConfig.Server.Port, 40 49 }, 41 RedisUrl: cfg.RedisConfig.URL, 50 RedisUrl: systemConfig.RedisUrl, 42 51 }, changed this line in version 3 of the diff
21 Port uint16 `json:"port"` 22 } 23 24 type MidiConfig struct { 9 type DeviceConfig struct { 25 10 DeviceName string `json:"device_name"` 26 11 Active bool `json:"active"` 27 12 HoldDelta float64 `json:"hold_delta"` 28 13 } 29 14 30 type Config struct { 31 RedisConfig RedisConfig `json:"redis"` 32 AppConfig AppConfig `json:"app"` 33 MidiConfig []MidiConfig `json:"midi_devices"` 15 type UserConfig struct { 16 MidiDevices []DeviceConfig `json:"midi_devices"` changed this line in version 2 of the diff
added 1 commit
- 8f5fe3d8 - added yaml & json annotations, optimized agent configuration, renamed main directory
mentioned in commit 4f591691