Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hyvor/proto

.proto definitions for the internal gRPC APIs
https://github.com/hyvor/proto

Last synced: 13 days ago
JSON representation

.proto definitions for the internal gRPC APIs

Awesome Lists containing this project

README

        

.proto definitions of HYVOR internal services

## Generating Code

Run `./generate.sh` to generate Go and PHP code from proto files.

## Usage

### Install as git submodule

To use these proto definitions in components, you can add this repository as a git submodule.

```bash
git submodule add https://github.com/hyvor/proto proto
```

To update the submodule, run:

```bash
git submodule update --remote proto
```

Or, simply call:

```bash
./proto/update
```

### Go Usage

Add the following line to your `go.mod` file to import the generated code.

```txt
replace hyvor/proto => ../proto/generated/go
```

### PHP Usage

Add the following line to your `composer.json` file to import the generated code.

```json
"repositories": [
{
"type": "path",
"url": "./proto/generated/php"
}
],
"require": {
"hyvor/proto": "@dev"
}
```