{"action":"created","comment":{"url":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/comments/166602245","pull_request_review_id":94684153,"id":166602245,"diff_hunk":"@@ -28,8 +76,19 @@ func main() {\n \t}\n \tlog.Printf(\"%#v\", r)\n \n-\terr = r.GetEntries(&dumper{})\n+\tg, err := grpc.Dial(*trillianLog, grpc.WithInsecure())\n+\tif err != nil {\n+\t\tlog.Fatalf(\"Failed to dial Trillian Log: %v\", err)\n+\t}\n+\n+\ttc := trillian.NewTrillianLogClient(g)\n+\n+\td := &dumper{tc: tc, ctx: context.Background(), logId: *logId}\n+\terr = r.GetEntries(d)","path":"registers/dump/main.go","position":85,"original_position":85,"commit_id":"942f22d4a95d44c7a7a3b2fd468b36f5070c1f33","original_commit_id":"942f22d4a95d44c7a7a3b2fd468b36f5070c1f33","user":{"login":"AlCutter","id":7648032,"avatar_url":"https://avatars0.githubusercontent.com/u/7648032?v=4","gravatar_id":"","url":"https://api.github.com/users/AlCutter","html_url":"https://github.com/AlCutter","followers_url":"https://api.github.com/users/AlCutter/followers","following_url":"https://api.github.com/users/AlCutter/following{/other_user}","gists_url":"https://api.github.com/users/AlCutter/gists{/gist_id}","starred_url":"https://api.github.com/users/AlCutter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlCutter/subscriptions","organizations_url":"https://api.github.com/users/AlCutter/orgs","repos_url":"https://api.github.com/users/AlCutter/repos","events_url":"https://api.github.com/users/AlCutter/events{/privacy}","received_events_url":"https://api.github.com/users/AlCutter/received_events","type":"User","site_admin":false},"body":"`GetEntries` probably wants a `Context` passing in, I'd imagine?","created_at":"2018-02-07T12:27:13Z","updated_at":"2018-02-07T12:27:22Z","html_url":"https://github.com/benlaurie/trillian-examples/pull/2#discussion_r166602245","pull_request_url":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/comments/166602245"},"html":{"href":"https://github.com/benlaurie/trillian-examples/pull/2#discussion_r166602245"},"pull_request":{"href":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/2","id":167668325,"html_url":"https://github.com/benlaurie/trillian-examples/pull/2","diff_url":"https://github.com/benlaurie/trillian-examples/pull/2.diff","patch_url":"https://github.com/benlaurie/trillian-examples/pull/2.patch","issue_url":"https://api.github.com/repos/benlaurie/trillian-examples/issues/2","number":2,"state":"open","locked":false,"title":"Start logging.","user":{"login":"benlaurie","id":40044,"avatar_url":"https://avatars0.githubusercontent.com/u/40044?v=4","gravatar_id":"","url":"https://api.github.com/users/benlaurie","html_url":"https://github.com/benlaurie","followers_url":"https://api.github.com/users/benlaurie/followers","following_url":"https://api.github.com/users/benlaurie/following{/other_user}","gists_url":"https://api.github.com/users/benlaurie/gists{/gist_id}","starred_url":"https://api.github.com/users/benlaurie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlaurie/subscriptions","organizations_url":"https://api.github.com/users/benlaurie/orgs","repos_url":"https://api.github.com/users/benlaurie/repos","events_url":"https://api.github.com/users/benlaurie/events{/privacy}","received_events_url":"https://api.github.com/users/benlaurie/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-07T11:35:15Z","updated_at":"2018-02-07T12:27:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"33f0f8a9b53131a3997b49a8fb82c2fd8250a78a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/2/commits","review_comments_url":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/2/comments","review_comment_url":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/benlaurie/trillian-examples/issues/2/comments","statuses_url":"https://api.github.com/repos/benlaurie/trillian-examples/statuses/942f22d4a95d44c7a7a3b2fd468b36f5070c1f33","head":{"label":"benlaurie:register-2","ref":"register-2","sha":"942f22d4a95d44c7a7a3b2fd468b36f5070c1f33","user":{"login":"benlaurie","id":40044,"avatar_url":"https://avatars0.githubusercontent.com/u/40044?v=4","gravatar_id":"","url":"https://api.github.com/users/benlaurie","html_url":"https://github.com/benlaurie","followers_url":"https://api.github.com/users/benlaurie/followers","following_url":"https://api.github.com/users/benlaurie/following{/other_user}","gists_url":"https://api.github.com/users/benlaurie/gists{/gist_id}","starred_url":"https://api.github.com/users/benlaurie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlaurie/subscriptions","organizations_url":"https://api.github.com/users/benlaurie/orgs","repos_url":"https://api.github.com/users/benlaurie/repos","events_url":"https://api.github.com/users/benlaurie/events{/privacy}","received_events_url":"https://api.github.com/users/benlaurie/received_events","type":"User","site_admin":false},"repo":{"id":119267978,"name":"trillian-examples","full_name":"benlaurie/trillian-examples","owner":{"login":"benlaurie","id":40044,"avatar_url":"https://avatars0.githubusercontent.com/u/40044?v=4","gravatar_id":"","url":"https://api.github.com/users/benlaurie","html_url":"https://github.com/benlaurie","followers_url":"https://api.github.com/users/benlaurie/followers","following_url":"https://api.github.com/users/benlaurie/following{/other_user}","gists_url":"https://api.github.com/users/benlaurie/gists{/gist_id}","starred_url":"https://api.github.com/users/benlaurie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlaurie/subscriptions","organizations_url":"https://api.github.com/users/benlaurie/orgs","repos_url":"https://api.github.com/users/benlaurie/repos","events_url":"https://api.github.com/users/benlaurie/events{/privacy}","received_events_url":"https://api.github.com/users/benlaurie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benlaurie/trillian-examples","description":"A place to store some examples which use Trillian APIs to build things.","fork":true,"url":"https://api.github.com/repos/benlaurie/trillian-examples","forks_url":"https://api.github.com/repos/benlaurie/trillian-examples/forks","keys_url":"https://api.github.com/repos/benlaurie/trillian-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benlaurie/trillian-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benlaurie/trillian-examples/teams","hooks_url":"https://api.github.com/repos/benlaurie/trillian-examples/hooks","issue_events_url":"https://api.github.com/repos/benlaurie/trillian-examples/issues/events{/number}","events_url":"https://api.github.com/repos/benlaurie/trillian-examples/events","assignees_url":"https://api.github.com/repos/benlaurie/trillian-examples/assignees{/user}","branches_url":"https://api.github.com/repos/benlaurie/trillian-examples/branches{/branch}","tags_url":"https://api.github.com/repos/benlaurie/trillian-examples/tags","blobs_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benlaurie/trillian-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/benlaurie/trillian-examples/languages","stargazers_url":"https://api.github.com/repos/benlaurie/trillian-examples/stargazers","contributors_url":"https://api.github.com/repos/benlaurie/trillian-examples/contributors","subscribers_url":"https://api.github.com/repos/benlaurie/trillian-examples/subscribers","subscription_url":"https://api.github.com/repos/benlaurie/trillian-examples/subscription","commits_url":"https://api.github.com/repos/benlaurie/trillian-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/benlaurie/trillian-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/benlaurie/trillian-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/benlaurie/trillian-examples/contents/{+path}","compare_url":"https://api.github.com/repos/benlaurie/trillian-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benlaurie/trillian-examples/merges","archive_url":"https://api.github.com/repos/benlaurie/trillian-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benlaurie/trillian-examples/downloads","issues_url":"https://api.github.com/repos/benlaurie/trillian-examples/issues{/number}","pulls_url":"https://api.github.com/repos/benlaurie/trillian-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/benlaurie/trillian-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/benlaurie/trillian-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benlaurie/trillian-examples/labels{/name}","releases_url":"https://api.github.com/repos/benlaurie/trillian-examples/releases{/id}","deployments_url":"https://api.github.com/repos/benlaurie/trillian-examples/deployments","created_at":"2018-01-28T14:57:31Z","updated_at":"2018-01-28T14:57:33Z","pushed_at":"2018-02-07T11:49:19Z","git_url":"git://github.com/benlaurie/trillian-examples.git","ssh_url":"git@github.com:benlaurie/trillian-examples.git","clone_url":"https://github.com/benlaurie/trillian-examples.git","svn_url":"https://github.com/benlaurie/trillian-examples","homepage":"","size":31,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"benlaurie:register-1","ref":"register-1","sha":"7fad93b1a215a229b1e9891892de5fea4270fbb3","user":{"login":"benlaurie","id":40044,"avatar_url":"https://avatars0.githubusercontent.com/u/40044?v=4","gravatar_id":"","url":"https://api.github.com/users/benlaurie","html_url":"https://github.com/benlaurie","followers_url":"https://api.github.com/users/benlaurie/followers","following_url":"https://api.github.com/users/benlaurie/following{/other_user}","gists_url":"https://api.github.com/users/benlaurie/gists{/gist_id}","starred_url":"https://api.github.com/users/benlaurie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlaurie/subscriptions","organizations_url":"https://api.github.com/users/benlaurie/orgs","repos_url":"https://api.github.com/users/benlaurie/repos","events_url":"https://api.github.com/users/benlaurie/events{/privacy}","received_events_url":"https://api.github.com/users/benlaurie/received_events","type":"User","site_admin":false},"repo":{"id":119267978,"name":"trillian-examples","full_name":"benlaurie/trillian-examples","owner":{"login":"benlaurie","id":40044,"avatar_url":"https://avatars0.githubusercontent.com/u/40044?v=4","gravatar_id":"","url":"https://api.github.com/users/benlaurie","html_url":"https://github.com/benlaurie","followers_url":"https://api.github.com/users/benlaurie/followers","following_url":"https://api.github.com/users/benlaurie/following{/other_user}","gists_url":"https://api.github.com/users/benlaurie/gists{/gist_id}","starred_url":"https://api.github.com/users/benlaurie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benlaurie/subscriptions","organizations_url":"https://api.github.com/users/benlaurie/orgs","repos_url":"https://api.github.com/users/benlaurie/repos","events_url":"https://api.github.com/users/benlaurie/events{/privacy}","received_events_url":"https://api.github.com/users/benlaurie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benlaurie/trillian-examples","description":"A place to store some examples which use Trillian APIs to build things.","fork":true,"url":"https://api.github.com/repos/benlaurie/trillian-examples","forks_url":"https://api.github.com/repos/benlaurie/trillian-examples/forks","keys_url":"https://api.github.com/repos/benlaurie/trillian-examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benlaurie/trillian-examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benlaurie/trillian-examples/teams","hooks_url":"https://api.github.com/repos/benlaurie/trillian-examples/hooks","issue_events_url":"https://api.github.com/repos/benlaurie/trillian-examples/issues/events{/number}","events_url":"https://api.github.com/repos/benlaurie/trillian-examples/events","assignees_url":"https://api.github.com/repos/benlaurie/trillian-examples/assignees{/user}","branches_url":"https://api.github.com/repos/benlaurie/trillian-examples/branches{/branch}","tags_url":"https://api.github.com/repos/benlaurie/trillian-examples/tags","blobs_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benlaurie/trillian-examples/statuses/{sha}","languages_url":"https://api.github.com/repos/benlaurie/trillian-examples/languages","stargazers_url":"https://api.github.com/repos/benlaurie/trillian-examples/stargazers","contributors_url":"https://api.github.com/repos/benlaurie/trillian-examples/contributors","subscribers_url":"https://api.github.com/repos/benlaurie/trillian-examples/subscribers","subscription_url":"https://api.github.com/repos/benlaurie/trillian-examples/subscription","commits_url":"https://api.github.com/repos/benlaurie/trillian-examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/benlaurie/trillian-examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/benlaurie/trillian-examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/benlaurie/trillian-examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/benlaurie/trillian-examples/contents/{+path}","compare_url":"https://api.github.com/repos/benlaurie/trillian-examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benlaurie/trillian-examples/merges","archive_url":"https://api.github.com/repos/benlaurie/trillian-examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benlaurie/trillian-examples/downloads","issues_url":"https://api.github.com/repos/benlaurie/trillian-examples/issues{/number}","pulls_url":"https://api.github.com/repos/benlaurie/trillian-examples/pulls{/number}","milestones_url":"https://api.github.com/repos/benlaurie/trillian-examples/milestones{/number}","notifications_url":"https://api.github.com/repos/benlaurie/trillian-examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benlaurie/trillian-examples/labels{/name}","releases_url":"https://api.github.com/repos/benlaurie/trillian-examples/releases{/id}","deployments_url":"https://api.github.com/repos/benlaurie/trillian-examples/deployments","created_at":"2018-01-28T14:57:31Z","updated_at":"2018-01-28T14:57:33Z","pushed_at":"2018-02-07T11:49:19Z","git_url":"git://github.com/benlaurie/trillian-examples.git","ssh_url":"git@github.com:benlaurie/trillian-examples.git","clone_url":"https://github.com/benlaurie/trillian-examples.git","svn_url":"https://github.com/benlaurie/trillian-examples","homepage":"","size":31,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/2"},"html":{"href":"https://github.com/benlaurie/trillian-examples/pull/2"},"issue":{"href":"https://api.github.com/repos/benlaurie/trillian-examples/issues/2"},"comments":{"href":"https://api.github.com/repos/benlaurie/trillian-examples/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/benlaurie/trillian-examples/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/benlaurie/trillian-examples/statuses/942f22d4a95d44c7a7a3b2fd468b36f5070c1f33"}},"author_association":"OWNER"}}
{"actor":{"display_login":"AlCutter"}}