{"action":"created","issue":{"url":"https://api.github.com/repos/groob/moroz/issues/8","repository_url":"https://api.github.com/repos/groob/moroz","labels_url":"https://api.github.com/repos/groob/moroz/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/groob/moroz/issues/8/comments","events_url":"https://api.github.com/repos/groob/moroz/issues/8/events","html_url":"https://github.com/groob/moroz/pull/8","id":293749633,"number":8,"title":"reorganize the moroz service","user":{"login":"groob","id":1526945,"avatar_url":"https://avatars3.githubusercontent.com/u/1526945?v=4","gravatar_id":"","url":"https://api.github.com/users/groob","html_url":"https://github.com/groob","followers_url":"https://api.github.com/users/groob/followers","following_url":"https://api.github.com/users/groob/following{/other_user}","gists_url":"https://api.github.com/users/groob/gists{/gist_id}","starred_url":"https://api.github.com/users/groob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groob/subscriptions","organizations_url":"https://api.github.com/users/groob/orgs","repos_url":"https://api.github.com/users/groob/repos","events_url":"https://api.github.com/users/groob/events{/privacy}","received_events_url":"https://api.github.com/users/groob/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-02T02:08:49Z","updated_at":"2018-02-02T02:10:02Z","closed_at":null,"author_association":"OWNER","pull_request":{"url":"https://api.github.com/repos/groob/moroz/pulls/8","html_url":"https://github.com/groob/moroz/pull/8","diff_url":"https://github.com/groob/moroz/pull/8.diff","patch_url":"https://github.com/groob/moroz/pull/8.patch"},"body":"Did a lot of cleaning up and reorganized code to follow a simple 1 file per endpoint model.\r\nEach method of the santa.Service now corresponds to a svc_*.go file in the moroz package.\r\nThe implementation of the service method lives at the top, followed by boilerplate to create a go-kit endpoint and the\r\nnecessary http transport decode function. Finally any service middleware is written below.\r\n\r\nThe middleware.go file is for declaring middleware on santa.Service.\r\n\r\nThe server.go file is for registering HTTP routes with gorilla/mux."},"comment":{"url":"https://api.github.com/repos/groob/moroz/issues/comments/362463986","html_url":"https://github.com/groob/moroz/pull/8#issuecomment-362463986","issue_url":"https://api.github.com/repos/groob/moroz/issues/8","id":362463986,"user":{"login":"groob","id":1526945,"avatar_url":"https://avatars3.githubusercontent.com/u/1526945?v=4","gravatar_id":"","url":"https://api.github.com/users/groob","html_url":"https://github.com/groob","followers_url":"https://api.github.com/users/groob/followers","following_url":"https://api.github.com/users/groob/following{/other_user}","gists_url":"https://api.github.com/users/groob/gists{/gist_id}","starred_url":"https://api.github.com/users/groob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/groob/subscriptions","organizations_url":"https://api.github.com/users/groob/orgs","repos_url":"https://api.github.com/users/groob/repos","events_url":"https://api.github.com/users/groob/events{/privacy}","received_events_url":"https://api.github.com/users/groob/received_events","type":"User","site_admin":false},"created_at":"2018-02-02T02:10:02Z","updated_at":"2018-02-02T02:10:02Z","author_association":"OWNER","body":"// cc @adunham-stripe Refactoring the server implementation slightly to make it more clear where everything lives and getting rid of some initial development cruft. "}}
{"actor":{"display_login":"groob"}}