{"id":13413428,"url":"https://github.com/pebbe/zmq4","last_synced_at":"2025-05-13T21:09:00.140Z","repository":{"id":565208,"uuid":"13676683","full_name":"pebbe/zmq4","owner":"pebbe","description":"A Go interface to ZeroMQ version 4","archived":false,"fork":false,"pushed_at":"2025-03-12T16:34:35.000Z","size":405,"stargazers_count":1203,"open_issues_count":58,"forks_count":165,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-04-13T01:53:46.831Z","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":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pebbe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2013-10-18T11:48:51.000Z","updated_at":"2025-04-10T22:10:55.000Z","dependencies_parsed_at":"2022-08-06T09:15:48.927Z","dependency_job_id":"eb1002a3-2168-4d42-82b5-c7b2de7310bb","html_url":"https://github.com/pebbe/zmq4","commit_stats":{"total_commits":195,"total_committers":14,"mean_commits":"13.928571428571429","dds":0.07692307692307687,"last_synced_commit":"4cb8523f0ee8607a752f2dd298c6deedf5c14de3"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pebbe%2Fzmq4","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pebbe%2Fzmq4/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pebbe%2Fzmq4/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pebbe%2Fzmq4/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pebbe","download_url":"https://codeload.github.com/pebbe/zmq4/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251325910,"owners_count":21571622,"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-07-30T20:01:40.155Z","updated_at":"2025-04-28T13:58:54.130Z","avatar_url":"https://github.com/pebbe.png","language":"Go","readme":"A Go interface to [ZeroMQ](http://www.zeromq.org/) version 4.\n\n\n----------------------------------------------------------------\n\n## Warning\n\nStarting with Go 1.14, on Unix-like systems, you will get a lot of\ninterrupted signal calls. See the top of a package documentation\nfor a fix.\n\n----------------------------------------------------------------\n\n\n[![Go Report Card](https://goreportcard.com/badge/github.com/pebbe/zmq4)](https://goreportcard.com/report/github.com/pebbe/zmq4)\n[![GoDoc](https://godoc.org/github.com/pebbe/zmq4?status.svg)](https://godoc.org/github.com/pebbe/zmq4)\n\nThis requires ZeroMQ version 4.0.1 or above. To use CURVE security in\nversions prior to 4.2, ZeroMQ must be installed with\n[libsodium](https://github.com/jedisct1/libsodium) enabled.\n\nPartial support for ZeroMQ 4.2 DRAFT is available in the alternate\nversion of zmq4 `draft`. The API pertaining to this is subject to\nchange. To use this:\n\n    import (\n        zmq \"github.com/pebbe/zmq4/draft\"\n    )\n\nFor ZeroMQ version 3, see: http://github.com/pebbe/zmq3\n\nFor ZeroMQ version 2, see: http://github.com/pebbe/zmq2\n\nIncluding all examples of [ØMQ - The Guide](http://zguide.zeromq.org/page:all).\n\nKeywords: zmq, zeromq, 0mq, networks, distributed computing, message passing, fanout, pubsub, pipeline, request-reply\n\n### See also\n\n * [go-zeromq/zmq4](https://github.com/go-zeromq/zmq4) — A pure-Go implementation of ØMQ (ZeroMQ), version 4\n * [go-nanomsg](https://github.com/op/go-nanomsg) — Language bindings for nanomsg in Go\n * [goczmq](https://github.com/zeromq/goczmq) — A Go interface to CZMQ\n * [Mangos](https://github.com/go-mangos/mangos) — An implementation in pure Go of the SP (\"Scalable Protocols\") protocols\n\n## Requirements\n\nzmq4 is just a wrapper for the ZeroMQ library. It doesn't include the\nlibrary itself. So you need to have ZeroMQ installed, including its\ndevelopment files. On Linux and Darwin you can check this with (`$` is\nthe command prompt):\n\n```\n$ pkg-config --modversion libzmq\n4.3.1\n```\n\nThe Go compiler must be able to compile C code. You can check this\nwith:\n```\n$ go env CGO_ENABLED\n1\n```\n\nYou can't do cross-compilation. That would disable C.\n\n### Windows\n\nBuild with `CGO_CFLAGS` and `CGO_LDFLAGS` environment variables, for example:\n\n```\n$env:CGO_CFLAGS='-ID:/dev/vcpkg/installed/x64-windows/include'\n$env:CGO_LDFLAGS='-LD:/dev/vcpkg/installed/x64-windows/lib -l:libzmq-mt-4_3_4.lib'\n```\n\u003e Deploy result program with `libzmq-mt-4_3_4.dll`\n\n## Install\n\n    go get github.com/pebbe/zmq4\n\n## Docs\n\n * [package help](http://godoc.org/github.com/pebbe/zmq4)\n * [wiki](https://github.com/pebbe/zmq4/wiki)\n\n## API change\n\nThere has been an API change in commit\n0bc5ab465849847b0556295d9a2023295c4d169e of 2014-06-27, 10:17:55 UTC\nin the functions `AuthAllow` and `AuthDeny`.\n\nOld:\n\n    func AuthAllow(addresses ...string)\n    func AuthDeny(addresses ...string)\n\nNew:\n\n    func AuthAllow(domain string, addresses ...string)\n    func AuthDeny(domain string, addresses ...string)\n\nIf `domain` can be parsed as an IP address, it will be interpreted as\nsuch, and it and all remaining addresses are added to all domains.\n\nSo this should still work as before:\n\n    zmq.AuthAllow(\"127.0.0.1\", \"123.123.123.123\")\n\nBut this won't compile:\n\n    a := []string{\"127.0.0.1\", \"123.123.123.123\"}\n    zmq.AuthAllow(a...)\n\nAnd needs to be rewritten as:\n\n    a := []string{\"127.0.0.1\", \"123.123.123.123\"}\n    zmq.AuthAllow(\"*\", a...)\n\nFurthermore, an address can now be a single IP address, as well as an IP\naddress and mask in CIDR notation, e.g. \"123.123.123.0/24\".\n","funding_links":[],"categories":["Messaging","消息","消息传递","Message queue","Go","\u003cspan id=\"消息-messaging\"\u003e消息 Messaging\u003c/span\u003e","消息系统","Relational Databases","机器学习"],"sub_categories":["Advanced Console UIs","检索及分析资料库","交流","Search and Analytic Databases","\u003cspan id=\"高级控制台用户界面-advanced-console-uis\"\u003e高级控制台用户界面 Advanced Console UIs\u003c/span\u003e","SQL 查询语句构建库","高级控制台界面","高級控制台界面"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpebbe%2Fzmq4","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpebbe%2Fzmq4","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpebbe%2Fzmq4/lists"}