func (c *ConnLimit) NewHandler(next http.Handler) (http.Handler, error) {
	extract, err := utils.NewExtractor(c.Variable)
	if err != nil {
		return nil, err
	}
	return connlimit.New(next, extract, c.Connections)
}
Returns vulcan library compatible middleware
package connlimit
import (
	"fmt"
	"net/http"
	"github.com/urfave/cli"
	"github.com/vulcand/oxy/connlimit"
	"github.com/vulcand/oxy/utils"
	"github.com/vulcand/vulcand/plugin"
)
const Type = "connlimit"
func GetSpec() *plugin.MiddlewareSpec {
	return &plugin.MiddlewareSpec{
		Type:      Type,
		FromOther: FromOther,
		FromCli:   FromCli,
		CliFlags:  CliFlags(),
	}
}
type ConnLimit struct {
	Connections int64
	Variable    string  
}