overflow_api_service/grpc/grpc.pb.go

186 lines
6.6 KiB
Go
Raw Normal View History

2017-05-23 10:08:51 +00:00
// Code generated by protoc-gen-go. DO NOT EDIT.
2017-06-05 08:56:18 +00:00
// source: grpc/grpc.proto
2017-05-23 10:08:51 +00:00
/*
Package gwrpc is a generated protocol buffer package.
It is generated from these files:
2017-06-05 08:56:18 +00:00
grpc/grpc.proto
2017-05-23 10:08:51 +00:00
It has these top-level messages:
ServiceInput
ServiceOutput
*/
package gwrpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type ServiceInput struct {
ServiceName string `protobuf:"bytes,1,opt,name=serviceName" json:"serviceName,omitempty"`
MethodName string `protobuf:"bytes,2,opt,name=methodName" json:"methodName,omitempty"`
Param map[string]string `protobuf:"bytes,3,rep,name=param" json:"param,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
}
func (m *ServiceInput) Reset() { *m = ServiceInput{} }
func (m *ServiceInput) String() string { return proto.CompactTextString(m) }
func (*ServiceInput) ProtoMessage() {}
func (*ServiceInput) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *ServiceInput) GetServiceName() string {
if m != nil {
return m.ServiceName
}
return ""
}
func (m *ServiceInput) GetMethodName() string {
if m != nil {
return m.MethodName
}
return ""
}
func (m *ServiceInput) GetParam() map[string]string {
if m != nil {
return m.Param
}
return nil
}
type ServiceOutput struct {
2017-05-24 06:35:59 +00:00
ResultStr string `protobuf:"bytes,1,opt,name=resultStr" json:"resultStr,omitempty"`
2017-05-23 10:08:51 +00:00
}
func (m *ServiceOutput) Reset() { *m = ServiceOutput{} }
func (m *ServiceOutput) String() string { return proto.CompactTextString(m) }
func (*ServiceOutput) ProtoMessage() {}
func (*ServiceOutput) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
2017-05-24 06:35:59 +00:00
func (m *ServiceOutput) GetResultStr() string {
if m != nil {
return m.ResultStr
}
return ""
}
2017-05-23 10:08:51 +00:00
func init() {
proto.RegisterType((*ServiceInput)(nil), "gwrpc.ServiceInput")
proto.RegisterType((*ServiceOutput)(nil), "gwrpc.ServiceOutput")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for OverflowGateway service
type OverflowGatewayClient interface {
ExecServices(ctx context.Context, in *ServiceInput, opts ...grpc.CallOption) (*ServiceOutput, error)
}
type overflowGatewayClient struct {
cc *grpc.ClientConn
}
func NewOverflowGatewayClient(cc *grpc.ClientConn) OverflowGatewayClient {
return &overflowGatewayClient{cc}
}
func (c *overflowGatewayClient) ExecServices(ctx context.Context, in *ServiceInput, opts ...grpc.CallOption) (*ServiceOutput, error) {
out := new(ServiceOutput)
err := grpc.Invoke(ctx, "/gwrpc.OverflowGateway/ExecServices", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for OverflowGateway service
type OverflowGatewayServer interface {
ExecServices(context.Context, *ServiceInput) (*ServiceOutput, error)
}
func RegisterOverflowGatewayServer(s *grpc.Server, srv OverflowGatewayServer) {
s.RegisterService(&_OverflowGateway_serviceDesc, srv)
}
func _OverflowGateway_ExecServices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ServiceInput)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OverflowGatewayServer).ExecServices(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/gwrpc.OverflowGateway/ExecServices",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OverflowGatewayServer).ExecServices(ctx, req.(*ServiceInput))
}
return interceptor(ctx, in, info, handler)
}
var _OverflowGateway_serviceDesc = grpc.ServiceDesc{
ServiceName: "gwrpc.OverflowGateway",
HandlerType: (*OverflowGatewayServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ExecServices",
Handler: _OverflowGateway_ExecServices_Handler,
},
},
Streams: []grpc.StreamDesc{},
2017-06-05 08:56:18 +00:00
Metadata: "grpc/grpc.proto",
2017-05-23 10:08:51 +00:00
}
2017-06-05 08:56:18 +00:00
func init() { proto.RegisterFile("grpc/grpc.proto", fileDescriptor0) }
2017-05-23 10:08:51 +00:00
var fileDescriptor0 = []byte{
2017-06-05 08:56:18 +00:00
// 289 bytes of a gzipped FileDescriptorProto
2017-05-24 06:35:59 +00:00
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x41, 0x4a, 0xc3, 0x40,
2017-06-05 08:56:18 +00:00
0x14, 0x86, 0x49, 0x42, 0x84, 0xbe, 0x56, 0x2a, 0x63, 0x85, 0x12, 0x4a, 0x09, 0x59, 0x15, 0xc1,
0x0c, 0x56, 0x17, 0xa5, 0xfb, 0x22, 0x6e, 0xac, 0xb4, 0x4b, 0x57, 0x63, 0x1c, 0x63, 0x30, 0x99,
0x19, 0x26, 0x2f, 0x89, 0xd9, 0x7a, 0x05, 0x2f, 0xe4, 0x1d, 0xbc, 0x82, 0x07, 0x91, 0x24, 0x23,
0x8d, 0xe0, 0x26, 0xe4, 0x7d, 0x7c, 0xfc, 0xff, 0x9b, 0x07, 0xe3, 0x58, 0xab, 0x88, 0x36, 0x9f,
0x50, 0x69, 0x89, 0x92, 0xb8, 0x71, 0xa5, 0x55, 0xe4, 0xcd, 0x62, 0x29, 0xe3, 0x94, 0x53, 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