{"action":"created","comment":{"url":"https://api.github.com/repos/draganm/zathras/pulls/comments/92921382","pull_request_review_id":13446408,"id":92921382,"diff_hunk":"@@ -0,0 +1,74 @@\n+package event\n+\n+import (\n+\t\"encoding/binary\"\n+\t\"io\"\n+\t\"time\"\n+)\n+\n+// Event represends data of one event\n+type Event struct {\n+\tID   uint64\n+\tTime time.Time\n+\tData []byte\n+}\n+\n+func (e Event) Write(writer io.Writer) (int, error) {\n+\n+\tsize := 4 + 8 + 8 + len(e.Data)","path":"event/event.go","position":18,"original_position":18,"commit_id":"8e5464346056cd1f51d1de93962acf0b419e2b77","original_commit_id":"047d610e86613bb68f66d32f5a4354be8b1c1ca6","user":{"login":"draganm","id":2174560,"avatar_url":"https://avatars.githubusercontent.com/u/2174560?v=3","gravatar_id":"","url":"https://api.github.com/users/draganm","html_url":"https://github.com/draganm","followers_url":"https://api.github.com/users/draganm/followers","following_url":"https://api.github.com/users/draganm/following{/other_user}","gists_url":"https://api.github.com/users/draganm/gists{/gist_id}","starred_url":"https://api.github.com/users/draganm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draganm/subscriptions","organizations_url":"https://api.github.com/users/draganm/orgs","repos_url":"https://api.github.com/users/draganm/repos","events_url":"https://api.github.com/users/draganm/events{/privacy}","received_events_url":"https://api.github.com/users/draganm/received_events","type":"User","site_admin":false},"body":"Yeah, was an ugly design, got rid of buffered writer and rewritten this method - it also reduced number of allocs to 1 (down from 6)","created_at":"2016-12-17T13:07:36Z","updated_at":"2016-12-17T13:07:36Z","html_url":"https://github.com/draganm/zathras/pull/1#discussion_r92921382","pull_request_url":"https://api.github.com/repos/draganm/zathras/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/draganm/zathras/pulls/comments/92921382"},"html":{"href":"https://github.com/draganm/zathras/pull/1#discussion_r92921382"},"pull_request":{"href":"https://api.github.com/repos/draganm/zathras/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/draganm/zathras/pulls/1","id":98249030,"html_url":"https://github.com/draganm/zathras/pull/1","diff_url":"https://github.com/draganm/zathras/pull/1.diff","patch_url":"https://github.com/draganm/zathras/pull/1.patch","issue_url":"https://api.github.com/repos/draganm/zathras/issues/1","number":1,"state":"open","locked":false,"title":"Log appender","user":{"login":"draganm","id":2174560,"avatar_url":"https://avatars.githubusercontent.com/u/2174560?v=3","gravatar_id":"","url":"https://api.github.com/users/draganm","html_url":"https://github.com/draganm","followers_url":"https://api.github.com/users/draganm/followers","following_url":"https://api.github.com/users/draganm/following{/other_user}","gists_url":"https://api.github.com/users/draganm/gists{/gist_id}","starred_url":"https://api.github.com/users/draganm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draganm/subscriptions","organizations_url":"https://api.github.com/users/draganm/orgs","repos_url":"https://api.github.com/users/draganm/repos","events_url":"https://api.github.com/users/draganm/events{/privacy}","received_events_url":"https://api.github.com/users/draganm/received_events","type":"User","site_admin":false},"body":"- basic event structure\r\n- reading/writing of events to/from writer\r\n- basic log appender\r\n- CI support","created_at":"2016-12-15T23:05:13Z","updated_at":"2016-12-17T13:07:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"93feb300ca23ab311b40725b38cfe8facf684bf6","assignee":{"login":"zimbatm","id":3248,"avatar_url":"https://avatars.githubusercontent.com/u/3248?v=3","gravatar_id":"","url":"https://api.github.com/users/zimbatm","html_url":"https://github.com/zimbatm","followers_url":"https://api.github.com/users/zimbatm/followers","following_url":"https://api.github.com/users/zimbatm/following{/other_user}","gists_url":"https://api.github.com/users/zimbatm/gists{/gist_id}","starred_url":"https://api.github.com/users/zimbatm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimbatm/subscriptions","organizations_url":"https://api.github.com/users/zimbatm/orgs","repos_url":"https://api.github.com/users/zimbatm/repos","events_url":"https://api.github.com/users/zimbatm/events{/privacy}","received_events_url":"https://api.github.com/users/zimbatm/received_events","type":"User","site_admin":false},"assignees":[{"login":"zimbatm","id":3248,"avatar_url":"https://avatars.githubusercontent.com/u/3248?v=3","gravatar_id":"","url":"https://api.github.com/users/zimbatm","html_url":"https://github.com/zimbatm","followers_url":"https://api.github.com/users/zimbatm/followers","following_url":"https://api.github.com/users/zimbatm/following{/other_user}","gists_url":"https://api.github.com/users/zimbatm/gists{/gist_id}","starred_url":"https://api.github.com/users/zimbatm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimbatm/subscriptions","organizations_url":"https://api.github.com/users/zimbatm/orgs","repos_url":"https://api.github.com/users/zimbatm/repos","events_url":"https://api.github.com/users/zimbatm/events{/privacy}","received_events_url":"https://api.github.com/users/zimbatm/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/draganm/zathras/pulls/1/commits","review_comments_url":"https://api.github.com/repos/draganm/zathras/pulls/1/comments","review_comment_url":"https://api.github.com/repos/draganm/zathras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/draganm/zathras/issues/1/comments","statuses_url":"https://api.github.com/repos/draganm/zathras/statuses/8e5464346056cd1f51d1de93962acf0b419e2b77","head":{"label":"draganm:log_appender","ref":"log_appender","sha":"8e5464346056cd1f51d1de93962acf0b419e2b77","user":{"login":"draganm","id":2174560,"avatar_url":"https://avatars.githubusercontent.com/u/2174560?v=3","gravatar_id":"","url":"https://api.github.com/users/draganm","html_url":"https://github.com/draganm","followers_url":"https://api.github.com/users/draganm/followers","following_url":"https://api.github.com/users/draganm/following{/other_user}","gists_url":"https://api.github.com/users/draganm/gists{/gist_id}","starred_url":"https://api.github.com/users/draganm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draganm/subscriptions","organizations_url":"https://api.github.com/users/draganm/orgs","repos_url":"https://api.github.com/users/draganm/repos","events_url":"https://api.github.com/users/draganm/events{/privacy}","received_events_url":"https://api.github.com/users/draganm/received_events","type":"User","site_admin":false},"repo":{"id":75737559,"name":"zathras","full_name":"draganm/zathras","owner":{"login":"draganm","id":2174560,"avatar_url":"https://avatars.githubusercontent.com/u/2174560?v=3","gravatar_id":"","url":"https://api.github.com/users/draganm","html_url":"https://github.com/draganm","followers_url":"https://api.github.com/users/draganm/followers","following_url":"https://api.github.com/users/draganm/following{/other_user}","gists_url":"https://api.github.com/users/draganm/gists{/gist_id}","starred_url":"https://api.github.com/users/draganm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draganm/subscriptions","organizations_url":"https://api.github.com/users/draganm/orgs","repos_url":"https://api.github.com/users/draganm/repos","events_url":"https://api.github.com/users/draganm/events{/privacy}","received_events_url":"https://api.github.com/users/draganm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/draganm/zathras","description":null,"fork":false,"url":"https://api.github.com/repos/draganm/zathras","forks_url":"https://api.github.com/repos/draganm/zathras/forks","keys_url":"https://api.github.com/repos/draganm/zathras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/draganm/zathras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/draganm/zathras/teams","hooks_url":"https://api.github.com/repos/draganm/zathras/hooks","issue_events_url":"https://api.github.com/repos/draganm/zathras/issues/events{/number}","events_url":"https://api.github.com/repos/draganm/zathras/events","assignees_url":"https://api.github.com/repos/draganm/zathras/assignees{/user}","branches_url":"https://api.github.com/repos/draganm/zathras/branches{/branch}","tags_url":"https://api.github.com/repos/draganm/zathras/tags","blobs_url":"https://api.github.com/repos/draganm/zathras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/draganm/zathras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/draganm/zathras/git/refs{/sha}","trees_url":"https://api.github.com/repos/draganm/zathras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/draganm/zathras/statuses/{sha}","languages_url":"https://api.github.com/repos/draganm/zathras/languages","stargazers_url":"https://api.github.com/repos/draganm/zathras/stargazers","contributors_url":"https://api.github.com/repos/draganm/zathras/contributors","subscribers_url":"https://api.github.com/repos/draganm/zathras/subscribers","subscription_url":"https://api.github.com/repos/draganm/zathras/subscription","commits_url":"https://api.github.com/repos/draganm/zathras/commits{/sha}","git_commits_url":"https://api.github.com/repos/draganm/zathras/git/commits{/sha}","comments_url":"https://api.github.com/repos/draganm/zathras/comments{/number}","issue_comment_url":"https://api.github.com/repos/draganm/zathras/issues/comments{/number}","contents_url":"https://api.github.com/repos/draganm/zathras/contents/{+path}","compare_url":"https://api.github.com/repos/draganm/zathras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/draganm/zathras/merges","archive_url":"https://api.github.com/repos/draganm/zathras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/draganm/zathras/downloads","issues_url":"https://api.github.com/repos/draganm/zathras/issues{/number}","pulls_url":"https://api.github.com/repos/draganm/zathras/pulls{/number}","milestones_url":"https://api.github.com/repos/draganm/zathras/milestones{/number}","notifications_url":"https://api.github.com/repos/draganm/zathras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/draganm/zathras/labels{/name}","releases_url":"https://api.github.com/repos/draganm/zathras/releases{/id}","deployments_url":"https://api.github.com/repos/draganm/zathras/deployments","created_at":"2016-12-06T14:12:13Z","updated_at":"2016-12-06T14:12:33Z","pushed_at":"2016-12-17T13:05:56Z","git_url":"git://github.com/draganm/zathras.git","ssh_url":"git@github.com:draganm/zathras.git","clone_url":"https://github.com/draganm/zathras.git","svn_url":"https://github.com/draganm/zathras","homepage":null,"size":89,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"draganm:master","ref":"master","sha":"fc0240949ace54cc93576920ffea32e888d9674e","user":{"login":"draganm","id":2174560,"avatar_url":"https://avatars.githubusercontent.com/u/2174560?v=3","gravatar_id":"","url":"https://api.github.com/users/draganm","html_url":"https://github.com/draganm","followers_url":"https://api.github.com/users/draganm/followers","following_url":"https://api.github.com/users/draganm/following{/other_user}","gists_url":"https://api.github.com/users/draganm/gists{/gist_id}","starred_url":"https://api.github.com/users/draganm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draganm/subscriptions","organizations_url":"https://api.github.com/users/draganm/orgs","repos_url":"https://api.github.com/users/draganm/repos","events_url":"https://api.github.com/users/draganm/events{/privacy}","received_events_url":"https://api.github.com/users/draganm/received_events","type":"User","site_admin":false},"repo":{"id":75737559,"name":"zathras","full_name":"draganm/zathras","owner":{"login":"draganm","id":2174560,"avatar_url":"https://avatars.githubusercontent.com/u/2174560?v=3","gravatar_id":"","url":"https://api.github.com/users/draganm","html_url":"https://github.com/draganm","followers_url":"https://api.github.com/users/draganm/followers","following_url":"https://api.github.com/users/draganm/following{/other_user}","gists_url":"https://api.github.com/users/draganm/gists{/gist_id}","starred_url":"https://api.github.com/users/draganm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draganm/subscriptions","organizations_url":"https://api.github.com/users/draganm/orgs","repos_url":"https://api.github.com/users/draganm/repos","events_url":"https://api.github.com/users/draganm/events{/privacy}","received_events_url":"https://api.github.com/users/draganm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/draganm/zathras","description":null,"fork":false,"url":"https://api.github.com/repos/draganm/zathras","forks_url":"https://api.github.com/repos/draganm/zathras/forks","keys_url":"https://api.github.com/repos/draganm/zathras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/draganm/zathras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/draganm/zathras/teams","hooks_url":"https://api.github.com/repos/draganm/zathras/hooks","issue_events_url":"https://api.github.com/repos/draganm/zathras/issues/events{/number}","events_url":"https://api.github.com/repos/draganm/zathras/events","assignees_url":"https://api.github.com/repos/draganm/zathras/assignees{/user}","branches_url":"https://api.github.com/repos/draganm/zathras/branches{/branch}","tags_url":"https://api.github.com/repos/draganm/zathras/tags","blobs_url":"https://api.github.com/repos/draganm/zathras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/draganm/zathras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/draganm/zathras/git/refs{/sha}","trees_url":"https://api.github.com/repos/draganm/zathras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/draganm/zathras/statuses/{sha}","languages_url":"https://api.github.com/repos/draganm/zathras/languages","stargazers_url":"https://api.github.com/repos/draganm/zathras/stargazers","contributors_url":"https://api.github.com/repos/draganm/zathras/contributors","subscribers_url":"https://api.github.com/repos/draganm/zathras/subscribers","subscription_url":"https://api.github.com/repos/draganm/zathras/subscription","commits_url":"https://api.github.com/repos/draganm/zathras/commits{/sha}","git_commits_url":"https://api.github.com/repos/draganm/zathras/git/commits{/sha}","comments_url":"https://api.github.com/repos/draganm/zathras/comments{/number}","issue_comment_url":"https://api.github.com/repos/draganm/zathras/issues/comments{/number}","contents_url":"https://api.github.com/repos/draganm/zathras/contents/{+path}","compare_url":"https://api.github.com/repos/draganm/zathras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/draganm/zathras/merges","archive_url":"https://api.github.com/repos/draganm/zathras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/draganm/zathras/downloads","issues_url":"https://api.github.com/repos/draganm/zathras/issues{/number}","pulls_url":"https://api.github.com/repos/draganm/zathras/pulls{/number}","milestones_url":"https://api.github.com/repos/draganm/zathras/milestones{/number}","notifications_url":"https://api.github.com/repos/draganm/zathras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/draganm/zathras/labels{/name}","releases_url":"https://api.github.com/repos/draganm/zathras/releases{/id}","deployments_url":"https://api.github.com/repos/draganm/zathras/deployments","created_at":"2016-12-06T14:12:13Z","updated_at":"2016-12-06T14:12:33Z","pushed_at":"2016-12-17T13:05:56Z","git_url":"git://github.com/draganm/zathras.git","ssh_url":"git@github.com:draganm/zathras.git","clone_url":"https://github.com/draganm/zathras.git","svn_url":"https://github.com/draganm/zathras","homepage":null,"size":89,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/draganm/zathras/pulls/1"},"html":{"href":"https://github.com/draganm/zathras/pull/1"},"issue":{"href":"https://api.github.com/repos/draganm/zathras/issues/1"},"comments":{"href":"https://api.github.com/repos/draganm/zathras/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/draganm/zathras/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/draganm/zathras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/draganm/zathras/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/draganm/zathras/statuses/8e5464346056cd1f51d1de93962acf0b419e2b77"}}}}
{"actor":{"display_login":"draganm"}}