grpc-server-go

command module
v0.0.0-...-ee930af Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 17 Imported by: 0

README

GRPC-SERVER-GO

Build Status codecov Go Report Card

GO-GRPC is a grpc server demo written in golang and grpc. It features better performance, you can faster build your api server by this templete. If you want to try new way, you will love it.

Design

Overview

Gopher image

LoadBlance

Gopher image

Running GRPC-SERVER-GO

  • Init workdir
go get github.com/kardianos/govendor
cd $GOPATH/src/github.com/nightlegend/grpc-server-go
govendor init
govendor add +external
govendor install +local

if can`t recognize govendor, please try $GOPATH/bin/govendor.

  • Start ETCD server

  • Start GRPC-SERVER-GO

# HTTP server will listend address(eg:export HTTP_ADDR=":8080")
# default value is ':8080'
export HTTP_ADDR = ""
# Your ETCD server address(eg:export HTTP_ADDR="http://127.0.0.1:2379")
# default value is 'http://127.0.0.1:2379'
export ETCD_ADDR = ""


# -n mean you will up 3 grpc server for LB.
go run main.go -n 3

Gopher image

Gopher image

Keep update to here for latest changed. Thanks for you love it.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
Package proto is a reverse proxy.
Package proto is a reverse proxy.

Jump to

Keyboard shortcuts

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