golang-grpc-http

command module
v0.0.0-...-87fe518 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: MIT Imports: 11 Imported by: 0

README

golang-grpc-http

All the boilerplate you need to get started with writing grpc-gateway powered REST services in Go.

Requirements

Go 1.21.4+

Running

Running main.go starts a web server on https://0.0.0.0:11000/. You can configure the port used with the $PORT environment variable, and to serve on HTTP set $SERVE_HTTP=true.

$ go run main.go

Post endpoint

Here is how you can test adding a new record by calling rest endpoint

Http post call

Get endpoint

Here is how you can fetch list of records by calling rest endpoint

Http get call

An OpenAPI UI is served on https://0.0.0.0:11000/.

Due to some certificate issue not able to run the grpc calls, but i belive it should work.

Reference

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
proto
builds/v1
Package buildsv1 is a reverse proxy.
Package buildsv1 is a reverse proxy.
users/v1
Package usersv1 is a reverse proxy.
Package usersv1 is a reverse proxy.

Jump to

Keyboard shortcuts

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