{"action":"opened","number":3,"pull_request":{"url":"https://api.github.com/repos/chapsuk/mserv/pulls/3","id":197805676,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3ODA1Njc2","html_url":"https://github.com/chapsuk/mserv/pull/3","diff_url":"https://github.com/chapsuk/mserv/pull/3.diff","patch_url":"https://github.com/chapsuk/mserv/pull/3.patch","issue_url":"https://api.github.com/repos/chapsuk/mserv/issues/3","number":3,"state":"open","locked":false,"title":"Added special constructor and type for support dig groups","user":{"login":"chapsuk","id":5525114,"node_id":"MDQ6VXNlcjU1MjUxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5525114?v=4","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"body":"usage example:\r\n\r\n```go\r\ntype HTTPServerResult struct {\r\n\tdig.Out\r\n\tServer mserv.Server `group:\"mserv\"`\r\n}\r\n\r\nfunc NewPprofServer(v *viper.Viper) HTTPServerResult {\r\n\treturn HTTPServerResult{\r\n\t\tServer: mserv.NewHTTPServer(time.Second, &http.Server{\r\n\t\t\tAddr:    \"9080\",\r\n\t\t\tHandler: http.DefaultServeMux,\r\n\t\t}),\r\n\t}\r\n}\r\n\r\nfunc main() {\r\n  d := dig.New()\r\n\r\n  d.Provide(mserv.NewByDig)\r\n  d.Provide(NewPprofServer)\r\n\r\n  dic.Invoke(func(m mserv.Server){\r\n    m.Start() // pprof server injected\r\n}\r\n```\r\n","created_at":"2018-06-27T17:44:46Z","updated_at":"2018-06-27T17:44:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chapsuk/mserv/pulls/3/commits","review_comments_url":"https://api.github.com/repos/chapsuk/mserv/pulls/3/comments","review_comment_url":"https://api.github.com/repos/chapsuk/mserv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chapsuk/mserv/issues/3/comments","statuses_url":"https://api.github.com/repos/chapsuk/mserv/statuses/9188ff237b6beb5fd83d0af9a894f38ea9cc5307","head":{"label":"chapsuk:digmserv","ref":"digmserv","sha":"9188ff237b6beb5fd83d0af9a894f38ea9cc5307","user":{"login":"chapsuk","id":5525114,"node_id":"MDQ6VXNlcjU1MjUxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5525114?v=4","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"repo":{"id":132001487,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwMDE0ODc=","name":"mserv","full_name":"chapsuk/mserv","owner":{"login":"chapsuk","id":5525114,"node_id":"MDQ6VXNlcjU1MjUxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5525114?v=4","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chapsuk/mserv","description":null,"fork":false,"url":"https://api.github.com/repos/chapsuk/mserv","forks_url":"https://api.github.com/repos/chapsuk/mserv/forks","keys_url":"https://api.github.com/repos/chapsuk/mserv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chapsuk/mserv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chapsuk/mserv/teams","hooks_url":"https://api.github.com/repos/chapsuk/mserv/hooks","issue_events_url":"https://api.github.com/repos/chapsuk/mserv/issues/events{/number}","events_url":"https://api.github.com/repos/chapsuk/mserv/events","assignees_url":"https://api.github.com/repos/chapsuk/mserv/assignees{/user}","branches_url":"https://api.github.com/repos/chapsuk/mserv/branches{/branch}","tags_url":"https://api.github.com/repos/chapsuk/mserv/tags","blobs_url":"https://api.github.com/repos/chapsuk/mserv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chapsuk/mserv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chapsuk/mserv/git/refs{/sha}","trees_url":"https://api.github.com/repos/chapsuk/mserv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chapsuk/mserv/statuses/{sha}","languages_url":"https://api.github.com/repos/chapsuk/mserv/languages","stargazers_url":"https://api.github.com/repos/chapsuk/mserv/stargazers","contributors_url":"https://api.github.com/repos/chapsuk/mserv/contributors","subscribers_url":"https://api.github.com/repos/chapsuk/mserv/subscribers","subscription_url":"https://api.github.com/repos/chapsuk/mserv/subscription","commits_url":"https://api.github.com/repos/chapsuk/mserv/commits{/sha}","git_commits_url":"https://api.github.com/repos/chapsuk/mserv/git/commits{/sha}","comments_url":"https://api.github.com/repos/chapsuk/mserv/comments{/number}","issue_comment_url":"https://api.github.com/repos/chapsuk/mserv/issues/comments{/number}","contents_url":"https://api.github.com/repos/chapsuk/mserv/contents/{+path}","compare_url":"https://api.github.com/repos/chapsuk/mserv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chapsuk/mserv/merges","archive_url":"https://api.github.com/repos/chapsuk/mserv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chapsuk/mserv/downloads","issues_url":"https://api.github.com/repos/chapsuk/mserv/issues{/number}","pulls_url":"https://api.github.com/repos/chapsuk/mserv/pulls{/number}","milestones_url":"https://api.github.com/repos/chapsuk/mserv/milestones{/number}","notifications_url":"https://api.github.com/repos/chapsuk/mserv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chapsuk/mserv/labels{/name}","releases_url":"https://api.github.com/repos/chapsuk/mserv/releases{/id}","deployments_url":"https://api.github.com/repos/chapsuk/mserv/deployments","created_at":"2018-05-03T13:45:57Z","updated_at":"2018-05-21T09:23:25Z","pushed_at":"2018-06-27T17:41:09Z","git_url":"git://github.com/chapsuk/mserv.git","ssh_url":"git@github.com:chapsuk/mserv.git","clone_url":"https://github.com/chapsuk/mserv.git","svn_url":"https://github.com/chapsuk/mserv","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"chapsuk:master","ref":"master","sha":"80eba81f773830bca161697fa55c1525bb128e5f","user":{"login":"chapsuk","id":5525114,"node_id":"MDQ6VXNlcjU1MjUxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5525114?v=4","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"repo":{"id":132001487,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIwMDE0ODc=","name":"mserv","full_name":"chapsuk/mserv","owner":{"login":"chapsuk","id":5525114,"node_id":"MDQ6VXNlcjU1MjUxMTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/5525114?v=4","gravatar_id":"","url":"https://api.github.com/users/chapsuk","html_url":"https://github.com/chapsuk","followers_url":"https://api.github.com/users/chapsuk/followers","following_url":"https://api.github.com/users/chapsuk/following{/other_user}","gists_url":"https://api.github.com/users/chapsuk/gists{/gist_id}","starred_url":"https://api.github.com/users/chapsuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chapsuk/subscriptions","organizations_url":"https://api.github.com/users/chapsuk/orgs","repos_url":"https://api.github.com/users/chapsuk/repos","events_url":"https://api.github.com/users/chapsuk/events{/privacy}","received_events_url":"https://api.github.com/users/chapsuk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chapsuk/mserv","description":null,"fork":false,"url":"https://api.github.com/repos/chapsuk/mserv","forks_url":"https://api.github.com/repos/chapsuk/mserv/forks","keys_url":"https://api.github.com/repos/chapsuk/mserv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chapsuk/mserv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chapsuk/mserv/teams","hooks_url":"https://api.github.com/repos/chapsuk/mserv/hooks","issue_events_url":"https://api.github.com/repos/chapsuk/mserv/issues/events{/number}","events_url":"https://api.github.com/repos/chapsuk/mserv/events","assignees_url":"https://api.github.com/repos/chapsuk/mserv/assignees{/user}","branches_url":"https://api.github.com/repos/chapsuk/mserv/branches{/branch}","tags_url":"https://api.github.com/repos/chapsuk/mserv/tags","blobs_url":"https://api.github.com/repos/chapsuk/mserv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chapsuk/mserv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chapsuk/mserv/git/refs{/sha}","trees_url":"https://api.github.com/repos/chapsuk/mserv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chapsuk/mserv/statuses/{sha}","languages_url":"https://api.github.com/repos/chapsuk/mserv/languages","stargazers_url":"https://api.github.com/repos/chapsuk/mserv/stargazers","contributors_url":"https://api.github.com/repos/chapsuk/mserv/contributors","subscribers_url":"https://api.github.com/repos/chapsuk/mserv/subscribers","subscription_url":"https://api.github.com/repos/chapsuk/mserv/subscription","commits_url":"https://api.github.com/repos/chapsuk/mserv/commits{/sha}","git_commits_url":"https://api.github.com/repos/chapsuk/mserv/git/commits{/sha}","comments_url":"https://api.github.com/repos/chapsuk/mserv/comments{/number}","issue_comment_url":"https://api.github.com/repos/chapsuk/mserv/issues/comments{/number}","contents_url":"https://api.github.com/repos/chapsuk/mserv/contents/{+path}","compare_url":"https://api.github.com/repos/chapsuk/mserv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chapsuk/mserv/merges","archive_url":"https://api.github.com/repos/chapsuk/mserv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chapsuk/mserv/downloads","issues_url":"https://api.github.com/repos/chapsuk/mserv/issues{/number}","pulls_url":"https://api.github.com/repos/chapsuk/mserv/pulls{/number}","milestones_url":"https://api.github.com/repos/chapsuk/mserv/milestones{/number}","notifications_url":"https://api.github.com/repos/chapsuk/mserv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chapsuk/mserv/labels{/name}","releases_url":"https://api.github.com/repos/chapsuk/mserv/releases{/id}","deployments_url":"https://api.github.com/repos/chapsuk/mserv/deployments","created_at":"2018-05-03T13:45:57Z","updated_at":"2018-05-21T09:23:25Z","pushed_at":"2018-06-27T17:41:09Z","git_url":"git://github.com/chapsuk/mserv.git","ssh_url":"git@github.com:chapsuk/mserv.git","clone_url":"https://github.com/chapsuk/mserv.git","svn_url":"https://github.com/chapsuk/mserv","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chapsuk/mserv/pulls/3"},"html":{"href":"https://github.com/chapsuk/mserv/pull/3"},"issue":{"href":"https://api.github.com/repos/chapsuk/mserv/issues/3"},"comments":{"href":"https://api.github.com/repos/chapsuk/mserv/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/chapsuk/mserv/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/chapsuk/mserv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chapsuk/mserv/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/chapsuk/mserv/statuses/9188ff237b6beb5fd83d0af9a894f38ea9cc5307"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":13,"deletions":0,"changed_files":1}}
{"actor":{"display_login":"chapsuk"}}