Addition of getConnection() method and ES_HOST/ES_PORT env vars in example_test.go