Skip to content

go-simple-grpc is a simple implementation of gRPC along with REST API

Notifications You must be signed in to change notification settings

achjailani/go-simple-grpc

Repository files navigation

GO Simple gRPC

Proto compiler

As we're using Go, the compiler should be the same language

go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.28
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@v1.2

Installation

Clone repository

git clone https://github.com/achjailani/go-simple-grpc.git

Install

cd go-simple-grpc && go mod download 

Compile proto

make proto

Running Application

Run gRPC server

go run main.go grpc:start

Run HTTP Server

go run main.go

gRPC Server

Any related things to gRPC server could be found in grpc directory, including handler, server and interceptors

gRPC Client

Any related things to gRPC client could be found in grpc/client directory, including connection, method call

REST API

Any related things to REST API could be found in rest directory

gRPC Interceptor

All interceptors are in grpc/interceptor directory

About

go-simple-grpc is a simple implementation of gRPC along with REST API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages