{"action":"created","comment":{"url":"https://api.github.com/repos/solettaproject/go-soletta/pulls/comments/74966845","id":74966845,"diff_hunk":"@@ -0,0 +1,77 @@\n+package soletta\n+\n+/*\n+#include <soletta.h>\n+#include <sol-flow.h>\n+*/\n+import \"C\"\n+import \"unsafe\"\n+import \"image/color\"\n+import \"time\"\n+\n+//Represents a node in the flow based programming paradigm\n+type FlowNode struct {\n+\tcnode *C.struct_sol_flow_node\n+}\n+\n+//Retrieves the type associated with the flow node\n+//Returns a nil value in case of error\n+func (fn *FlowNode) GetType() *FlowNodeType {\n+\tctype := C.sol_flow_node_get_type(fn.cnode)\n+\tif ctype == nil {\n+\t\treturn nil\n+\t}\n+\treturn &FlowNodeType{ctype}\n+}\n+\n+//Retrieves the port index by its name\n+func (fn *FlowNode) GetPort(name string, direction int) (portIndex uint16, ok bool) {\n+\tt := fn.GetType()\n+\tif t == nil {\n+\t\treturn C.UINT16_MAX, false\n+\t}\n+\treturn t.GetPort(name, direction)\n+}\n+\n+//Sends a packet on this port\n+func (fn *FlowNode) SendPacket(packetType string, value interface{}, port uint16) {","path":"soletta/flow_node.go","position":null,"original_position":37,"commit_id":"714eb606b07e72db51cb4b0fbbe6166a477d9d74","original_commit_id":"fbdb7896b2a9422dc13c2403a0a266a4d82d0a31","user":{"login":"ceolin","id":882919,"avatar_url":"https://avatars.githubusercontent.com/u/882919?v=3","gravatar_id":"","url":"https://api.github.com/users/ceolin","html_url":"https://github.com/ceolin","followers_url":"https://api.github.com/users/ceolin/followers","following_url":"https://api.github.com/users/ceolin/following{/other_user}","gists_url":"https://api.github.com/users/ceolin/gists{/gist_id}","starred_url":"https://api.github.com/users/ceolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceolin/subscriptions","organizations_url":"https://api.github.com/users/ceolin/orgs","repos_url":"https://api.github.com/users/ceolin/repos","events_url":"https://api.github.com/users/ceolin/events{/privacy}","received_events_url":"https://api.github.com/users/ceolin/received_events","type":"User","site_admin":false},"body":"this function should return a value in case of error. `packetType` can be invalid or `C.sol_flow_send_*_packet()` can fail.","created_at":"2016-08-16T16:11:54Z","updated_at":"2016-08-16T16:11:54Z","html_url":"https://github.com/solettaproject/go-soletta/pull/4#discussion_r74966845","pull_request_url":"https://api.github.com/repos/solettaproject/go-soletta/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/solettaproject/go-soletta/pulls/comments/74966845"},"html":{"href":"https://github.com/solettaproject/go-soletta/pull/4#discussion_r74966845"},"pull_request":{"href":"https://api.github.com/repos/solettaproject/go-soletta/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/solettaproject/go-soletta/pulls/4","id":76855327,"html_url":"https://github.com/solettaproject/go-soletta/pull/4","diff_url":"https://github.com/solettaproject/go-soletta/pull/4.diff","patch_url":"https://github.com/solettaproject/go-soletta/pull/4.patch","issue_url":"https://api.github.com/repos/solettaproject/go-soletta/issues/4","number":4,"state":"open","locked":false,"title":"Flow bindings: draft","user":{"login":"kaspersky","id":1458191,"avatar_url":"https://avatars.githubusercontent.com/u/1458191?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspersky","html_url":"https://github.com/kaspersky","followers_url":"https://api.github.com/users/kaspersky/followers","following_url":"https://api.github.com/users/kaspersky/following{/other_user}","gists_url":"https://api.github.com/users/kaspersky/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspersky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspersky/subscriptions","organizations_url":"https://api.github.com/users/kaspersky/orgs","repos_url":"https://api.github.com/users/kaspersky/repos","events_url":"https://api.github.com/users/kaspersky/events{/privacy}","received_events_url":"https://api.github.com/users/kaspersky/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-09T19:43:54Z","updated_at":"2016-08-16T16:11:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6d3c9e3a9cb2d05b968ec9077af904d346035b6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/solettaproject/go-soletta/pulls/4/commits","review_comments_url":"https://api.github.com/repos/solettaproject/go-soletta/pulls/4/comments","review_comment_url":"https://api.github.com/repos/solettaproject/go-soletta/pulls/comments{/number}","comments_url":"https://api.github.com/repos/solettaproject/go-soletta/issues/4/comments","statuses_url":"https://api.github.com/repos/solettaproject/go-soletta/statuses/714eb606b07e72db51cb4b0fbbe6166a477d9d74","head":{"label":"kaspersky:master","ref":"master","sha":"714eb606b07e72db51cb4b0fbbe6166a477d9d74","user":{"login":"kaspersky","id":1458191,"avatar_url":"https://avatars.githubusercontent.com/u/1458191?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspersky","html_url":"https://github.com/kaspersky","followers_url":"https://api.github.com/users/kaspersky/followers","following_url":"https://api.github.com/users/kaspersky/following{/other_user}","gists_url":"https://api.github.com/users/kaspersky/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspersky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspersky/subscriptions","organizations_url":"https://api.github.com/users/kaspersky/orgs","repos_url":"https://api.github.com/users/kaspersky/repos","events_url":"https://api.github.com/users/kaspersky/events{/privacy}","received_events_url":"https://api.github.com/users/kaspersky/received_events","type":"User","site_admin":false},"repo":{"id":62559730,"name":"go-soletta","full_name":"kaspersky/go-soletta","owner":{"login":"kaspersky","id":1458191,"avatar_url":"https://avatars.githubusercontent.com/u/1458191?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspersky","html_url":"https://github.com/kaspersky","followers_url":"https://api.github.com/users/kaspersky/followers","following_url":"https://api.github.com/users/kaspersky/following{/other_user}","gists_url":"https://api.github.com/users/kaspersky/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspersky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspersky/subscriptions","organizations_url":"https://api.github.com/users/kaspersky/orgs","repos_url":"https://api.github.com/users/kaspersky/repos","events_url":"https://api.github.com/users/kaspersky/events{/privacy}","received_events_url":"https://api.github.com/users/kaspersky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kaspersky/go-soletta","description":"Go language bindings for Soletta Project","fork":true,"url":"https://api.github.com/repos/kaspersky/go-soletta","forks_url":"https://api.github.com/repos/kaspersky/go-soletta/forks","keys_url":"https://api.github.com/repos/kaspersky/go-soletta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaspersky/go-soletta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaspersky/go-soletta/teams","hooks_url":"https://api.github.com/repos/kaspersky/go-soletta/hooks","issue_events_url":"https://api.github.com/repos/kaspersky/go-soletta/issues/events{/number}","events_url":"https://api.github.com/repos/kaspersky/go-soletta/events","assignees_url":"https://api.github.com/repos/kaspersky/go-soletta/assignees{/user}","branches_url":"https://api.github.com/repos/kaspersky/go-soletta/branches{/branch}","tags_url":"https://api.github.com/repos/kaspersky/go-soletta/tags","blobs_url":"https://api.github.com/repos/kaspersky/go-soletta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaspersky/go-soletta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaspersky/go-soletta/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaspersky/go-soletta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaspersky/go-soletta/statuses/{sha}","languages_url":"https://api.github.com/repos/kaspersky/go-soletta/languages","stargazers_url":"https://api.github.com/repos/kaspersky/go-soletta/stargazers","contributors_url":"https://api.github.com/repos/kaspersky/go-soletta/contributors","subscribers_url":"https://api.github.com/repos/kaspersky/go-soletta/subscribers","subscription_url":"https://api.github.com/repos/kaspersky/go-soletta/subscription","commits_url":"https://api.github.com/repos/kaspersky/go-soletta/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaspersky/go-soletta/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaspersky/go-soletta/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaspersky/go-soletta/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaspersky/go-soletta/contents/{+path}","compare_url":"https://api.github.com/repos/kaspersky/go-soletta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaspersky/go-soletta/merges","archive_url":"https://api.github.com/repos/kaspersky/go-soletta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaspersky/go-soletta/downloads","issues_url":"https://api.github.com/repos/kaspersky/go-soletta/issues{/number}","pulls_url":"https://api.github.com/repos/kaspersky/go-soletta/pulls{/number}","milestones_url":"https://api.github.com/repos/kaspersky/go-soletta/milestones{/number}","notifications_url":"https://api.github.com/repos/kaspersky/go-soletta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaspersky/go-soletta/labels{/name}","releases_url":"https://api.github.com/repos/kaspersky/go-soletta/releases{/id}","deployments_url":"https://api.github.com/repos/kaspersky/go-soletta/deployments","created_at":"2016-07-04T12:15:29Z","updated_at":"2016-07-04T12:15:30Z","pushed_at":"2016-08-16T01:54:59Z","git_url":"git://github.com/kaspersky/go-soletta.git","ssh_url":"git@github.com:kaspersky/go-soletta.git","clone_url":"https://github.com/kaspersky/go-soletta.git","svn_url":"https://github.com/kaspersky/go-soletta","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"solettaproject:master","ref":"master","sha":"072aba6a4bacc25f5718eb5f260de25b5b6e8731","user":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"repo":{"id":61070486,"name":"go-soletta","full_name":"solettaproject/go-soletta","owner":{"login":"solettaproject","id":12736897,"avatar_url":"https://avatars.githubusercontent.com/u/12736897?v=3","gravatar_id":"","url":"https://api.github.com/users/solettaproject","html_url":"https://github.com/solettaproject","followers_url":"https://api.github.com/users/solettaproject/followers","following_url":"https://api.github.com/users/solettaproject/following{/other_user}","gists_url":"https://api.github.com/users/solettaproject/gists{/gist_id}","starred_url":"https://api.github.com/users/solettaproject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solettaproject/subscriptions","organizations_url":"https://api.github.com/users/solettaproject/orgs","repos_url":"https://api.github.com/users/solettaproject/repos","events_url":"https://api.github.com/users/solettaproject/events{/privacy}","received_events_url":"https://api.github.com/users/solettaproject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/solettaproject/go-soletta","description":"Go language bindings for Soletta Project","fork":false,"url":"https://api.github.com/repos/solettaproject/go-soletta","forks_url":"https://api.github.com/repos/solettaproject/go-soletta/forks","keys_url":"https://api.github.com/repos/solettaproject/go-soletta/keys{/key_id}","collaborators_url":"https://api.github.com/repos/solettaproject/go-soletta/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/solettaproject/go-soletta/teams","hooks_url":"https://api.github.com/repos/solettaproject/go-soletta/hooks","issue_events_url":"https://api.github.com/repos/solettaproject/go-soletta/issues/events{/number}","events_url":"https://api.github.com/repos/solettaproject/go-soletta/events","assignees_url":"https://api.github.com/repos/solettaproject/go-soletta/assignees{/user}","branches_url":"https://api.github.com/repos/solettaproject/go-soletta/branches{/branch}","tags_url":"https://api.github.com/repos/solettaproject/go-soletta/tags","blobs_url":"https://api.github.com/repos/solettaproject/go-soletta/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/solettaproject/go-soletta/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/solettaproject/go-soletta/git/refs{/sha}","trees_url":"https://api.github.com/repos/solettaproject/go-soletta/git/trees{/sha}","statuses_url":"https://api.github.com/repos/solettaproject/go-soletta/statuses/{sha}","languages_url":"https://api.github.com/repos/solettaproject/go-soletta/languages","stargazers_url":"https://api.github.com/repos/solettaproject/go-soletta/stargazers","contributors_url":"https://api.github.com/repos/solettaproject/go-soletta/contributors","subscribers_url":"https://api.github.com/repos/solettaproject/go-soletta/subscribers","subscription_url":"https://api.github.com/repos/solettaproject/go-soletta/subscription","commits_url":"https://api.github.com/repos/solettaproject/go-soletta/commits{/sha}","git_commits_url":"https://api.github.com/repos/solettaproject/go-soletta/git/commits{/sha}","comments_url":"https://api.github.com/repos/solettaproject/go-soletta/comments{/number}","issue_comment_url":"https://api.github.com/repos/solettaproject/go-soletta/issues/comments{/number}","contents_url":"https://api.github.com/repos/solettaproject/go-soletta/contents/{+path}","compare_url":"https://api.github.com/repos/solettaproject/go-soletta/compare/{base}...{head}","merges_url":"https://api.github.com/repos/solettaproject/go-soletta/merges","archive_url":"https://api.github.com/repos/solettaproject/go-soletta/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/solettaproject/go-soletta/downloads","issues_url":"https://api.github.com/repos/solettaproject/go-soletta/issues{/number}","pulls_url":"https://api.github.com/repos/solettaproject/go-soletta/pulls{/number}","milestones_url":"https://api.github.com/repos/solettaproject/go-soletta/milestones{/number}","notifications_url":"https://api.github.com/repos/solettaproject/go-soletta/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/solettaproject/go-soletta/labels{/name}","releases_url":"https://api.github.com/repos/solettaproject/go-soletta/releases{/id}","deployments_url":"https://api.github.com/repos/solettaproject/go-soletta/deployments","created_at":"2016-06-13T21:20:02Z","updated_at":"2016-06-20T14:54:44Z","pushed_at":"2016-08-16T01:55:00Z","git_url":"git://github.com/solettaproject/go-soletta.git","ssh_url":"git@github.com:solettaproject/go-soletta.git","clone_url":"https://github.com/solettaproject/go-soletta.git","svn_url":"https://github.com/solettaproject/go-soletta","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/solettaproject/go-soletta/pulls/4"},"html":{"href":"https://github.com/solettaproject/go-soletta/pull/4"},"issue":{"href":"https://api.github.com/repos/solettaproject/go-soletta/issues/4"},"comments":{"href":"https://api.github.com/repos/solettaproject/go-soletta/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/solettaproject/go-soletta/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/solettaproject/go-soletta/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/solettaproject/go-soletta/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/solettaproject/go-soletta/statuses/714eb606b07e72db51cb4b0fbbe6166a477d9d74"}}}}
{"actor":{"display_login":"ceolin"}}