api/

directory
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0

README

Internal gRPC API

Install Dependent Tools

Download the latest protoc.

https://github.com/protocolbuffers/protobuf/releases

Install the protocol compiler plugins for Go using the following commands.

go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

Regenerate gRPC code

Firstly, you should switch to the root path of the repository like the following command.

cd $GOPATH/src/github.com/no-src/gofs

Then you can use the following command to regenerate gRPC code.

protoc --go_out=../../../ --go_opt=paths=import --go-grpc_out=../../../ --go-grpc_opt=paths=import api/proto/*.proto

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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