{"id":24791491,"url":"https://github.com/sofyan48/duck","last_synced_at":"2025-07-17T18:12:09.709Z","repository":{"id":72494979,"uuid":"200703254","full_name":"sofyan48/duck","owner":"sofyan48","description":"Task Scheduler Service","archived":false,"fork":false,"pushed_at":"2019-12-05T07:50:15.000Z","size":96,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-19T14:07:48.654Z","etag":null,"topics":["broker","duck","machinery","queue","task"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sofyan48.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-05T17:53:16.000Z","updated_at":"2020-02-03T13:49:59.000Z","dependencies_parsed_at":"2023-03-11T10:16:23.307Z","dependency_job_id":null,"html_url":"https://github.com/sofyan48/duck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofyan48%2Fduck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofyan48%2Fduck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofyan48%2Fduck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofyan48%2Fduck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofyan48","download_url":"https://codeload.github.com/sofyan48/duck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245285660,"owners_count":20590450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["broker","duck","machinery","queue","task"],"created_at":"2025-01-29T19:17:14.858Z","updated_at":"2025-03-24T14:23:05.690Z","avatar_url":"https://github.com/sofyan48.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DUCK\nQueue Task Schedule service\n\n## Build\nBuild duck\n```\ngo build duck src/main.go\n```\n\nor execute makefile\n\n```\nmake build\n```\n\n## Setting environment for duck\nCreate .duck file in home user directory and see env.example for value\n\n```\nnano ~/.duck\n```\n\n\n## Start Worker\nStart Worker\n```\n./main worker start --name=duckTest --f templates/worker/task.yml\n```\n## Queue CLI Mode\n### Send Queue\nSend Queue\n```\n./main send -f templates/send/duck.yml\n```\n\nor create your project directory then see templates/send/duck.yml for value\n\n```\n./main send\n```\n\n### Get Result Queue CLI MODE\nGet Result Queue\n\n```\n./main get -i $UUID -f templates/send/duck.yml\n```\n\n## Queue REST Mode\n### Starting Server\n```\n./main server start\n```\n\n### Send Queue\n```\ncurl -X POST \\\n  http://localhost:5000/api/send/task \\\n  -H 'Content-Type: application/json' \\\n  -H 'cache-control: no-cache' \\\n  -d '{\n  \"duck\": {\n    \"task\": \"Send To Server GET\",\n    \"action\": {\n      \"url\": \"$URL\", ## URL DEFINE\n      \"method\": \"GET\",\n      \"trigger\": \"request\",\n      \"worker\": \"$WORKER\" ## WORKER NAME\n    },\n    \"headers\": [\n      {\n        \"name\": \"Authorization\",\n        \"value\": \"xxxx\",\n        \"type\": \"string\"\n      }\n    ],\n    \"parameter\": [\n      {\n        \"name\": \"microsite_url\",\n        \"value\": \"event-name-2740\",\n        \"type\": \"string\"\n      }\n    ],\n    \"setting\": {\n      \"loop\": true\n    }\n  }\n}'\n```\n\n### Get Result\n```\ncurl -X POST \\\n  http://localhost:5000/api/get/task \\\n  -H 'Content-Type: application/json' \\\n  -H 'cache-control: no-cache' \\\n  -d '{\n\t  \"duck\": {\n\t  \t\"uuid\" : \"c9ab13c9410251c4c0f83d9b\",\n\t    \"action\": {\n\t      \"trigger\": \"request\",\n\t      \"worker\": \"TEST1\"\n\t    }\n\t}\n}'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofyan48%2Fduck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofyan48%2Fduck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofyan48%2Fduck/lists"}