protoc-gen-connect-go-mux

command
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

protoc-gen-connect-go-mux is a plugin for the Protobuf compiler that generates Go code. To use it, build this program and make it available on your PATH as protoc-gen-connect-go-mux.

The 'connect-go-mux' suffix becomes part of the arguments for the Protobuf compiler. To generate the base Go types and Connect code using protoc:

protoc --go_out=gen --connect-go-mux_out=gen path/to/file.proto

With buf, your buf.gen.yaml will look like this:

version: v1
plugins:
  name: go
  out: gen
  name: connect-go-mux
  out: gen

This generates helper for registering services with gorilla.mux.

Jump to

Keyboard shortcuts

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