{"action":"created","comment":{"url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/comments/51955261","id":51955261,"diff_hunk":"@@ -0,0 +1,82 @@\n+-- Copyright (C) Yichun Zhang (agentzh)","path":"lib/ngx/balancer_stream.lua","position":1,"original_position":1,"commit_id":"ce47583ef7a3eb798195f544e91161dcecf81c16","original_commit_id":"ce47583ef7a3eb798195f544e91161dcecf81c16","user":{"login":"agentzh","id":56241,"avatar_url":"https://avatars.githubusercontent.com/u/56241?v=3","gravatar_id":"","url":"https://api.github.com/users/agentzh","html_url":"https://github.com/agentzh","followers_url":"https://api.github.com/users/agentzh/followers","following_url":"https://api.github.com/users/agentzh/following{/other_user}","gists_url":"https://api.github.com/users/agentzh/gists{/gist_id}","starred_url":"https://api.github.com/users/agentzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentzh/subscriptions","organizations_url":"https://api.github.com/users/agentzh/orgs","repos_url":"https://api.github.com/users/agentzh/repos","events_url":"https://api.github.com/users/agentzh/events{/privacy}","received_events_url":"https://api.github.com/users/agentzh/received_events","type":"User","site_admin":false},"body":"I think `ngx.balancer.stream` is a better module name than `ngx.balancer_stream` :)","created_at":"2016-02-04T23:26:05Z","updated_at":"2016-02-04T23:26:05Z","html_url":"https://github.com/openresty/lua-resty-core/pull/25#discussion_r51955261","pull_request_url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/comments/51955261"},"html":{"href":"https://github.com/openresty/lua-resty-core/pull/25#discussion_r51955261"},"pull_request":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/25","id":58366137,"html_url":"https://github.com/openresty/lua-resty-core/pull/25","diff_url":"https://github.com/openresty/lua-resty-core/pull/25.diff","patch_url":"https://github.com/openresty/lua-resty-core/pull/25.patch","issue_url":"https://api.github.com/repos/openresty/lua-resty-core/issues/25","number":25,"state":"open","locked":false,"title":"Balancer by lua stream","user":{"login":"splitice","id":468579,"avatar_url":"https://avatars.githubusercontent.com/u/468579?v=3","gravatar_id":"","url":"https://api.github.com/users/splitice","html_url":"https://github.com/splitice","followers_url":"https://api.github.com/users/splitice/followers","following_url":"https://api.github.com/users/splitice/following{/other_user}","gists_url":"https://api.github.com/users/splitice/gists{/gist_id}","starred_url":"https://api.github.com/users/splitice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splitice/subscriptions","organizations_url":"https://api.github.com/users/splitice/orgs","repos_url":"https://api.github.com/users/splitice/repos","events_url":"https://api.github.com/users/splitice/events{/privacy}","received_events_url":"https://api.github.com/users/splitice/received_events","type":"User","site_admin":false},"body":"Commits in this branch correspond to the changes for Balancer by LUA in the Stream Subsystem (\r\nhttps://github.com/openresty/stream-lua-nginx-module/pull/7).\r\n\r\nI have renambe the balancer.lua to balancer_http, and created the new implementation as balancer_stream.lua.\r\n\r\nI will create a balancer.lua compatibility wrapper once the subsystem check is implemented.\r\n\r\nFeel free to adjust the API to match your desired layout. ","created_at":"2016-02-04T23:25:02Z","updated_at":"2016-02-04T23:26:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ba4ce28e6685d2f819a3e5c6b44f85c504f4a2db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/25/commits","review_comments_url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/25/comments","review_comment_url":"https://api.github.com/repos/openresty/lua-resty-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openresty/lua-resty-core/issues/25/comments","statuses_url":"https://api.github.com/repos/openresty/lua-resty-core/statuses/ce47583ef7a3eb798195f544e91161dcecf81c16","head":{"label":"splitice:balancer-by-lua-stream","ref":"balancer-by-lua-stream","sha":"ce47583ef7a3eb798195f544e91161dcecf81c16","user":{"login":"splitice","id":468579,"avatar_url":"https://avatars.githubusercontent.com/u/468579?v=3","gravatar_id":"","url":"https://api.github.com/users/splitice","html_url":"https://github.com/splitice","followers_url":"https://api.github.com/users/splitice/followers","following_url":"https://api.github.com/users/splitice/following{/other_user}","gists_url":"https://api.github.com/users/splitice/gists{/gist_id}","starred_url":"https://api.github.com/users/splitice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splitice/subscriptions","organizations_url":"https://api.github.com/users/splitice/orgs","repos_url":"https://api.github.com/users/splitice/repos","events_url":"https://api.github.com/users/splitice/events{/privacy}","received_events_url":"https://api.github.com/users/splitice/received_events","type":"User","site_admin":false},"repo":{"id":48689865,"name":"lua-resty-core","full_name":"splitice/lua-resty-core","owner":{"login":"splitice","id":468579,"avatar_url":"https://avatars.githubusercontent.com/u/468579?v=3","gravatar_id":"","url":"https://api.github.com/users/splitice","html_url":"https://github.com/splitice","followers_url":"https://api.github.com/users/splitice/followers","following_url":"https://api.github.com/users/splitice/following{/other_user}","gists_url":"https://api.github.com/users/splitice/gists{/gist_id}","starred_url":"https://api.github.com/users/splitice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/splitice/subscriptions","organizations_url":"https://api.github.com/users/splitice/orgs","repos_url":"https://api.github.com/users/splitice/repos","events_url":"https://api.github.com/users/splitice/events{/privacy}","received_events_url":"https://api.github.com/users/splitice/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/splitice/lua-resty-core","description":"New FFI-based API for lua-nginx-module","fork":true,"url":"https://api.github.com/repos/splitice/lua-resty-core","forks_url":"https://api.github.com/repos/splitice/lua-resty-core/forks","keys_url":"https://api.github.com/repos/splitice/lua-resty-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/splitice/lua-resty-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/splitice/lua-resty-core/teams","hooks_url":"https://api.github.com/repos/splitice/lua-resty-core/hooks","issue_events_url":"https://api.github.com/repos/splitice/lua-resty-core/issues/events{/number}","events_url":"https://api.github.com/repos/splitice/lua-resty-core/events","assignees_url":"https://api.github.com/repos/splitice/lua-resty-core/assignees{/user}","branches_url":"https://api.github.com/repos/splitice/lua-resty-core/branches{/branch}","tags_url":"https://api.github.com/repos/splitice/lua-resty-core/tags","blobs_url":"https://api.github.com/repos/splitice/lua-resty-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/splitice/lua-resty-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/splitice/lua-resty-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/splitice/lua-resty-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/splitice/lua-resty-core/statuses/{sha}","languages_url":"https://api.github.com/repos/splitice/lua-resty-core/languages","stargazers_url":"https://api.github.com/repos/splitice/lua-resty-core/stargazers","contributors_url":"https://api.github.com/repos/splitice/lua-resty-core/contributors","subscribers_url":"https://api.github.com/repos/splitice/lua-resty-core/subscribers","subscription_url":"https://api.github.com/repos/splitice/lua-resty-core/subscription","commits_url":"https://api.github.com/repos/splitice/lua-resty-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/splitice/lua-resty-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/splitice/lua-resty-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/splitice/lua-resty-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/splitice/lua-resty-core/contents/{+path}","compare_url":"https://api.github.com/repos/splitice/lua-resty-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/splitice/lua-resty-core/merges","archive_url":"https://api.github.com/repos/splitice/lua-resty-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/splitice/lua-resty-core/downloads","issues_url":"https://api.github.com/repos/splitice/lua-resty-core/issues{/number}","pulls_url":"https://api.github.com/repos/splitice/lua-resty-core/pulls{/number}","milestones_url":"https://api.github.com/repos/splitice/lua-resty-core/milestones{/number}","notifications_url":"https://api.github.com/repos/splitice/lua-resty-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/splitice/lua-resty-core/labels{/name}","releases_url":"https://api.github.com/repos/splitice/lua-resty-core/releases{/id}","deployments_url":"https://api.github.com/repos/splitice/lua-resty-core/deployments","created_at":"2015-12-28T11:42:27Z","updated_at":"2016-02-04T08:22:08Z","pushed_at":"2016-02-04T23:19:50Z","git_url":"git://github.com/splitice/lua-resty-core.git","ssh_url":"git@github.com:splitice/lua-resty-core.git","clone_url":"https://github.com/splitice/lua-resty-core.git","svn_url":"https://github.com/splitice/lua-resty-core","homepage":null,"size":336,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":"openresty:master","ref":"master","sha":"40445b12c0359eb82702f0097cd65948c245b6a4","user":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"repo":{"id":9782547,"name":"lua-resty-core","full_name":"openresty/lua-resty-core","owner":{"login":"openresty","id":7390180,"avatar_url":"https://avatars.githubusercontent.com/u/7390180?v=3","gravatar_id":"","url":"https://api.github.com/users/openresty","html_url":"https://github.com/openresty","followers_url":"https://api.github.com/users/openresty/followers","following_url":"https://api.github.com/users/openresty/following{/other_user}","gists_url":"https://api.github.com/users/openresty/gists{/gist_id}","starred_url":"https://api.github.com/users/openresty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openresty/subscriptions","organizations_url":"https://api.github.com/users/openresty/orgs","repos_url":"https://api.github.com/users/openresty/repos","events_url":"https://api.github.com/users/openresty/events{/privacy}","received_events_url":"https://api.github.com/users/openresty/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openresty/lua-resty-core","description":"New FFI-based API for lua-nginx-module","fork":false,"url":"https://api.github.com/repos/openresty/lua-resty-core","forks_url":"https://api.github.com/repos/openresty/lua-resty-core/forks","keys_url":"https://api.github.com/repos/openresty/lua-resty-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openresty/lua-resty-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openresty/lua-resty-core/teams","hooks_url":"https://api.github.com/repos/openresty/lua-resty-core/hooks","issue_events_url":"https://api.github.com/repos/openresty/lua-resty-core/issues/events{/number}","events_url":"https://api.github.com/repos/openresty/lua-resty-core/events","assignees_url":"https://api.github.com/repos/openresty/lua-resty-core/assignees{/user}","branches_url":"https://api.github.com/repos/openresty/lua-resty-core/branches{/branch}","tags_url":"https://api.github.com/repos/openresty/lua-resty-core/tags","blobs_url":"https://api.github.com/repos/openresty/lua-resty-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openresty/lua-resty-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openresty/lua-resty-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/openresty/lua-resty-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openresty/lua-resty-core/statuses/{sha}","languages_url":"https://api.github.com/repos/openresty/lua-resty-core/languages","stargazers_url":"https://api.github.com/repos/openresty/lua-resty-core/stargazers","contributors_url":"https://api.github.com/repos/openresty/lua-resty-core/contributors","subscribers_url":"https://api.github.com/repos/openresty/lua-resty-core/subscribers","subscription_url":"https://api.github.com/repos/openresty/lua-resty-core/subscription","commits_url":"https://api.github.com/repos/openresty/lua-resty-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/openresty/lua-resty-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/openresty/lua-resty-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/openresty/lua-resty-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/openresty/lua-resty-core/contents/{+path}","compare_url":"https://api.github.com/repos/openresty/lua-resty-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openresty/lua-resty-core/merges","archive_url":"https://api.github.com/repos/openresty/lua-resty-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openresty/lua-resty-core/downloads","issues_url":"https://api.github.com/repos/openresty/lua-resty-core/issues{/number}","pulls_url":"https://api.github.com/repos/openresty/lua-resty-core/pulls{/number}","milestones_url":"https://api.github.com/repos/openresty/lua-resty-core/milestones{/number}","notifications_url":"https://api.github.com/repos/openresty/lua-resty-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openresty/lua-resty-core/labels{/name}","releases_url":"https://api.github.com/repos/openresty/lua-resty-core/releases{/id}","deployments_url":"https://api.github.com/repos/openresty/lua-resty-core/deployments","created_at":"2013-04-30T23:53:32Z","updated_at":"2016-02-02T10:51:13Z","pushed_at":"2016-02-04T23:25:02Z","git_url":"git://github.com/openresty/lua-resty-core.git","ssh_url":"git@github.com:openresty/lua-resty-core.git","clone_url":"https://github.com/openresty/lua-resty-core.git","svn_url":"https://github.com/openresty/lua-resty-core","homepage":null,"size":430,"stargazers_count":118,"watchers_count":118,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":6,"forks":23,"open_issues":6,"watchers":118,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/25"},"html":{"href":"https://github.com/openresty/lua-resty-core/pull/25"},"issue":{"href":"https://api.github.com/repos/openresty/lua-resty-core/issues/25"},"comments":{"href":"https://api.github.com/repos/openresty/lua-resty-core/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openresty/lua-resty-core/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/openresty/lua-resty-core/statuses/ce47583ef7a3eb798195f544e91161dcecf81c16"}}}}