protoc-gen-gofullmethods

command module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

README

Description

This protoc-gen-gofullmethods plugin is intended as an extension of the protoc-gen-go-grpc plugin, exposing the full methods for each gRPC endpoint as string constants. Its original intent is to use these methods/paths for authorization purposes in a custom middleware function in the transport layer, on the gRPC server. This plugin is not intended for use with clients.

The example directory uses the sample pet API from buf to generate example output of this plugin, using the locally compiled executable. Run make update-example to regenerate it.

Requirements

Other plugin dependencies

As per go.mod:

  • google.golang.org/protobuf:v1.27.0

Installing

go install github.com/90poe/protoc-gen-gofullmethods@latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
example
internal

Jump to

Keyboard shortcuts

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