{"action":"created","issue":{"url":"https://api.github.com/repos/colinmarc/hdfs/issues/114","repository_url":"https://api.github.com/repos/colinmarc/hdfs","labels_url":"https://api.github.com/repos/colinmarc/hdfs/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/colinmarc/hdfs/issues/114/comments","events_url":"https://api.github.com/repos/colinmarc/hdfs/issues/114/events","html_url":"https://github.com/colinmarc/hdfs/pull/114","id":321909381,"node_id":"MDExOlB1bGxSZXF1ZXN0MTg3MTc1ODM3","number":114,"title":"Lazily create namenode connection","user":{"login":"afking","id":3036610,"node_id":"MDQ6VXNlcjMwMzY2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/3036610?v=4","gravatar_id":"","url":"https://api.github.com/users/afking","html_url":"https://github.com/afking","followers_url":"https://api.github.com/users/afking/followers","following_url":"https://api.github.com/users/afking/following{/other_user}","gists_url":"https://api.github.com/users/afking/gists{/gist_id}","starred_url":"https://api.github.com/users/afking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afking/subscriptions","organizations_url":"https://api.github.com/users/afking/orgs","repos_url":"https://api.github.com/users/afking/repos","events_url":"https://api.github.com/users/afking/events{/privacy}","received_events_url":"https://api.github.com/users/afking/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-10T12:09:56Z","updated_at":"2018-08-01T13:13:29Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/colinmarc/hdfs/pulls/114","html_url":"https://github.com/colinmarc/hdfs/pull/114","diff_url":"https://github.com/colinmarc/hdfs/pull/114.diff","patch_url":"https://github.com/colinmarc/hdfs/pull/114.patch"},"body":"This allows the NamenodeConnection to be created without performing the initial handshake."},"comment":{"url":"https://api.github.com/repos/colinmarc/hdfs/issues/comments/409569913","html_url":"https://github.com/colinmarc/hdfs/pull/114#issuecomment-409569913","issue_url":"https://api.github.com/repos/colinmarc/hdfs/issues/114","id":409569913,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTU2OTkxMw==","user":{"login":"afking","id":3036610,"node_id":"MDQ6VXNlcjMwMzY2MTA=","avatar_url":"https://avatars3.githubusercontent.com/u/3036610?v=4","gravatar_id":"","url":"https://api.github.com/users/afking","html_url":"https://github.com/afking","followers_url":"https://api.github.com/users/afking/followers","following_url":"https://api.github.com/users/afking/following{/other_user}","gists_url":"https://api.github.com/users/afking/gists{/gist_id}","starred_url":"https://api.github.com/users/afking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afking/subscriptions","organizations_url":"https://api.github.com/users/afking/orgs","repos_url":"https://api.github.com/users/afking/repos","events_url":"https://api.github.com/users/afking/events{/privacy}","received_events_url":"https://api.github.com/users/afking/received_events","type":"User","site_admin":false},"created_at":"2018-08-01T13:13:29Z","updated_at":"2018-08-01T13:13:29Z","author_association":"CONTRIBUTOR","body":"Could use a constructor but then each call to HDFS becomes rather verbose:\r\n```\r\nclient, err := l.Get()\r\nif err != nil\r\n   return err\r\n}\r\n\r\nresp, err := client.DoRequest(...)\r\nif err != nil {\r\n    return err\r\n}\r\n```\r\nWhat about wrapping the handshake in a `Ping()` function and just validating the arguments on creation: https://golang.org/pkg/database/sql/#Open ?"}}
{"actor":{"display_login":"afking"}}