Documentation
¶
Overview ¶
Package main is the parsec-gen command: it reads a Parsec schema registry snapshot (either from a running registry over HTTP or from a JSON file on disk) and emits typed Go and TypeScript bindings for every registered channel pattern.
Typical use:
# Go bindings from a running registry into ./gen/parsecgen.
parsec-gen --registry http://localhost:8000/parsec/schemas \
--lang go --out ./gen/parsecgen \
--package parsecgen
# Both languages from a committed snapshot.
parsec-gen --registry-file ./schemas.json \
--lang go,ts --out ./gen
Filenames are fixed: Go output writes to <out>/parsec_gen.go, TypeScript output writes to <out>/index.ts. The directory is created if absent.
Click to show internal directories.
Click to hide internal directories.