gwrpc github.com

This commit is contained in:
geek 2017-06-05 17:56:18 +09:00
parent e32cde2bda
commit 2a8564322f
4 changed files with 33 additions and 27 deletions

4
.gitignore vendored
View File

@ -59,3 +59,7 @@ fabric.properties
# Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736 # Project-local glide cache, RE: https://github.com/Masterminds/glide/issues/736
.glide/ .glide/
.idea/ .idea/
*.iml
vendor/
glide.lock

View File

@ -1,3 +1,3 @@
protoc -I/usr/local/include -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I grpc/ grpc/grpc.proto --go_out=plugins=grpc:grpc protoc -I/usr/local/include -I. -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I grpc/ grpc/grpc.proto --go_out=plugins=grpc:grpc
protoc -I/usr/local/include -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I grpc/ grpc/grpc.proto --grpc-gateway_out=logtostderr=true:grpc protoc -I/usr/local/include -I$GOPATH/src -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis -I grpc/ grpc/grpc.proto --grpc-gateway_out=logtostderr=true:grpc

View File

@ -1,11 +1,11 @@
// Code generated by protoc-gen-go. DO NOT EDIT. // Code generated by protoc-gen-go. DO NOT EDIT.
// source: grpc.proto // source: grpc/grpc.proto
/* /*
Package gwrpc is a generated protocol buffer package. Package gwrpc is a generated protocol buffer package.
It is generated from these files: It is generated from these files:
grpc.proto grpc/grpc.proto
It has these top-level messages: It has these top-level messages:
ServiceInput ServiceInput
@ -156,29 +156,30 @@ var _OverflowGateway_serviceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "grpc.proto", Metadata: "grpc/grpc.proto",
} }
func init() { proto.RegisterFile("grpc.proto", fileDescriptor0) } func init() { proto.RegisterFile("grpc/grpc.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{ var fileDescriptor0 = []byte{
// 286 bytes of a gzipped FileDescriptorProto // 289 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x41, 0x4a, 0xc3, 0x40, 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x41, 0x4a, 0xc3, 0x40,
0x14, 0x86, 0x49, 0x42, 0x84, 0xbe, 0x56, 0x94, 0xb1, 0x42, 0x09, 0xa5, 0x84, 0xac, 0x8a, 0x60, 0x14, 0x86, 0x49, 0x42, 0x84, 0xbe, 0x56, 0x2a, 0x63, 0x85, 0x12, 0x4a, 0x09, 0x59, 0x15, 0xc1,
0x82, 0xd5, 0x45, 0xe9, 0xbe, 0x88, 0x1b, 0x2b, 0xed, 0xd2, 0xd5, 0x18, 0xc7, 0x18, 0x4c, 0x66, 0x0c, 0x56, 0x17, 0xa5, 0xfb, 0x22, 0x6e, 0xac, 0xb4, 0x4b, 0x57, 0x63, 0x1c, 0x63, 0x30, 0x99,
0x86, 0xc9, 0x4b, 0x62, 0xb6, 0x5e, 0xc1, 0x0b, 0x79, 0x07, 0xaf, 0xe0, 0x41, 0x24, 0x99, 0x91, 0x19, 0x26, 0x2f, 0x89, 0xd9, 0x7a, 0x05, 0x2f, 0xe4, 0x1d, 0xbc, 0x82, 0x07, 0x91, 0x24, 0x23,
0x46, 0xe8, 0x6e, 0xde, 0xc7, 0xc7, 0xff, 0xbf, 0x79, 0x00, 0x89, 0x92, 0x71, 0x28, 0x95, 0x40, 0x8d, 0xe0, 0x26, 0xe4, 0x7d, 0x7c, 0xfc, 0xff, 0x9b, 0x07, 0xe3, 0x58, 0xab, 0x88, 0x36, 0x9f,
0x41, 0xdc, 0xa4, 0x56, 0x32, 0xf6, 0xa6, 0x89, 0x10, 0x49, 0xc6, 0x22, 0x2a, 0xd3, 0x88,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xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xb2, 0x2e, 0x3f, 0x2b, 0x9b, 0x01, 0x00, 0x00, 0xda, 0x43, 0x5f, 0xfd, 0x04, 0x00, 0x00, 0xff, 0xff, 0xfc, 0x33, 0xa2, 0x39, 0xa0, 0x01, 0x00,
0x00,
} }

View File

@ -85,18 +85,19 @@ func RegisterOverflowGatewayHandler(ctx context.Context, mux *runtime.ServeMux,
}(ctx.Done(), cn.CloseNotify()) }(ctx.Done(), cn.CloseNotify())
} }
inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
rctx, err := runtime.AnnotateContext(ctx, mux, req) rctx, err := runtime.AnnotateContext(ctx, req)
if err != nil { if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) runtime.HTTPError(ctx, outboundMarshaler, w, req, err)
return
} }
resp, md, err := request_OverflowGateway_ExecServices_0(rctx, inboundMarshaler, client, req, pathParams) resp, md, err := request_OverflowGateway_ExecServices_0(rctx, inboundMarshaler, client, req, pathParams)
ctx = runtime.NewServerMetadataContext(ctx, md) ctx = runtime.NewServerMetadataContext(ctx, md)
if err != nil { if err != nil {
runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) runtime.HTTPError(ctx, outboundMarshaler, w, req, err)
return return
} }
forward_OverflowGateway_ExecServices_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) forward_OverflowGateway_ExecServices_0(ctx, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
}) })