{"_id":"@arthurspa/go-watermill-template","_rev":"6-457dfb0ee4c9dc8f8bb6c9544284b767","name":"@arthurspa/go-watermill-template","dist-tags":{"latest":"0.2.50"},"versions":{"0.2.44":{"name":"@arthurspa/go-watermill-template","version":"0.2.44","description":"Template for generating Go module based on async api","main":"index.js","scripts":{"test":"npm run test:components","release":"semantic-release","lint":"eslint --max-warnings 0 --fix --config .eslintrc .","generate:readme:toc":"markdown-toc -i README.md","generate:assets":"npm run generate:readme:toc","bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION","dev":"rm -rf output && ag test/asyncapi.yaml ./ -o output --force-write","test:components":"jest --coverage ./test/components"},"repository":{"type":"git","url":"git+https://github.com/arthurspa/go-watermill-template.git"},"keywords":["asyncapi","generator","template"],"author":{"name":"Arthur Silva","email":"arthursilva.ee@gmail.com","url":"https://github.com/arthurspa"},"license":"Apache-2.0","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/arthurspa/go-watermill-template"},"homepage":"https://github.com/arthurspa/go-watermill-template#readme","dependencies":{"@asyncapi/generator-filters":"^2.0.0","@asyncapi/generator-hooks":"^0.1.0","@asyncapi/generator-react-sdk":"^0.2.23","@asyncapi/modelina":"^2.0.2","@asyncapi/parser":"^2.1.1"},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],"@semantic-release/npm","@semantic-release/github"]},"generator":{"renderer":"react","apiVersion":"v2","parameters":{"packageName":{"description":"name of the go package to be generated","default":"asyncapigen"}},"generator":">=1.3.0 <2.0.0","supportedProtocols":["googlepubsub"]},"devDependencies":{"@babel/plugin-syntax-jsx":"^7.16.7","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.7","@semantic-release/npm":"^7.0.5","@semantic-release/release-notes-generator":"^9.0.1","all-contributors-cli":"^6.19.0","conventional-changelog-conventionalcommits":"^4.4.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.20.0","eslint-plugin-react":"^7.21.5","eslint-plugin-security":"^1.4.0","eslint-plugin-sonarjs":"^0.5.0","jest":"^27.4.7","markdown-toc":"^1.2.0","semantic-release":"^17.1.1"},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":"current"}}],["@babel/preset-react",{"runtime":"automatic"}]]},"directories":{"doc":"docs","test":"test"},"_id":"@arthurspa/go-watermill-template@0.2.44","gitHead":"d007ab7ecbe69ca105624e313f6d2310ed7e97e6","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-NfeiMoBswkvGrn3eHTWF9SHTKw98SWeOU8sNvttPl33YDk9uae6bv0c1NYT24gZzxRTAwGDI1bd11/tcFx8aAg==","shasum":"77c3d2f83594677eb614d21bf815ae048b6f95ef","tarball":"https://registry.npmjs.org/@arthurspa/go-watermill-template/-/go-watermill-template-0.2.44.tgz","fileCount":49,"unpackedSize":548760,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCGf0qmCCWMqTf/skQf5cWJQ43SscQLb4fwBCBryI5+gIgUZ0zrWavPytKiv01Oc6AW8b5iW8ZsKLVBUbx8uukbQg="}]},"_npmUser":{"name":"arthurspa","email":"arthursilva.ee@gmail.com"},"maintainers":[{"name":"arthurspa","email":"arthursilva.ee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-watermill-template_0.2.44_1700013430089_0.885225930705698"},"_hasShrinkwrap":false},"0.2.45":{"name":"@arthurspa/go-watermill-template","version":"0.2.45","description":"Template for generating Go module based on async api","main":"index.js","scripts":{"test":"npm run test:components","release":"semantic-release","lint":"eslint --max-warnings 0 --fix --config .eslintrc .","generate:readme:toc":"markdown-toc -i README.md","generate:assets":"npm run generate:readme:toc","bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION","dev":"rm -rf output && ag test/asyncapi.yaml ./ -o output --force-write","test:components":"jest --coverage ./test/components"},"repository":{"type":"git","url":"git+https://github.com/arthurspa/go-watermill-template.git"},"keywords":["asyncapi","generator","template"],"author":{"name":"Arthur Silva","email":"arthursilva.ee@gmail.com","url":"https://github.com/arthurspa"},"license":"Apache-2.0","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/arthurspa/go-watermill-template"},"homepage":"https://github.com/arthurspa/go-watermill-template#readme","dependencies":{"@asyncapi/generator-filters":"^2.0.0","@asyncapi/generator-hooks":"^0.1.0","@asyncapi/generator-react-sdk":"^0.2.23","@asyncapi/modelina":"^2.0.2","@asyncapi/parser":"^2.1.1"},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],"@semantic-release/npm","@semantic-release/github"]},"generator":{"renderer":"react","apiVersion":"v2","parameters":{"packageName":{"description":"name of the go package to be generated","default":"asyncapigen"}},"generator":">=1.3.0 <2.0.0","supportedProtocols":["googlepubsub"]},"devDependencies":{"@babel/plugin-syntax-jsx":"^7.16.7","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.7","@semantic-release/npm":"^7.0.5","@semantic-release/release-notes-generator":"^9.0.1","all-contributors-cli":"^6.19.0","conventional-changelog-conventionalcommits":"^4.4.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.20.0","eslint-plugin-react":"^7.21.5","eslint-plugin-security":"^1.4.0","eslint-plugin-sonarjs":"^0.5.0","jest":"^27.4.7","markdown-toc":"^1.2.0","semantic-release":"^17.1.1"},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":"current"}}],["@babel/preset-react",{"runtime":"automatic"}]]},"directories":{"doc":"docs","test":"test"},"_id":"@arthurspa/go-watermill-template@0.2.45","gitHead":"c4bf0cd77077a8c37f646e5cd454a6fee7e95a04","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-L8lswVBSI3fqYfoS1XmGW5pLV6k/ff9mQTFAxSSydUnMWySeqOK8vNE7/T8wefwo32u5Kj5sFa4bsK9mZPrMUw==","shasum":"7e7340c9233559b598f522b935094cc8f349dd44","tarball":"https://registry.npmjs.org/@arthurspa/go-watermill-template/-/go-watermill-template-0.2.45.tgz","fileCount":49,"unpackedSize":548773,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDC+x79Pqe7MoXuqB4uOHkNqBkQk++AaT3K1Gn6idLbCAiEApWq8bb50R68ZY5gieJHKF9mgtZKdKhIS8Kd99vFsvfY="}]},"_npmUser":{"name":"arthurspa","email":"arthursilva.ee@gmail.com"},"maintainers":[{"name":"arthurspa","email":"arthursilva.ee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-watermill-template_0.2.45_1700013874749_0.5251527609619171"},"_hasShrinkwrap":false},"0.2.46":{"name":"@arthurspa/go-watermill-template","version":"0.2.46","description":"Template for generating Go module based on async api","main":"index.js","scripts":{"test":"npm run test:components","release":"semantic-release","lint":"eslint --max-warnings 0 --fix --config .eslintrc .","generate:readme:toc":"markdown-toc -i README.md","generate:assets":"npm run generate:readme:toc","bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION","dev":"rm -rf output && ag test/asyncapi.yaml ./ -o output --force-write","test:components":"jest --coverage ./test/components"},"repository":{"type":"git","url":"git+https://github.com/arthurspa/go-watermill-template.git"},"keywords":["asyncapi","generator","template"],"author":{"name":"Arthur Silva","email":"arthursilva.ee@gmail.com","url":"https://github.com/arthurspa"},"license":"Apache-2.0","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/arthurspa/go-watermill-template"},"homepage":"https://github.com/arthurspa/go-watermill-template#readme","dependencies":{"@asyncapi/generator-filters":"^2.0.0","@asyncapi/generator-hooks":"^0.1.0","@asyncapi/generator-react-sdk":"^0.2.23","@asyncapi/modelina":"^2.0.2","@asyncapi/parser":"^2.1.1"},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],"@semantic-release/npm","@semantic-release/github"]},"generator":{"renderer":"react","apiVersion":"v2","parameters":{"packageName":{"description":"name of the go package to be generated","default":"asyncapigen"}},"generator":">=1.3.0 <2.0.0","supportedProtocols":["googlepubsub"]},"devDependencies":{"@babel/plugin-syntax-jsx":"^7.16.7","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.7","@semantic-release/npm":"^7.0.5","@semantic-release/release-notes-generator":"^9.0.1","all-contributors-cli":"^6.19.0","conventional-changelog-conventionalcommits":"^4.4.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.20.0","eslint-plugin-react":"^7.21.5","eslint-plugin-security":"^1.4.0","eslint-plugin-sonarjs":"^0.5.0","jest":"^27.4.7","markdown-toc":"^1.2.0","semantic-release":"^17.1.1"},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":"current"}}],["@babel/preset-react",{"runtime":"automatic"}]]},"directories":{"doc":"docs","test":"test"},"_id":"@arthurspa/go-watermill-template@0.2.46","gitHead":"3f48677d4b2809039fa82d806cdd078ad3d0b04a","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-FW/hHpPv523ZhdlDkrbSlHLu3X575gNW/M+6VeUSOfkBAFwzRBHC0bX9R6swwWt75pAnxWbBr8yN5wc+ByAjkA==","shasum":"9d609a75b9459767ddf20f0a61a0483266f3d5cb","tarball":"https://registry.npmjs.org/@arthurspa/go-watermill-template/-/go-watermill-template-0.2.46.tgz","fileCount":49,"unpackedSize":548744,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHBNZmibjYdT/ZsqB0kEc0p0e5THH+hPbXpUAUCY7p1vAiAerxm9m1hLO3aOy8IddYhpUJFMxSJwws/Hzr6PiJL1Hg=="}]},"_npmUser":{"name":"arthurspa","email":"arthursilva.ee@gmail.com"},"maintainers":[{"name":"arthurspa","email":"arthursilva.ee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-watermill-template_0.2.46_1700014566377_0.24892497122399093"},"_hasShrinkwrap":false},"0.2.47":{"name":"@arthurspa/go-watermill-template","version":"0.2.47","description":"Template for generating Go module based on async api","main":"index.js","scripts":{"test":"npm run test:components","release":"semantic-release","lint":"eslint --max-warnings 0 --fix --config .eslintrc .","generate:readme:toc":"markdown-toc -i README.md","generate:assets":"npm run generate:readme:toc","bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION","dev":"rm -rf output && ag test/asyncapi.yaml ./ -o output --force-write","test:components":"jest --coverage ./test/components"},"repository":{"type":"git","url":"git+https://github.com/arthurspa/go-watermill-template.git"},"keywords":["asyncapi","generator","template"],"author":{"name":"Arthur Silva","email":"arthursilva.ee@gmail.com","url":"https://github.com/arthurspa"},"license":"Apache-2.0","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/arthurspa/go-watermill-template"},"homepage":"https://github.com/arthurspa/go-watermill-template#readme","dependencies":{"@asyncapi/generator-filters":"^2.0.0","@asyncapi/generator-hooks":"^0.1.0","@asyncapi/generator-react-sdk":"^0.2.23","@asyncapi/modelina":"^2.0.2","@asyncapi/parser":"^2.1.1"},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],"@semantic-release/npm","@semantic-release/github"]},"generator":{"renderer":"react","apiVersion":"v2","parameters":{"packageName":{"description":"name of the go package to be generated","default":"asyncapigen"}},"generator":">=1.3.0 <2.0.0","supportedProtocols":["googlepubsub"]},"devDependencies":{"@babel/plugin-syntax-jsx":"^7.16.7","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.7","@semantic-release/npm":"^7.0.5","@semantic-release/release-notes-generator":"^9.0.1","all-contributors-cli":"^6.19.0","conventional-changelog-conventionalcommits":"^4.4.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.20.0","eslint-plugin-react":"^7.21.5","eslint-plugin-security":"^1.4.0","eslint-plugin-sonarjs":"^0.5.0","jest":"^27.4.7","markdown-toc":"^1.2.0","semantic-release":"^17.1.1"},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":"current"}}],["@babel/preset-react",{"runtime":"automatic"}]]},"directories":{"doc":"docs","test":"test"},"_id":"@arthurspa/go-watermill-template@0.2.47","gitHead":"bfa3d8a33faa8b0348b603be1689d4ade19be3a1","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-FrbTffTSVRBag941ZUcTK1Ly8NAvUUiqcjLwaUF1wErrhhKUf4pnfn7RDjjePbGQb/n2lW1J72t/H9U2tDCw1A==","shasum":"823ee1d3a32d5f09855b11c3df2ed4649b12cdde","tarball":"https://registry.npmjs.org/@arthurspa/go-watermill-template/-/go-watermill-template-0.2.47.tgz","fileCount":49,"unpackedSize":548720,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBT4n0TrWXg0uC20fXvx6/FbnfER9gPditukA+95u6ZyAiEAi7uN8+UORnocV8kP6LAYn5kSTto26nRcm6DnZIqyP5g="}]},"_npmUser":{"name":"arthurspa","email":"arthursilva.ee@gmail.com"},"maintainers":[{"name":"arthurspa","email":"arthursilva.ee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-watermill-template_0.2.47_1700017992115_0.23810869834952308"},"_hasShrinkwrap":false},"0.2.48":{"name":"@arthurspa/go-watermill-template","version":"0.2.48","description":"Template for generating Go module based on async api","main":"index.js","scripts":{"test":"npm run test:components","release":"semantic-release","lint":"eslint --max-warnings 0 --fix --config .eslintrc .","generate:readme:toc":"markdown-toc -i README.md","generate:assets":"npm run generate:readme:toc","bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION","dev":"rm -rf output && ag test/asyncapi.yaml ./ -o output --force-write","test:components":"jest --coverage ./test/components"},"repository":{"type":"git","url":"git+https://github.com/arthurspa/go-watermill-template.git"},"keywords":["asyncapi","generator","template"],"author":{"name":"Arthur Silva","email":"arthursilva.ee@gmail.com","url":"https://github.com/arthurspa"},"license":"Apache-2.0","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/arthurspa/go-watermill-template"},"homepage":"https://github.com/arthurspa/go-watermill-template#readme","dependencies":{"@asyncapi/generator-filters":"^2.0.0","@asyncapi/generator-hooks":"^0.1.0","@asyncapi/generator-react-sdk":"^0.2.23","@asyncapi/modelina":"^2.0.2","@asyncapi/parser":"^2.1.1"},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],"@semantic-release/npm","@semantic-release/github"]},"generator":{"renderer":"react","apiVersion":"v2","parameters":{"packageName":{"description":"name of the go package to be generated","default":"asyncapigen"}},"generator":">=1.3.0 <2.0.0","supportedProtocols":["googlepubsub"]},"devDependencies":{"@babel/plugin-syntax-jsx":"^7.16.7","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.7","@semantic-release/npm":"^7.0.5","@semantic-release/release-notes-generator":"^9.0.1","all-contributors-cli":"^6.19.0","conventional-changelog-conventionalcommits":"^4.4.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.20.0","eslint-plugin-react":"^7.21.5","eslint-plugin-security":"^1.4.0","eslint-plugin-sonarjs":"^0.5.0","jest":"^27.4.7","markdown-toc":"^1.2.0","semantic-release":"^17.1.1"},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":"current"}}],["@babel/preset-react",{"runtime":"automatic"}]]},"directories":{"doc":"docs","test":"test"},"_id":"@arthurspa/go-watermill-template@0.2.48","gitHead":"e393d4a6022c4c527d579ab2fe99f422cf8356ff","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-PEoWnXWAfA0z6/PZPfztQZZZJLex8+Yx1viu6C9XjS2/26/eMQqMft0n3XTOJMvfk2QyqgPek+TBtvUA61KulA==","shasum":"7f4ad86076e414d58c3f60d9ed05499b01c89083","tarball":"https://registry.npmjs.org/@arthurspa/go-watermill-template/-/go-watermill-template-0.2.48.tgz","fileCount":49,"unpackedSize":549384,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIF94jlvjuzSldubWCU5w8ZMaNymxBrxHeotY35N/N9HiAiBd9kfbo67JVu0FjP2u/FuIx5uCSeOHqSjxr9U7Vlw++Q=="}]},"_npmUser":{"name":"arthurspa","email":"arthursilva.ee@gmail.com"},"maintainers":[{"name":"arthurspa","email":"arthursilva.ee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-watermill-template_0.2.48_1700057444113_0.8547444620340139"},"_hasShrinkwrap":false},"0.2.49":{"name":"@arthurspa/go-watermill-template","version":"0.2.49","description":"Template for generating Go module based on async api","main":"index.js","scripts":{"test":"npm run test:components","release":"semantic-release","lint":"eslint --max-warnings 0 --fix --config .eslintrc .","generate:readme:toc":"markdown-toc -i README.md","generate:assets":"npm run generate:readme:toc","bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION","dev":"rm -rf output && ag test/asyncapi.yaml ./ -o output --force-write","test:components":"jest --coverage ./test/components"},"repository":{"type":"git","url":"git+https://github.com/arthurspa/go-watermill-template.git"},"keywords":["asyncapi","generator","template"],"author":{"name":"Arthur Silva","email":"arthursilva.ee@gmail.com","url":"https://github.com/arthurspa"},"license":"Apache-2.0","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/arthurspa/go-watermill-template"},"homepage":"https://github.com/arthurspa/go-watermill-template#readme","dependencies":{"@asyncapi/generator-filters":"^2.0.0","@asyncapi/generator-hooks":"^0.1.0","@asyncapi/generator-react-sdk":"^0.2.23","@asyncapi/modelina":"^2.0.2","@asyncapi/parser":"^2.1.1"},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],"@semantic-release/npm","@semantic-release/github"]},"generator":{"renderer":"react","apiVersion":"v2","parameters":{"packageName":{"description":"name of the go package to be generated","default":"asyncapigen"}},"generator":">=1.3.0 <2.0.0","supportedProtocols":["googlepubsub"]},"devDependencies":{"@babel/plugin-syntax-jsx":"^7.16.7","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.7","@semantic-release/npm":"^7.0.5","@semantic-release/release-notes-generator":"^9.0.1","all-contributors-cli":"^6.19.0","conventional-changelog-conventionalcommits":"^4.4.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.20.0","eslint-plugin-react":"^7.21.5","eslint-plugin-security":"^1.4.0","eslint-plugin-sonarjs":"^0.5.0","jest":"^27.4.7","markdown-toc":"^1.2.0","semantic-release":"^17.1.1"},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":"current"}}],["@babel/preset-react",{"runtime":"automatic"}]]},"directories":{"doc":"docs","test":"test"},"_id":"@arthurspa/go-watermill-template@0.2.49","gitHead":"b759f8d53f9b10b75cd511ca02b415cdeb6fe6a1","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-+9z8TdUrJy741octCre+6eaBbSy3cpMAXbVcikjV+tcVsyqtw7yBKRI7fxRvYl6rSDuJIoQ5Byw44KCsN+ELsw==","shasum":"e99d3a811e11341a6c805110578ac2a7959d663d","tarball":"https://registry.npmjs.org/@arthurspa/go-watermill-template/-/go-watermill-template-0.2.49.tgz","fileCount":49,"unpackedSize":549384,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC3aDGNL7fndi/4d4yTPNRw1Ow28omlzY1AaYns23MfOgIgaORcLjskFn8ghp6TroAfEncD0j2tgwSpGXW29PZQbgc="}]},"_npmUser":{"name":"arthurspa","email":"arthursilva.ee@gmail.com"},"maintainers":[{"name":"arthurspa","email":"arthursilva.ee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-watermill-template_0.2.49_1700058590974_0.15722732096808834"},"_hasShrinkwrap":false},"0.2.50":{"name":"@arthurspa/go-watermill-template","version":"0.2.50","description":"Template for generating Go module based on async api","main":"index.js","scripts":{"test":"npm run test:components","release":"semantic-release","lint":"eslint --max-warnings 0 --fix --config .eslintrc .","generate:readme:toc":"markdown-toc -i README.md","generate:assets":"npm run generate:readme:toc","bump:version":"npm --no-git-tag-version --allow-same-version version $VERSION","dev":"rm -rf output && ag test/asyncapi.yaml ./ -o output --force-write","test:components":"jest --coverage ./test/components"},"repository":{"type":"git","url":"git+https://github.com/arthurspa/go-watermill-template.git"},"keywords":["asyncapi","generator","template"],"author":{"name":"Arthur Silva","email":"arthursilva.ee@gmail.com","url":"https://github.com/arthurspa"},"license":"Apache-2.0","publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/arthurspa/go-watermill-template"},"homepage":"https://github.com/arthurspa/go-watermill-template#readme","dependencies":{"@asyncapi/generator-filters":"^2.0.0","@asyncapi/generator-hooks":"^0.1.0","@asyncapi/generator-react-sdk":"^0.2.23","@asyncapi/modelina":"^2.0.2","@asyncapi/parser":"^2.1.1"},"release":{"branches":["master"],"plugins":[["@semantic-release/commit-analyzer",{"preset":"conventionalcommits"}],["@semantic-release/release-notes-generator",{"preset":"conventionalcommits"}],"@semantic-release/npm","@semantic-release/github"]},"generator":{"renderer":"react","apiVersion":"v2","parameters":{"packageName":{"description":"name of the go package to be generated","default":"asyncapigen"}},"generator":">=1.3.0 <2.0.0","supportedProtocols":["googlepubsub"]},"devDependencies":{"@babel/plugin-syntax-jsx":"^7.16.7","@semantic-release/commit-analyzer":"^8.0.1","@semantic-release/github":"^7.0.7","@semantic-release/npm":"^7.0.5","@semantic-release/release-notes-generator":"^9.0.1","all-contributors-cli":"^6.19.0","conventional-changelog-conventionalcommits":"^4.4.0","eslint":"^6.8.0","eslint-plugin-jest":"^23.20.0","eslint-plugin-react":"^7.21.5","eslint-plugin-security":"^1.4.0","eslint-plugin-sonarjs":"^0.5.0","jest":"^27.4.7","markdown-toc":"^1.2.0","semantic-release":"^17.1.1"},"babel":{"presets":[["@babel/preset-env",{"targets":{"node":"current"}}],["@babel/preset-react",{"runtime":"automatic"}]]},"directories":{"doc":"docs","test":"test"},"_id":"@arthurspa/go-watermill-template@0.2.50","gitHead":"78b9f367153b259a63ed92014751acc03ba9d4c9","_nodeVersion":"21.1.0","_npmVersion":"10.2.0","dist":{"integrity":"sha512-vlRH/U4AhebCbheSw1o4PqfSGgxrAztF76D/Qoh7GkMA8bsUu8vQYCNuj9emhaWF1y75ghQAM6jmt1x5jbVR3A==","shasum":"2987acdf3ef5300db153b358b27f37ee0d9bfa73","tarball":"https://registry.npmjs.org/@arthurspa/go-watermill-template/-/go-watermill-template-0.2.50.tgz","fileCount":49,"unpackedSize":549474,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGk2rdIu5vhphJckVG93wueaTOHU6iLGoHGhpuYOCFt2AiA4jymcyD4MDbhlb9byr5cIaneMFsTV8cCh0lzePeFQNA=="}]},"_npmUser":{"name":"arthurspa","email":"arthursilva.ee@gmail.com"},"maintainers":[{"name":"arthurspa","email":"arthursilva.ee@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/go-watermill-template_0.2.50_1700072901732_0.8508712500844557"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-15T01:57:09.960Z","0.2.44":"2023-11-15T01:57:10.437Z","modified":"2023-11-15T18:28:22.085Z","0.2.45":"2023-11-15T02:04:35.110Z","0.2.46":"2023-11-15T02:16:06.721Z","0.2.47":"2023-11-15T03:13:12.372Z","0.2.48":"2023-11-15T14:10:44.397Z","0.2.49":"2023-11-15T14:29:51.276Z","0.2.50":"2023-11-15T18:28:21.917Z"},"maintainers":[{"name":"arthurspa","email":"arthursilva.ee@gmail.com"}],"description":"Template for generating Go module based on async api","homepage":"https://github.com/arthurspa/go-watermill-template#readme","keywords":["asyncapi","generator","template"],"repository":{"type":"git","url":"git+https://github.com/arthurspa/go-watermill-template.git"},"author":{"name":"Arthur Silva","email":"arthursilva.ee@gmail.com","url":"https://github.com/arthurspa"},"bugs":{"url":"https://github.com/arthurspa/go-watermill-template"},"license":"Apache-2.0","readme":"[![AsyncAPI logo](./assets/logo_banner.png)](https://www.asyncapi.com)\n<!-- toc is generated with GitHub Actions do not remove toc markers -->\n\n<!-- toc -->\n\n- [Overview](#overview)\n- [Template Output](#template-output)\n- [Technical requirements](#technical-requirements)\n- [Async API Requirements](#async-api-requirements)\n- [Supported protocols](#supported-protocols)\n- [How to use the template](#how-to-use-the-template)\n  * [CLI](#cli)\n    + [Run the following command to generate a Go module](#run-the-following-command-to-generate-a-go-module)\n    + [How to use the generated code](#how-to-use-the-generated-code)\n      - [Pre-requisites](#pre-requisites)\n      - [Running the code](#running-the-code)\n- [Template configuration](#template-configuration)\n- [Contribution guide](#contribution-guide)\n\n<!-- tocstop -->\n\n## Overview\n\nThis template generates a Go module that uses [watermill](https://github.com/ThreeDotsLabs/watermill) as library for building event-driven applications. The reason to choose [watermill](https://github.com/ThreeDotsLabs/watermill) is because it provides an abstraction to messaging supporting multiple protocols. This will help this generator support multiple protocols.\n\n## Template Output\n\nThe `go` code generated by this template has the following structure\n\n- __asyncapi__\n  - handlers.go -- handlers for publishers and subscribers\n  - payloads.go -- generated `go` structs using Modelina\n  - publishers.go\n  - router.go -- configures [watermill](https://watermill.io/) router, needed only for subscribers\n  - server.go -- server config\n  - subscribers.go\n- go.mod\n- go.sum\n- main.go\n\n## Technical requirements\n\n- 1.1.0 =< [Generator](https://github.com/asyncapi/generator/) < 2.0.0,\n- Generator specific [requirements](https://github.com/asyncapi/generator/#requirements)\n\n## Async API Requirements\n\nTo have correctly generated code, your AsyncAPI file MUST define operationId for every operation.\n\nExample:\n```\nchannels:\n  light/measured:\n    subscribe:\n      operationId: LumenPublish\n```\n\n## Supported protocols\n\n|  Protocol |  Subscriber | Publishers   |\n|---|---|---|\n|  AMQP | Yes   | Yes   |\n\n\n## How to use the template\n\nThis template must be used with the AsyncAPI Generator. You can find all available options [here](https://github.com/asyncapi/generator/).\n\n### CLI\n\nThis template has been tested to generate an AMQP subscriber for [this asyncapi.yaml file](./test/asyncapi.yaml)\n\n#### Run the following command to generate a Go module\n\n```bash\nnpm install -g @asyncapi/generator\n# clone this repository and navigate to this repository\nag test/asyncapi.yaml @asyncapi/go-watermill-template -o /path/to/generated-code -p moduleName=your-go-module-name\n```\n\nFollowing are the options that can be passed to the generator\n\n1. moduleName: name of the go module to be generated\n\n#### How to use the generated code\n\nThe above code currently generates a Go module that has a AMQP subscriber.\n\n##### Pre-requisites\nTo run the generated code the following needs to be installed\n\n1. go 1.16 +\n2. rabbitmq-server OR docker\n\n##### Running the code\n\n1. Navigate to the path where the code was generated\n2. Run the following commands to download the dependencies\n```bash\ngo mod download\ngo mod tidy\n```\n3. Currently the code does not utilize the server bindings to generate the server URI. It is currently hardcoded to point to a local instance of `rabbitmq`. It is hardcoded as `\"amqp://guest:guest@localhost:5672/\"` at `<generated-code>/config/server.go`. Change it as per your rabbitmq instance requirements\n4. Finally to execute the code run\n```bash\ngo run main.go\n```\n5. Running local instance of `rabbitmq`, navigate to it using `http://localhost:15672/` with username and password `guest`/ `guest` (These are default rabbitmq credentials).\n   FYI one can start an instance of `rabbitmq` using  `docker` as follow\n   ```\n   docker run -d -p 15672:15672 -p 5672:5672 rabbitmq:3-management\n   ```\n6. Create a queue as per the AsyncAPI spec.\n   This can be done either of the following ways\n   -  Using the UI: Refer to this [article](https://www.cloudamqp.com/blog/part3-rabbitmq-for-beginners_the-management-interface.html) that walks through the process of how this can be done in the UI / RabbitMQ Admin\n   - `cURL` request. Default rabbitmq user is `guest` and password is `guest`\n   ```\n    curl --user <rabbit-user>:<rabbit-password> -X PUT \\\n      http://localhost:15672/api/queues/%2f/<queue-name> \\\n      -H 'cache-control: no-cache' \\\n      -H 'content-type: application/json' \\\n      -d '{\n    \"auto_delete\":false,\n    \"durable\":true\n    }'\n   ```\n7. Publish a message to the queue as per the AsyncAPI spec. This can be done either of the following ways\n   - Using the UI: Refer to this [article](https://www.cloudamqp.com/blog/part3-rabbitmq-for-beginners_the-management-interface.html) that walks through the process of how this can be done in the UI / RabbitMQ Admin\n   - `cURL` request. Default rabbitmq user is `guest` and password is `guest`\n   ```\n    curl --user <rabbit-user>:<rabbit-password> -X POST \\\n      http://localhost:15672/api/exchanges/%2f/amq.default/publish \\\n      -H 'cache-control: no-cache' \\\n      -H 'content-type: application/json' \\\n      -d ' {\n    \"properties\":{},\n    \"routing_key\":\"light/measured\",\n    \"payload\":\"{\\\"id\\\":1,\\\"lumens\\\":2,\\\"sentAt\\\":\\\"2021-09-21\\\"}\",\n    \"payload_encoding\":\"string\"\n    }'\n   ```\n8. Check the output at the terminal where `go run main.go` was running and the published message should be printed\n\n## Template configuration\n\nYou can configure this template by passing different parameters in the Generator CLI: `-p PARAM1_NAME=PARAM1_VALUE -p PARAM2_NAME=PARAM2_VALUE`\n\n|Name|Description|Required|Example|\n|---|---|---|---|\n|moduleName|Name for the generated Go module|false|`my-app`|\n\n## Contribution guide\n\nIf you are interested in contributing to this repo refer to the [contributing](https://github.com/asyncapi/go-watermill-template/blob/master/docs/contributing.md) docs\n","readmeFilename":"README.md"}