func NewConnector(conRes connector.Resources) tcp.Connector {
	connect := func(
		clientConn net.Conn,
		credentialValuesByID connector.CredentialValuesByID,
	) (backendConn net.Conn, err error) {
		singleUseConnector := &SingleUseConnector{
			logger: conRes.Logger(),
		}
		return singleUseConnector.Connect(clientConn, credentialValuesByID)
	}
	return tcp.ConnectorFunc(connect)
}
/*
NewConnector returns a tcp.Connector which returns an authenticated connection
to a target service for each incoming client connection. It is a required
method on the tcp.Plugin interface. The single argument passed in is of type
connector.Resources. It contains connector-specific config and a logger.
package mysql
import (
	"net"
	"github.com/cyberark/secretless-broker/pkg/secretless/plugin/connector"
	"github.com/cyberark/secretless-broker/pkg/secretless/plugin/connector/tcp"
)