{"action":"created","issue":{"url":"https://api.github.com/repos/mweagle/Sparta/issues/24","repository_url":"https://api.github.com/repos/mweagle/Sparta","labels_url":"https://api.github.com/repos/mweagle/Sparta/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/mweagle/Sparta/issues/24/comments","events_url":"https://api.github.com/repos/mweagle/Sparta/issues/24/events","html_url":"https://github.com/mweagle/Sparta/pull/24","id":182046849,"number":24,"title":"Added the ability to override the function name","user":{"login":"thomshutt","id":907370,"avatar_url":"https://avatars.githubusercontent.com/u/907370?v=3","gravatar_id":"","url":"https://api.github.com/users/thomshutt","html_url":"https://github.com/thomshutt","followers_url":"https://api.github.com/users/thomshutt/followers","following_url":"https://api.github.com/users/thomshutt/following{/other_user}","gists_url":"https://api.github.com/users/thomshutt/gists{/gist_id}","starred_url":"https://api.github.com/users/thomshutt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomshutt/subscriptions","organizations_url":"https://api.github.com/users/thomshutt/orgs","repos_url":"https://api.github.com/users/thomshutt/repos","events_url":"https://api.github.com/users/thomshutt/events{/privacy}","received_events_url":"https://api.github.com/users/thomshutt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-10T15:38:28Z","updated_at":"2016-10-16T00:22:02Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mweagle/Sparta/pulls/24","html_url":"https://github.com/mweagle/Sparta/pull/24","diff_url":"https://github.com/mweagle/Sparta/pull/24.diff","patch_url":"https://github.com/mweagle/Sparta/pull/24.patch"},"body":"This is useful in the following situation:\r\n\r\n```go\r\nfor c := range configs {\r\n  handler := &Handler{c}\r\n  cwEventFn := sparta.NewLambda(\r\n    sparta.IAMRoleDefinition{}, \r\n    handler.LambdaHandler, \r\n    &sparta.LambdaFunctionOptions{\r\n      Name: fmt.Sprintf(\"xxx-%s\", c.Name),\r\n    }\r\n  )\r\n}\r\n```\r\n\r\n(Currently, I'm blocked from doing this because the function name obtained through reflection is the same for each instance of `Handler`)"},"comment":{"url":"https://api.github.com/repos/mweagle/Sparta/issues/comments/254019407","html_url":"https://github.com/mweagle/Sparta/pull/24#issuecomment-254019407","issue_url":"https://api.github.com/repos/mweagle/Sparta/issues/24","id":254019407,"user":{"login":"mweagle","id":404458,"avatar_url":"https://avatars.githubusercontent.com/u/404458?v=3","gravatar_id":"","url":"https://api.github.com/users/mweagle","html_url":"https://github.com/mweagle","followers_url":"https://api.github.com/users/mweagle/followers","following_url":"https://api.github.com/users/mweagle/following{/other_user}","gists_url":"https://api.github.com/users/mweagle/gists{/gist_id}","starred_url":"https://api.github.com/users/mweagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mweagle/subscriptions","organizations_url":"https://api.github.com/users/mweagle/orgs","repos_url":"https://api.github.com/users/mweagle/repos","events_url":"https://api.github.com/users/mweagle/events{/privacy}","received_events_url":"https://api.github.com/users/mweagle/received_events","type":"User","site_admin":false},"created_at":"2016-10-16T00:22:02Z","updated_at":"2016-10-16T00:22:02Z","body":"Thanks Thom. Ill take a look and see how to tie this into Discover. "}}
{"actor":{"display_login":"mweagle"}}