hyvor/proto

There is no license information available for the latest version (0.0.1) of this package.

0.0.1 2024-12-02 09:56 UTC

This package is auto-updated.

Last update: 2024-12-02 10:00:32 UTC


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.

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

To update the submodule, run:

git submodule update --remote proto

Or, simply call:

./proto/update

Go Usage

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

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

PHP Usage

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

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