Documentation ¶
Overview ¶
The binapi-generator parses VPP API definitions in JSON format and generates Go code.
The VPP API input can be specified using --input=<INPUT> option, where INPUT is one of the following:
- path to directory containing `*.api.json` files (these may be nested under core/plugins) - path to local VPP repository (uses files under`build-root/install-vpp-native/vpp/share/vpp/api`)
The generated Go code will be placed into directory specified using `--output-dir=<OUTPUT>` option (defaults to `binapi`). Each VPP API file will be generated as a separate Go package.
Example:
binapi-generator --input=/usr/share/vpp/api --output-dir=binapi
Click to show internal directories.
Click to hide internal directories.