From efb779084b480808c9699e06b7614e500031a9c7 Mon Sep 17 00:00:00 2001 From: danehans Date: Mon, 1 Aug 2022 09:58:36 -0700 Subject: [PATCH] Pluralizes Listener Ports of Proxy Infra IR Signed-off-by: danehans --- internal/ir/infra.go | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/internal/ir/infra.go b/internal/ir/infra.go index 07ff8b3477c..9337670d5a7 100644 --- a/internal/ir/infra.go +++ b/internal/ir/infra.go @@ -29,10 +29,16 @@ type ProxyInfra struct { // ProxyListener defines the listener configuration of the proxy infrastructure. type ProxyListener struct { - // Name is the name of the listener. - Name string // Address is the address that the listener should listen on. Address string - // Port is the network port that the listener should listen on. + // Ports define network ports of the listener. + Ports []ListenerPort +} + +// ListenerPort defines a network port of a listener. +type ListenerPort struct { + // Name is the name of the listener port. + Name string + // Port is the port number to listen on. Port int32 }