GithubHelp home page GithubHelp logo

deis / example-grpc-client Goto Github PK

View Code? Open in Web Editor NEW
1.0 15.0 4.0 8 KB

A simple Go grpc client app for Deis, the open source PaaS https://deis.com

License: MIT License

Go 100.00%
deis-workflow example go grpc-client

example-grpc-client's Introduction

Go GRPC Client Quick Start Guide

This guide will walk you through deploying a Go grpc client on Deis Workflow. The client also runs a Go http server which is routable outside of the cluster and proxies the user requests to a Go grpc server. The Go server to which the requests needs to be sent can be configured using deis config:set SERVER_NAME=<server app name>.

Usage

$ git clone https://github.com/deis/example-grpc-client.git
$ cd example-grpc-client
$ deis create
Creating Application... done, created breezy-playroom
Git remote deis added for app breezy-playroom
$ deis config:set SERVER_NAME=finest-rabbitry
Creating config... done
=== breezy-playroom Config
SERVER_NAME      finest-rabbitry
$ git push deis master
Counting objects: 8, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (8/8), 4.00 KiB | 0 bytes/s, done.
Total 8 (delta 0), reused 0 (delta 0)
Starting build... but first, coffee!
-----> Restoring cache...
       No cache file found. If this is the first deploy, it will be created now.
-----> Go app detected
        !!    
        !!    'GOVERSION' isn't set, defaulting to 'go1.7.1'
        !!    
        !!    Run 'heroku config:set GOVERSION=goX.Y' to set the Go version to use
        !!    for future builds
        !!    
-----> Installing go1.7.1... done
-----> Installing glide v0.12.2... done
-----> Installing hg 3.9... done
        !!    Installing package '.' (default)
        !!    
        !!    To install a different package spec for the next build run:
        !!    
        !!    'heroku config:set GO_INSTALL_PACKAGE_SPEC="<pkg spec>"'
        !!    
        !!    For more details see: https://devcenter.heroku.com/articles/go-dependencies-via-glide
        !!    
-----> Fetching any unsaved dependencies (glide install)
       [INFO]	Downloading dependencies. Please wait...
       [INFO]	--> Fetching google.golang.org/grpc.
       [INFO]	--> Fetching github.com/deis/example-grpc-server.
       [INFO]	--> Fetching golang.org/x/net.
       [INFO]	--> Fetching github.com/golang/protobuf.
       [INFO]	Setting references.
       [INFO]	--> Setting version for github.com/golang/protobuf to 8616e8ee5e20a1704615e6c8d7afcdac06087a67.
       [INFO]	--> Setting version for github.com/deis/example-grpc-server to 683c669e94944e2da3716668396dd557ec3c4093.
       [INFO]	--> Setting version for google.golang.org/grpc to b7f1379d3cbbbeb2ca3405852012e237aa05459e.
       [INFO]	--> Setting version for golang.org/x/net to fb93926129b8ec0056f2f458b1f519654814edf0.
       [INFO]	Exporting resolved dependencies...
       [INFO]	--> Exporting github.com/golang/protobuf
       [INFO]	--> Exporting github.com/deis/example-grpc-server
       [INFO]	--> Exporting golang.org/x/net
       [INFO]	--> Exporting google.golang.org/grpc
       [INFO]	Replacing existing vendor dependencies
-----> Running: go install -v -tags heroku .
       github.com/deis/example-grpc-client/vendor/github.com/golang/protobuf/proto
       github.com/deis/example-grpc-client/vendor/golang.org/x/net/context
       github.com/deis/example-grpc-client/vendor/golang.org/x/net/http2/hpack
       github.com/deis/example-grpc-client/vendor/golang.org/x/net/http2
       github.com/deis/example-grpc-client/vendor/golang.org/x/net/internal/timeseries
       github.com/deis/example-grpc-client/vendor/golang.org/x/net/trace
       github.com/deis/example-grpc-client/vendor/google.golang.org/grpc/codes
       github.com/deis/example-grpc-client/vendor/google.golang.org/grpc/credentials
       github.com/deis/example-grpc-client/vendor/google.golang.org/grpc/grpclog
       github.com/deis/example-grpc-client/vendor/google.golang.org/grpc/internal
       github.com/deis/example-grpc-client/vendor/google.golang.org/grpc/metadata
       github.com/deis/example-grpc-client/vendor/google.golang.org/grpc/naming
       github.com/deis/example-grpc-client/vendor/google.golang.org/grpc/peer
       github.com/deis/example-grpc-client/vendor/google.golang.org/grpc/transport
       github.com/deis/example-grpc-client/vendor/google.golang.org/grpc
       github.com/deis/example-grpc-client/vendor/github.com/deis/example-grpc-server/_proto
       github.com/deis/example-grpc-client
-----> Discovering process types
       Procfile declares types -> web
-----> Checking for changes inside the cache directory...
       Files inside cache folder changed, uploading new cache...
       Done: Uploaded cache (85M)
-----> Compiled slug size is 3.0M
Build complete.
Launching App...
Done, breezy-playroom:v3 deployed to Workflow

Use 'deis open' to view this application in your browser

To learn more, use 'deis help' or visit https://deis.com/

To ssh://[email protected]:2222/breezy-playroom.git
 * [new branch]      master -> master
$ curl http://breezy-playroom.deis.rocks
Powered by Deis

Additional Resources

example-grpc-client's People

Contributors

kmala avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.