{"id":17553543,"url":"https://github.com/gavincarr/dirqueue","last_synced_at":"2025-10-19T03:58:25.900Z","repository":{"id":57574423,"uuid":"353550168","full_name":"gavincarr/dirqueue","owner":"gavincarr","description":"Partial port of Justin Mason's IPC::DirQueue perl module to Go.","archived":false,"fork":false,"pushed_at":"2021-04-01T02:42:31.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T22:51:12.115Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/gavincarr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-01T02:33:22.000Z","updated_at":"2021-04-01T02:34:00.000Z","dependencies_parsed_at":"2022-08-30T23:12:02.579Z","dependency_job_id":null,"html_url":"https://github.com/gavincarr/dirqueue","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincarr%2Fdirqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincarr%2Fdirqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincarr%2Fdirqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavincarr%2Fdirqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavincarr","download_url":"https://codeload.github.com/gavincarr/dirqueue/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246162104,"owners_count":20733351,"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":[],"created_at":"2024-10-21T06:42:47.927Z","updated_at":"2025-10-19T03:58:20.829Z","avatar_url":"https://github.com/gavincarr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\nOverview\n--------\n\nThis is a stripped-down partial port of Justin Mason's\n[IPC::DirQueue perl module](https://github.com/jmason/IPC-DirQueue)\nto Go.\n\nThe initial goal is just to implement Go equivalents to IPC::DirQueue's\n`enqueue_{file,fh,string}` methods, allowing Go utilities and daemons\nto submit data files to existing IPC::DirQueue queues without having\nto call out externally to perl.\n\n\nInstallation\n------------\n\n    go get github.com/gavincarr/dirqueue\n\n\nAPI\n---\n\n    # Constructor - requires path to queue\n    dq, err := dirqueue.New(\"/path/to/queue\")\n    if err != nil { ... }\n\n    # Add options (metadata and priorities only, for now), if required\n    dqopt := dirqueue.DefaultOptions()\n    dqopt.Metadata[\"uuid\"] = \"84b83cbe-4d7c-4338-b3b5-a99eb5ea671d\"\n    dqopt.Metadata[\"foo\"] = \"12345\"\n    dqopt.Priority = 30\n\n    # Enqueue from file, without options\n    err = dq.EnqueueFile(\"/path/to/file\", nil)\n\n    # Enqueue from reader or filehandle, with explicit options\n    err = dq.EnqueueReader(filehandle, dqopt)\n\n    # Enqueue from string data, with explicit options\n    err = dq.EnqueueString(\"Here lies the data.\\n\", dqopt)\n\n\nCopyright and Licence\n---------------------\n\nCopyright 2021 Gavin Carr \u003cgavin@openfusion.com.au\u003e.\n\nThis project is licensed under the terms of the MIT licence.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavincarr%2Fdirqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavincarr%2Fdirqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavincarr%2Fdirqueue/lists"}