{"action":"created","comment":{"url":"https://api.github.com/repos/matt-42/silicon/pulls/comments/58847287","id":58847287,"diff_hunk":"@@ -0,0 +1,260 @@\n+#pragma once\n+\n+# include <stdexcept>\n+# include <iostream>\n+\n+# include <amqp_tcp_socket.h>\n+# include <amqp.h>\n+# include <amqp_framing.h>\n+\n+# include <iod/json.hh>\n+\n+# include <silicon/symbols.hh>\n+# include <silicon/service.hh>\n+\n+iod_define_symbol(hostname)","path":"silicon/backends/rabbitmq.hh","position":15,"original_position":15,"commit_id":"dce7afe83e139d6410227f164fdf075511b8ce01","original_commit_id":"dce7afe83e139d6410227f164fdf075511b8ce01","user":{"login":"matt-42","id":846584,"avatar_url":"https://avatars.githubusercontent.com/u/846584?v=3","gravatar_id":"","url":"https://api.github.com/users/matt-42","html_url":"https://github.com/matt-42","followers_url":"https://api.github.com/users/matt-42/followers","following_url":"https://api.github.com/users/matt-42/following{/other_user}","gists_url":"https://api.github.com/users/matt-42/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-42/subscriptions","organizations_url":"https://api.github.com/users/matt-42/orgs","repos_url":"https://api.github.com/users/matt-42/repos","events_url":"https://api.github.com/users/matt-42/events{/privacy}","received_events_url":"https://api.github.com/users/matt-42/received_events","type":"User","site_admin":false},"body":"Instead of manually defines your symbols use the iod_generate_symbols. It look for the symbol in a list of c++ header and generate the definitions with preprocessing guards to avoid multiple definitions of the same symbol:\r\n\r\nUsage: iod_generate_symbols input_cpp_file1, ..., input_cpp_fileN, output_cpp_header_file\r\nYou can compile it here: https://github.com/matt-42/iod/tree/master/tools","created_at":"2016-04-07T09:59:45Z","updated_at":"2016-04-07T09:59:45Z","html_url":"https://github.com/matt-42/silicon/pull/20#discussion_r58847287","pull_request_url":"https://api.github.com/repos/matt-42/silicon/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/matt-42/silicon/pulls/comments/58847287"},"html":{"href":"https://github.com/matt-42/silicon/pull/20#discussion_r58847287"},"pull_request":{"href":"https://api.github.com/repos/matt-42/silicon/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/matt-42/silicon/pulls/20","id":64641689,"html_url":"https://github.com/matt-42/silicon/pull/20","diff_url":"https://github.com/matt-42/silicon/pull/20.diff","patch_url":"https://github.com/matt-42/silicon/pull/20.patch","issue_url":"https://api.github.com/repos/matt-42/silicon/issues/20","number":20,"state":"open","locked":false,"title":"RabbitMQ for Silicon","user":{"login":"chino540off","id":18135601,"avatar_url":"https://avatars.githubusercontent.com/u/18135601?v=3","gravatar_id":"","url":"https://api.github.com/users/chino540off","html_url":"https://github.com/chino540off","followers_url":"https://api.github.com/users/chino540off/followers","following_url":"https://api.github.com/users/chino540off/following{/other_user}","gists_url":"https://api.github.com/users/chino540off/gists{/gist_id}","starred_url":"https://api.github.com/users/chino540off/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chino540off/subscriptions","organizations_url":"https://api.github.com/users/chino540off/orgs","repos_url":"https://api.github.com/users/chino540off/repos","events_url":"https://api.github.com/users/chino540off/events{/privacy}","received_events_url":"https://api.github.com/users/chino540off/received_events","type":"User","site_admin":false},"body":"To be commented, first implentation of simple queue for rabbitMQ","created_at":"2016-03-30T14:57:36Z","updated_at":"2016-04-07T09:59:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8d7fb01509db22f4943dc7512bda9530f1f2e3be","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/matt-42/silicon/pulls/20/commits","review_comments_url":"https://api.github.com/repos/matt-42/silicon/pulls/20/comments","review_comment_url":"https://api.github.com/repos/matt-42/silicon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matt-42/silicon/issues/20/comments","statuses_url":"https://api.github.com/repos/matt-42/silicon/statuses/dce7afe83e139d6410227f164fdf075511b8ce01","head":{"label":"chino540off:master","ref":"master","sha":"dce7afe83e139d6410227f164fdf075511b8ce01","user":{"login":"chino540off","id":18135601,"avatar_url":"https://avatars.githubusercontent.com/u/18135601?v=3","gravatar_id":"","url":"https://api.github.com/users/chino540off","html_url":"https://github.com/chino540off","followers_url":"https://api.github.com/users/chino540off/followers","following_url":"https://api.github.com/users/chino540off/following{/other_user}","gists_url":"https://api.github.com/users/chino540off/gists{/gist_id}","starred_url":"https://api.github.com/users/chino540off/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chino540off/subscriptions","organizations_url":"https://api.github.com/users/chino540off/orgs","repos_url":"https://api.github.com/users/chino540off/repos","events_url":"https://api.github.com/users/chino540off/events{/privacy}","received_events_url":"https://api.github.com/users/chino540off/received_events","type":"User","site_admin":false},"repo":{"id":54952992,"name":"silicon","full_name":"chino540off/silicon","owner":{"login":"chino540off","id":18135601,"avatar_url":"https://avatars.githubusercontent.com/u/18135601?v=3","gravatar_id":"","url":"https://api.github.com/users/chino540off","html_url":"https://github.com/chino540off","followers_url":"https://api.github.com/users/chino540off/followers","following_url":"https://api.github.com/users/chino540off/following{/other_user}","gists_url":"https://api.github.com/users/chino540off/gists{/gist_id}","starred_url":"https://api.github.com/users/chino540off/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chino540off/subscriptions","organizations_url":"https://api.github.com/users/chino540off/orgs","repos_url":"https://api.github.com/users/chino540off/repos","events_url":"https://api.github.com/users/chino540off/events{/privacy}","received_events_url":"https://api.github.com/users/chino540off/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chino540off/silicon","description":"A high performance, middleware oriented C++14 http web framework","fork":true,"url":"https://api.github.com/repos/chino540off/silicon","forks_url":"https://api.github.com/repos/chino540off/silicon/forks","keys_url":"https://api.github.com/repos/chino540off/silicon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chino540off/silicon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chino540off/silicon/teams","hooks_url":"https://api.github.com/repos/chino540off/silicon/hooks","issue_events_url":"https://api.github.com/repos/chino540off/silicon/issues/events{/number}","events_url":"https://api.github.com/repos/chino540off/silicon/events","assignees_url":"https://api.github.com/repos/chino540off/silicon/assignees{/user}","branches_url":"https://api.github.com/repos/chino540off/silicon/branches{/branch}","tags_url":"https://api.github.com/repos/chino540off/silicon/tags","blobs_url":"https://api.github.com/repos/chino540off/silicon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chino540off/silicon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chino540off/silicon/git/refs{/sha}","trees_url":"https://api.github.com/repos/chino540off/silicon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chino540off/silicon/statuses/{sha}","languages_url":"https://api.github.com/repos/chino540off/silicon/languages","stargazers_url":"https://api.github.com/repos/chino540off/silicon/stargazers","contributors_url":"https://api.github.com/repos/chino540off/silicon/contributors","subscribers_url":"https://api.github.com/repos/chino540off/silicon/subscribers","subscription_url":"https://api.github.com/repos/chino540off/silicon/subscription","commits_url":"https://api.github.com/repos/chino540off/silicon/commits{/sha}","git_commits_url":"https://api.github.com/repos/chino540off/silicon/git/commits{/sha}","comments_url":"https://api.github.com/repos/chino540off/silicon/comments{/number}","issue_comment_url":"https://api.github.com/repos/chino540off/silicon/issues/comments{/number}","contents_url":"https://api.github.com/repos/chino540off/silicon/contents/{+path}","compare_url":"https://api.github.com/repos/chino540off/silicon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chino540off/silicon/merges","archive_url":"https://api.github.com/repos/chino540off/silicon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chino540off/silicon/downloads","issues_url":"https://api.github.com/repos/chino540off/silicon/issues{/number}","pulls_url":"https://api.github.com/repos/chino540off/silicon/pulls{/number}","milestones_url":"https://api.github.com/repos/chino540off/silicon/milestones{/number}","notifications_url":"https://api.github.com/repos/chino540off/silicon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chino540off/silicon/labels{/name}","releases_url":"https://api.github.com/repos/chino540off/silicon/releases{/id}","deployments_url":"https://api.github.com/repos/chino540off/silicon/deployments","created_at":"2016-03-29T06:54:24Z","updated_at":"2016-03-29T06:54:25Z","pushed_at":"2016-04-01T07:59:25Z","git_url":"git://github.com/chino540off/silicon.git","ssh_url":"git@github.com:chino540off/silicon.git","clone_url":"https://github.com/chino540off/silicon.git","svn_url":"https://github.com/chino540off/silicon","homepage":"http://siliconframework.org","size":487,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"matt-42:master","ref":"master","sha":"97bdd570ab7e906a4baa0c20c0e97e3045ddc957","user":{"login":"matt-42","id":846584,"avatar_url":"https://avatars.githubusercontent.com/u/846584?v=3","gravatar_id":"","url":"https://api.github.com/users/matt-42","html_url":"https://github.com/matt-42","followers_url":"https://api.github.com/users/matt-42/followers","following_url":"https://api.github.com/users/matt-42/following{/other_user}","gists_url":"https://api.github.com/users/matt-42/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-42/subscriptions","organizations_url":"https://api.github.com/users/matt-42/orgs","repos_url":"https://api.github.com/users/matt-42/repos","events_url":"https://api.github.com/users/matt-42/events{/privacy}","received_events_url":"https://api.github.com/users/matt-42/received_events","type":"User","site_admin":false},"repo":{"id":26010099,"name":"silicon","full_name":"matt-42/silicon","owner":{"login":"matt-42","id":846584,"avatar_url":"https://avatars.githubusercontent.com/u/846584?v=3","gravatar_id":"","url":"https://api.github.com/users/matt-42","html_url":"https://github.com/matt-42","followers_url":"https://api.github.com/users/matt-42/followers","following_url":"https://api.github.com/users/matt-42/following{/other_user}","gists_url":"https://api.github.com/users/matt-42/gists{/gist_id}","starred_url":"https://api.github.com/users/matt-42/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matt-42/subscriptions","organizations_url":"https://api.github.com/users/matt-42/orgs","repos_url":"https://api.github.com/users/matt-42/repos","events_url":"https://api.github.com/users/matt-42/events{/privacy}","received_events_url":"https://api.github.com/users/matt-42/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matt-42/silicon","description":"A high performance, middleware oriented C++14 http web framework","fork":false,"url":"https://api.github.com/repos/matt-42/silicon","forks_url":"https://api.github.com/repos/matt-42/silicon/forks","keys_url":"https://api.github.com/repos/matt-42/silicon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matt-42/silicon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matt-42/silicon/teams","hooks_url":"https://api.github.com/repos/matt-42/silicon/hooks","issue_events_url":"https://api.github.com/repos/matt-42/silicon/issues/events{/number}","events_url":"https://api.github.com/repos/matt-42/silicon/events","assignees_url":"https://api.github.com/repos/matt-42/silicon/assignees{/user}","branches_url":"https://api.github.com/repos/matt-42/silicon/branches{/branch}","tags_url":"https://api.github.com/repos/matt-42/silicon/tags","blobs_url":"https://api.github.com/repos/matt-42/silicon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matt-42/silicon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matt-42/silicon/git/refs{/sha}","trees_url":"https://api.github.com/repos/matt-42/silicon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matt-42/silicon/statuses/{sha}","languages_url":"https://api.github.com/repos/matt-42/silicon/languages","stargazers_url":"https://api.github.com/repos/matt-42/silicon/stargazers","contributors_url":"https://api.github.com/repos/matt-42/silicon/contributors","subscribers_url":"https://api.github.com/repos/matt-42/silicon/subscribers","subscription_url":"https://api.github.com/repos/matt-42/silicon/subscription","commits_url":"https://api.github.com/repos/matt-42/silicon/commits{/sha}","git_commits_url":"https://api.github.com/repos/matt-42/silicon/git/commits{/sha}","comments_url":"https://api.github.com/repos/matt-42/silicon/comments{/number}","issue_comment_url":"https://api.github.com/repos/matt-42/silicon/issues/comments{/number}","contents_url":"https://api.github.com/repos/matt-42/silicon/contents/{+path}","compare_url":"https://api.github.com/repos/matt-42/silicon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matt-42/silicon/merges","archive_url":"https://api.github.com/repos/matt-42/silicon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matt-42/silicon/downloads","issues_url":"https://api.github.com/repos/matt-42/silicon/issues{/number}","pulls_url":"https://api.github.com/repos/matt-42/silicon/pulls{/number}","milestones_url":"https://api.github.com/repos/matt-42/silicon/milestones{/number}","notifications_url":"https://api.github.com/repos/matt-42/silicon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matt-42/silicon/labels{/name}","releases_url":"https://api.github.com/repos/matt-42/silicon/releases{/id}","deployments_url":"https://api.github.com/repos/matt-42/silicon/deployments","created_at":"2014-10-31T09:33:19Z","updated_at":"2016-04-04T16:58:42Z","pushed_at":"2016-04-07T09:55:29Z","git_url":"git://github.com/matt-42/silicon.git","ssh_url":"git@github.com:matt-42/silicon.git","clone_url":"https://github.com/matt-42/silicon.git","svn_url":"https://github.com/matt-42/silicon","homepage":"http://siliconframework.org","size":560,"stargazers_count":1082,"watchers_count":1082,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":55,"mirror_url":null,"open_issues_count":7,"forks":55,"open_issues":7,"watchers":1082,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matt-42/silicon/pulls/20"},"html":{"href":"https://github.com/matt-42/silicon/pull/20"},"issue":{"href":"https://api.github.com/repos/matt-42/silicon/issues/20"},"comments":{"href":"https://api.github.com/repos/matt-42/silicon/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/matt-42/silicon/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/matt-42/silicon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matt-42/silicon/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/matt-42/silicon/statuses/dce7afe83e139d6410227f164fdf075511b8ce01"}}}}