Go-kit example: support services without unary calls

This commit is contained in:
Manfred Touron
2016-12-26 16:20:46 +01:00
parent cdb9580565
commit 877e93aa7c
3 changed files with 9 additions and 1 deletions

View File

@@ -16,7 +16,8 @@ import (
var _ = fmt.Errorf
func MakeGRPCServer(ctx context.Context, endpoints endpoints.Endpoints) pb.{{.File.Package | title}}ServiceServer {
options := []grpctransport.ServerOption{}
var options []grpctransport.ServerOption
_ = options
return &grpcServer{
{{range .Service.Method}}
{{if or (.ClientStreaming) (.ServerStreaming)}}