Skip to content

dungtt-astra/paymentchannel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is basic example of gRPC based microservice to serve a Virtual Stack Machine over HTTP2.0 network.

Pre-requisites

# install protobuf compiler
~/grpc-eg-go
$ go get -u -v github.com/golang/protobuf/{proto,protoc-gen-go}

# install grpc
~/grpc-eg-go
$ go get -u -v google.golang.org/grpc

Generate Go Source Code from Protobuf

~/grpc-eg-go
$ SRC_DIR=./
$ DST_DIR=$SRC_DIR
$ protoc -I=$SRC_DIR --go_out=plugins=grpc:$DST_DIR $SRC_DIR/machine/machine.proto

Run

~/grpc-eg-go
$ go run cmd/run_machine_server.go
$ go run client/machine.go

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages