protoc-gen-grpcproc

command
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command protoc-gen-grpcproc is a protoc plugin that writes the Go of a process's contract: for each service marked with the grpcproc.v1.process option, an address whose methods are the service's rpcs (a Call per rpc, a Send and a timer per one marked grpcproc.v1.send, a typed pubsub topic per one marked grpcproc.v1.topic), its constructors by the process's name or prefix, a handler interface with one method per rpc, the HandleXCall and HandleXMessage functions that dispatch a message to it, for an actor's HandleCall and HandleMessage, and UnimplementedXHandler to embed. The file goes beside protoc-gen-go's, as <name>_grpcproc.pb.go, and takes the same module= and paths= parameters. docs/DESIGN.md, "Contracts as services", has the forms and the rules.

go get -tool github.com/floatdrop/grpcproc/cmd/protoc-gen-grpcproc@latest

and in buf.gen.yaml:

plugins:
  - local: ["go", "tool", "protoc-gen-grpcproc"]
    out: .
    opt: module=example.com/app

Jump to

Keyboard shortcuts

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