api

module
v0.4.14 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0

README

api

This directory contains the API specification of the system. The spec is written in protocol buffers and compiled using Buf.

Generating files for local testing

Using dctl

The easiest way to generate protos is using dctl:

# you only need to run this the first time
dctl api init
dctl api build

Any time you want to regenerate your protos just run dctl api build again.

Using locally generated files

To use the generated files locally, you will need to add a replace to the go.mod of any service using the protobufs:

...

replace <YOUR_REPO>/api => ../../../api/gen/go

...

Directories

Path Synopsis
platform

Jump to

Keyboard shortcuts

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