config: support multiple destination addresses (#1789)

* config: support multiple destination addresses

* use constructor for string slice

* add docs

* add test for multiple destinations

* fix name
This commit is contained in:
Caleb Doxsey 2021-01-20 15:18:24 -07:00 committed by GitHub
parent c6b6141d12
commit a4c7381eba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 556 additions and 191 deletions

View file

@ -50,7 +50,7 @@ func TestConfigSource(t *testing.T) {
Routes: []*configpb.Route{
{
From: "https://from.example.com",
To: "https://to.example.com",
To: []string{"https://to.example.com"},
},
},
})