protoc-gen-twirp-java

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 3 Imported by: 0

README

GitHub Workflow Status (with event) GitHub tag (with filter)

protoc-gen-twirp-java

Twirp protobuf generator for Java.

Usage notes

IMPORTANT Declare option go_package in your .proto files even if you do not plan to generate Go source.

Example project

See github.com/ngyewch/protoc-gen-twirp-java-example

Installation

go install github.com/ngyewch/protoc-gen-twirp-java@latest

Running

Command-line
mkdir -p ${OUTPUT_DIR}
protoc --proto_path=${PB_DIR} \
    --twirp-java_out=${OUTPUT_DIR} \
    --twirp-java_opt=gen-helidon-client=true \
    --twirp-java_opt=gen-helidon-server=true \
    ${PB_FILE}
Via Docker
docker build --tag go-protoc-twirp-java:latest https://github.com/ngyewch/protoc-gen-twirp-java.git

mkdir -p ${OUTPUT_DIR}
docker run --rm -it \
    --user $(id -u):$(id -g) \
    -v ${PB_DIR}:/protobuf \
    -v ${OUTPUT_DIR}:/build \
    go-protoc-twirp-java:latest \
    protoc --proto_path=/protobuf \
    --twirp-java_out=/build \
    --twirp-java_opt=gen-helidon-client=true \
    --twirp-java_opt=gen-helidon-server=true \
    ${PB_FILE}

Options

Name Type Default Description
gen-helidon-client boolean false Generate Helidon SE WebClient based client.
gen-helidon-server boolean false Generate Helidon SE WebServer based server.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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