Skip to content

Protocol Buffers

Proto files define every wire type and field.

SourceUse
/usr/share/enroute/proto in the imageGenerate a client for that image
A copy in your projectBuild and version the dependency
gRPC reflectionInspect a running server
proto/enroute/ in sourceInspect the current source definition
PackageContents
enroute.api.v1alpha1Repository, ref, object, and sync services
enroute.hook.v1alpha1Hook request and response messages
enroute.common.v1alpha1RepoKey and ObjectId

Optional object IDs are unset fields, not empty strings or forty zeroes.

The hook package has no gRPC service. Hooks are HTTP POST requests to one endpoint, and HookRequest.call selects the hook type. Generate all proto files, including the hook messages:

sh
grpcurl -plaintext 127.0.0.1:50051 describe enroute.hook.v1alpha1.HookRequest

The API listener exposes gRPC reflection from the descriptors built into the server. Reflection does not require a tenant header and exposes protocol definitions, not repository data. Use it to inspect a running server; use a committed proto copy to generate and version a client.

v1alpha1 can change before Enroute 1.0. Copy and commit the proto files in your project rather than using this repository as a build dependency.

Generated from docs/reference/proto.md at ead0474