{"id":40312704,"url":"https://github.com/brettbates/p4broker-reader","last_synced_at":"2026-01-20T06:36:28.573Z","repository":{"id":57563458,"uuid":"333073996","full_name":"brettbates/p4broker-reader","owner":"brettbates","description":"A golang reader for the Perforce/Helix broker filter output","archived":false,"fork":false,"pushed_at":"2021-01-28T09:11:41.000Z","size":2372,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-06-20T15:54:41.454Z","etag":null,"topics":["broker","golang","helix","p4broker","perforce"],"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/brettbates.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":"2021-01-26T12:12:47.000Z","updated_at":"2024-06-20T15:54:41.455Z","dependencies_parsed_at":"2022-08-31T05:11:58.901Z","dependency_job_id":null,"html_url":"https://github.com/brettbates/p4broker-reader","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/brettbates/p4broker-reader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbates%2Fp4broker-reader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbates%2Fp4broker-reader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbates%2Fp4broker-reader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbates%2Fp4broker-reader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brettbates","download_url":"https://codeload.github.com/brettbates/p4broker-reader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brettbates%2Fp4broker-reader/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28597665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"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":["broker","golang","helix","p4broker","perforce"],"created_at":"2026-01-20T06:36:27.917Z","updated_at":"2026-01-20T06:36:28.565Z","avatar_url":"https://github.com/brettbates.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"A reader for the Perforce/helix broker filter output.\n\nFor example if you have a p4broker.conf stanza like so:\n\n```\ncommand: access\n{\n    action=filter;\n    execute=/path/to/go/program;\n}\n```\n\nYou can use this p4broker-reader.Read() within the receiving go program to get the output dictionary as a map[string]string.\n\nAnd example dictionary is like so:\n\n```\nbrokerListenPort: 1998\nbrokerTargetPort: localhost:1999\ncommand: access\nclientProg: p4\nclientVersion: 2020.2/LINUX26X86_64/2057778\nclientProtocol: 89\napiProtocol: 99999\nworkspace: NP-B-BATES\nuser: brett.bates\nclientIp: 127.0.0.1\nclientHost: ahost\ncwd: /home/brett/scratch/broker\nclientPort: 1998\nargCount: 2\nArg0: read\nArg1: //path/to/file\n```\n\nExample usage:\n```go\n// Pass in an io.Reader, though you probably want os.Stdin to get input from p4broker\nres, err := Read(os.Stdin)\nif err != nil {\n\tlog.Fatalf(\"%v\", err)\n}\nlog.Printf(\"%v\", res[\"Arg0\"])\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrettbates%2Fp4broker-reader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrettbates%2Fp4broker-reader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrettbates%2Fp4broker-reader/lists"}