{"id":38919571,"url":"https://github.com/spurge/actionqueuego","last_synced_at":"2026-01-17T15:32:16.162Z","repository":{"id":57662038,"uuid":"83160605","full_name":"spurge/actionqueuego","owner":"spurge","description":"Data event stream lib and server","archived":false,"fork":false,"pushed_at":"2017-03-25T20:54:20.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-20T10:22:30.117Z","etag":null,"topics":["event-sourcing","event-stream"],"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/spurge.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}},"created_at":"2017-02-25T20:29:55.000Z","updated_at":"2017-06-29T14:11:53.000Z","dependencies_parsed_at":"2022-09-12T23:21:18.339Z","dependency_job_id":null,"html_url":"https://github.com/spurge/actionqueuego","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spurge/actionqueuego","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spurge%2Factionqueuego","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spurge%2Factionqueuego/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spurge%2Factionqueuego/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spurge%2Factionqueuego/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spurge","download_url":"https://codeload.github.com/spurge/actionqueuego/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spurge%2Factionqueuego/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28511548,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["event-sourcing","event-stream"],"created_at":"2026-01-17T15:32:15.423Z","updated_at":"2026-01-17T15:32:16.150Z","avatar_url":"https://github.com/spurge.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"Action Queue (go version)\n=========================\n\n[![Build Status](https://semaphoreci.com/api/v1/spurge/actionqueuego/branches/master/shields_badge.svg)](https://semaphoreci.com/spurge/actionqueuego)\n\nThis is a very lightweight and non distributed data event stream library and server. The event stream is designed as a queue. You define you're queue with a filename (everything is written to disk) which the queue will append data to. Then you'll start adding data (Actions) to that queue. At the other end, you'll have some data consumers. Those consumers can consume any data in the stream and/or tailing.\n\n## Setup\n\n```bash\ngo get -u github.com/kardianos/govendor\ngovendor sync\n```\n\n## Test\n\n`govendor test +local`\n\n## 1. Create a queue\n\n```go\nqueue, err := NewActionQueue(filename)\n```\n\n## 2. Add an action to the queue\n\n```go\nqueue.AddAction(\"{\\\"some-property\\\":\\\"with-a-value\\\"}\")\n```\n\n## 3. Read all actions\n\n```go\ncallback := func(entry *ActionEntry, err error) {\n  // entry.pos\n  // entry.tim\n  // entry.def\n}\n\ncount, err := queue.ReadHistory(callback, 0, -1)\n```\n\n## 4. Tailing actions\n\n```go\ndone := make(chan bool)\n\ncallback := func(entry *ActionEntry, err error) {\n  // entry.pos\n  // entry.tim\n  // entry.def\n}\n\ngo queue.TailHistory(callback, 0, done)\ndone \u003c- true\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspurge%2Factionqueuego","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspurge%2Factionqueuego","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspurge%2Factionqueuego/lists"}