akita-ir

module
v0.0.0-...-548fc4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 29, 2024 License: Apache-2.0

README

Intermediate representation for APIs

Contents

This repository supports the Postman Insights Agent. It contains protobuf definitions and generator scripts for Go, Python, and JavaScript.

Generated code is checked into source control to enable the use of native-language tooling without needing to invoke the protoc compiler.

Updating the Protobuf definition

  • Make the change under proto/
  • Run make build
  • Update observability-shared-libs with the new version of the Go package
  • In observability-shared-libs/spec_utils/ir_hash, update gen.go with any new message types, or new inner structs from oneof types. Then run make in that directory to generate a new set of hash functions. (If you add a new file, add that file to the list in gen.go so that it will be checked for version mismatch.)

Directory structure

proto/  # protobuf definitions
  foo/  # protobuf package
  ...

go/     # Generated Go code
  foo/

py/     # Generated Python code
  foo/

js/     # Generated JavaScript code
  foo/

Directories

Path Synopsis
go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL