You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: hello.go
    path of file: ./repos/ziti/router/handler_edge_ctrl
    
    the code of the file until where you have to start completion: /*
	Copyright NetFoundry Inc.

	Licensed under the Apache License, Version 2.0 (the "License");
	you may not use this file except in compliance with the License.
	You may obtain a copy of the License at

	https://www.apache.org/licenses/LICENSE-2.0

	Unless required by applicable law or agreed to in writing, software
	distributed under the License is distributed on an "AS IS" BASIS,
	WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
	See the License for the specific language governing permissions and
	limitations under the License.
*/

package handler_edge_ctrl

import (
	"strconv"

	"github.com/michaelquigley/pfxlog"
	"g
    
func NewHelloHandler(stateManager fabric.StateManager, listeners []*edge_ctrl_pb.Listener) *helloHandler {
	//supportedProtocols, protocolPorts, and hostname is for backwards compatibility with v0.26.3 and older controllers
	var supportedProtocols []string
	var protocolPorts []string
	hostname := ""

	for _, listener := range listeners {
		pfxlog.Logger().Debugf("HelloHandler will contain supportedProtocols address: %s advertise: %s", listener.Address.Value, listener.Advertise.Value)

		supportedProtocols = append(supportedProtocols, listener.Address.Protocol)
		protocolPorts = append(protocolPorts, strconv.Itoa(int(listener.Advertise.Port)))

		if hostname != "" && hostname != listener.Advertise.Hostname {
			pfxlog.Logger().Warnf("this router is configured to use different hostnames for different edge listeners. If the controller is v0.26.3 or earlier this is not supported. Advertise %s will be used for all protocols", listeners[0].Advertise.Value)
		}

		hostname = listener.Advertise.Hostname
	}

	return &helloHandler{
		listeners:    listeners,
		stateManager: stateManager,

		//v0.26.3 and older used to check and ensure all advertise hostnames were the same which can't be done now
		//with the ability to report multiple advertise protocols on different hostnames
		hostname:           listeners[0].Advertise.Hostname,
		supportedProtocols: supportedProtocols,
		protocolPorts:      protocolPorts,
	}
}