Skip to content

Commit 29d31ba

Browse files
author
Lenny Goodell
authored
refactor: Update profiles for change to use common Service config section (edgexfoundry#263)
* refactor: Update profiles for change to use common Service config section closes edgexfoundry#260 BREAKING CHANGE: Service configuration in all profiles has changed. Signed-off-by: lenny <leonard.goodell@intel.com>
1 parent 8ac7400 commit 29d31ba

File tree

7 files changed

+37
-43
lines changed

7 files changed

+37
-43
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/edgexfoundry/app-service-configurable
22

33
go 1.16
44

5-
require github.com/edgexfoundry/app-functions-sdk-go/v2 v2.0.0-dev.60
5+
require github.com/edgexfoundry/app-functions-sdk-go/v2 v2.0.0-dev.65

res/functional-tests/configuration.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,14 @@ LogLevel = "INFO"
6262
PersistOnError = "false"
6363

6464
[Service]
65-
BootTimeout = "30s"
66-
CheckInterval = "10s"
65+
HealthCheckInterval = "10s"
6766
Host = "localhost"
68-
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
6967
Port = 59705
70-
Protocol = "http"
71-
ReadMaxLimit = 100
72-
StartupMsg = "Configurable Application Service Started"
73-
Timeout = "5s"
68+
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
69+
StartupMsg = "app-functional-tests Service Started"
70+
MaxResultCount = 0 # Not curently used by App Services.
71+
MaxRequestSize = 0 # Not curently used by App Services.
72+
RequestTimeout = "5s"
7473

7574
[Registry]
7675
Host = "localhost"

res/http-export/configuration.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,14 @@
7070
headervalue = "<put your value here>"
7171

7272
[Service]
73-
BootTimeout = "30s"
74-
CheckInterval = "10s"
73+
HealthCheckInterval = "10s"
7574
Host = "localhost"
76-
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
7775
Port = 59704
78-
Protocol = "http"
79-
ReadMaxLimit = 100
80-
StartupMsg = "AppServiceConfigurable-http-export has Started"
81-
Timeout = "5s"
76+
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
77+
StartupMsg = "app-http-export has Started"
78+
MaxResultCount = 0 # Not curently used by App Services.
79+
MaxRequestSize = 0 # Not curently used by App Services.
80+
RequestTimeout = "5s"
8281

8382
[Registry]
8483
Host = "localhost"

res/mqtt-export/configuration.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,14 @@ LogLevel = "INFO"
7676
clientkey = ""
7777

7878
[Service]
79-
BootTimeout = "30s"
80-
CheckInterval = "10s"
79+
HealthCheckInterval = "10s"
8180
Host = "localhost"
82-
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
8381
Port = 59703
84-
Protocol = "http"
85-
ReadMaxLimit = 100
86-
StartupMsg = "AppServiceConfigurable-mqtt-export has Started"
87-
Timeout = "5s"
82+
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
83+
StartupMsg = "app-mqtt-export has Started"
84+
MaxResultCount = 0 # Not curently used by App Services.
85+
MaxRequestSize = 0 # Not curently used by App Services.
86+
RequestTimeout = "5s"
8887

8988
[Registry]
9089
Host = "localhost"

res/push-to-core/configuration.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ LogLevel = "INFO"
1010
ReadingName = ""
1111

1212
[Service]
13-
BootTimeout = "30s"
14-
CheckInterval = "10s"
13+
HealthCheckInterval = "10s"
1514
Host = "localhost"
16-
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
1715
Port = 59702
18-
Protocol = "http"
19-
ReadMaxLimit = 100
20-
StartupMsg = "Configurable Application Service Started"
21-
Timeout = "5s"
16+
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
17+
StartupMsg = "app-push-to-core has Started"
18+
MaxResultCount = 0 # Not curently used by App Services.
19+
MaxRequestSize = 0 # Not curently used by App Services.
20+
RequestTimeout = "5s"
2221

2322
[Registry]
2423
Host = "localhost"

res/rules-engine/configuration.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ LogLevel = "INFO"
3131
password = ""
3232

3333
[Service]
34-
BootTimeout = "30s"
35-
CheckInterval = "10s"
34+
HealthCheckInterval = "10s"
3635
Host = "localhost"
37-
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
3836
Port = 59701
39-
Protocol = "http"
40-
ReadMaxLimit = 100
41-
StartupMsg = "App Service for rules engine has Started"
42-
Timeout = "5s"
37+
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
38+
StartupMsg = "app-rules-engine has Started"
39+
MaxResultCount = 0 # Not curently used by App Services.
40+
MaxRequestSize = 0 # Not curently used by App Services.
41+
RequestTimeout = "5s"
4342

4443
[Registry]
4544
Host = "localhost"

res/sample/configuration.toml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,14 @@ LogLevel = "INFO"
118118
key = "aquqweoruqwpeoruqwpoeruqwpoierupqoweiurpoqwiuerpqowieurqpowieurpoqiweuroipwqure"
119119

120120
[Service]
121-
BootTimeout = "30s"
122-
CheckInterval = "10s"
121+
HealthCheckInterval = "10s"
123122
Host = "localhost"
124-
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
125123
Port = 59700
126-
Protocol = "http"
127-
ReadMaxLimit = 100
128-
StartupMsg = "Sample Configurable Application Service Started"
129-
Timeout = "5s"
124+
ServerBindAddr = "" # if blank, uses default Go behavior https://golang.org/pkg/net/#Listen
125+
StartupMsg = "app-sample has Started"
126+
MaxResultCount = 0 # Not curently used by App Services.
127+
MaxRequestSize = 0 # Not curently used by App Services.
128+
RequestTimeout = "5s"
130129

131130
[Registry]
132131
Host = "localhost"

0 commit comments

Comments
 (0)