New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use gRPC over websocket #100

merged 27 commits into from Dec 13, 2017
File filter...
Filter file types
Jump to file or symbol
Failed to load files and symbols.
+1,755 −415
Diff settings


Just for now

Copy path View file
@@ -4,3 +4,5 @@ dist/
Copy path View file

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Copy path View file
@@ -45,3 +45,9 @@
name = ""
version = "3.0.7"

name = ""

name = ""
Copy path View file
@@ -3,7 +3,9 @@ DIST_DIR=./dist

@dep ensure
@go generate ./api/fx.go
build: generate
go build -o ${OUTPUT_DIR}/fx fx.go
goreleaser --snapshot --skip-publish --skip-validate
@@ -14,4 +16,4 @@ clean:
rm -rf ${DIST_DIR}
zip -r images/
.PHONY: test build start list clean
.PHONY: test build start list clean generate
Copy path View file
@@ -185,6 +185,7 @@ end
##### Requirements
* Docker: make sure [Docker]( installed and running on your server.
* dep: fx project uses [dep]( to do the golang dependency management.
* protoc / grpc: Used for RPC and types definition (See a [setup script]( example)

##### Build and Run

Copy path View file
@@ -0,0 +1,21 @@
package api

import (

func NewClient(grpcEndpoint string) (FxServiceClient, *grpc.ClientConn, error) {

var opts []grpc.DialOption

//TODO review options
opts = append(opts, grpc.WithInsecure())

conn, err := grpc.Dial(grpcEndpoint, opts...)
if err != nil {
return nil, nil, err

client := NewFxServiceClient(conn)
return client, conn, nil
Copy path View file
@@ -0,0 +1,3 @@
//go:generate sh

package api
Oops, something went wrong.
ProTip! Use n and p to navigate between commits in a pull request.