Skip to content

Commit c83b7b0

Browse files
authored
Pluralizes Listener Ports of Proxy Infra IR (#183)
Signed-off-by: danehans <[email protected]>
1 parent a1ff4f9 commit c83b7b0

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

internal/ir/infra.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,16 @@ type ProxyInfra struct {
2929

3030
// ProxyListener defines the listener configuration of the proxy infrastructure.
3131
type ProxyListener struct {
32-
// Name is the name of the listener.
33-
Name string
3432
// Address is the address that the listener should listen on.
3533
Address string
36-
// Port is the network port that the listener should listen on.
34+
// Ports define network ports of the listener.
35+
Ports []ListenerPort
36+
}
37+
38+
// ListenerPort defines a network port of a listener.
39+
type ListenerPort struct {
40+
// Name is the name of the listener port.
41+
Name string
42+
// Port is the port number to listen on.
3743
Port int32
3844
}

0 commit comments

Comments
 (0)