Configurable background task execution

This commit is contained in:
Lorenzo Bolla
2021-09-08 15:50:54 +02:00
parent bd4c3a246d
commit 9b28d8984f
18 changed files with 427 additions and 214 deletions
+2
View File
@@ -31,6 +31,7 @@ type ConfigStructure struct { // nolint: maligned
S3PublishRoots map[string]S3PublishRoot `json:"S3PublishEndpoints"`
SwiftPublishRoots map[string]SwiftPublishRoot `json:"SwiftPublishEndpoints"`
AzurePublishRoots map[string]AzurePublishRoot `json:"AzurePublishEndpoints"`
AsyncAPI bool `json:"AsyncAPI"`
}
// FileSystemPublishRoot describes single filesystem publishing entry point
@@ -103,6 +104,7 @@ var Config = ConfigStructure{
S3PublishRoots: map[string]S3PublishRoot{},
SwiftPublishRoots: map[string]SwiftPublishRoot{},
AzurePublishRoots: map[string]AzurePublishRoot{},
AsyncAPI: false,
}
// LoadConfig loads configuration from json file
+1
View File
@@ -126,6 +126,7 @@ func (s *ConfigSuite) TestSaveConfig(c *C) {
" \"prefix\": \"\"\n"+
" }\n"+
" }\n"+
" \"AsyncAPI\": false\n"+
"}")
}