Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pluralizes Listener Ports of Proxy Infra IR #183

Merged
merged 1 commit into from
Aug 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions internal/ir/infra.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}