func SetLoadBalancer(name string) error {
	if _, ok := loadBalancers[strings.ToLower(name)]; !ok {
		return errors.New("load balancer not registered")
	}
	loadBalancer = strings.ToLower(name)
	return nil
}
SetLoadBalancer sets the default load balancer to be used when a player joins the proxy. If the provided
load balancer does not exist, an error is returned.
package session
import (
	"errors"
	"github.com/paroxity/portal/server"
	"strings"
)
var (
	loadBalancers = make(map[string]func(session *Session) *server.Server)
	loadBalancer  string
)
func LoadBalancer() func(session *Session) *server.Server {
	return loadBalancers[loadBalancer]
}
func RegisterLoadBalancer(name string, f func(session *Session) *server.Server) {
	loadBalancers[strings.ToLower(name)] = f
}