grpc-gateway-example

command module
v0.0.0-...-02a7029 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 10 Imported by: 0

README

GRPC-GATEWAY-EXAMPLE

Main goal of the repository is automatically creating a grpc and http server from an example.proto file and adding auth, logging and validation middlewares.

  • grpc-gateway library is used for doing main job, it creates both grpc and http server(reverse proxy) .
  • grpc-middleware for adding all middleware functionalities.
  • protoc-gen-validate for message validations.
  • buf user friendly proto cli

Requirements

Compile&Run

  • buf mod update
  • buf generate in case of any change in the example.proto .
  • go mod vendor
  • go run main.go

TODO

  • Basic example
  • Validation
  • Auth middleware
  • Logging middleware
  • Good project structure
  • Better validations(customized validation error messages)
  • Few more functions to demonstrate get, delete and patch requests

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package grpc_gateway_example is a reverse proxy.
Package grpc_gateway_example is a reverse proxy.

Jump to

Keyboard shortcuts

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