protoc-gen-go-microglot

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

protoc-gen-go-microglot - Code generation extensions for gRPC.

This is an extremely early draft of this idea. DO NOT USE.

Overview

This repo contains our protoc plugin. Microglot is based on gRPC so virtually all of the existing gRPC code generation for Go is sufficient. The one change this plugin adds is the export of each service's gRPC descriptor which enables us to implement more flexible forms of gRPC service registration beyond the Register*Server methods that come with gRPC code rendering. Exporting this value appears to be planned for the main gRPC plugin but is not yet available.

Developing

Make targets

This project includes a Makefile that makes it easier to develop on the project. The following are the included targets:

  • test

    Run all of the project unit tests.

  • coverage

    Generate a code coverage report from the last test run.

  • fmt

    Format all Go code in the repository.

  • generate

    Execute any code generation steps included in the repository.

  • clean

    Remove any files created by the Makefile.

License

Copyright 2020 Kevin Conway

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

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