protoc-gen-go-pjrpc

command module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: MIT Imports: 7 Imported by: 0

README

protoc-gen-go-pjrpc

Golang JSON-RPC methods generator for pjrpc router.

Install

go get -u gitlab.com/pjrpc/pjrpc/cmd/protoc-gen-go-pjrpc

Usage

protoc \
	--go-pjrpc_out=. --go-pjrpc_opt=paths=source_relative \
	protodir/file.proto

Flags

methods_with_service_name - method name will be with service name prefix 'service_name_method_name' (false)

If you have multiple services and services contains methods with the same names then you have to use this flag.

server_only - true/false. If this is true then only rpc-server methods will be generated (see wasm example).

client_only - true/false. If this is true then only rpc-client methods will be generated (see wasm example).

--go-pjrpc_out=methods_with_service_name=true:. --go-pjrpc_opt=paths=source_relative \

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package genpjrpc is a generator JSON-RPC methods by proto spec.
Package genpjrpc is a generator JSON-RPC methods by proto spec.

Jump to

Keyboard shortcuts

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