185 lines
6.6 KiB
Go
185 lines
6.6 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: grpc.proto
|
|
|
|
/*
|
|
Package gwrpc is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
grpc.proto
|
|
|
|
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 {
|
|
ResultStr string `protobuf:"bytes,1,opt,name=resultStr" json:"resultStr,omitempty"`
|
|
}
|
|
|
|
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} }
|
|
|
|
func (m *ServiceOutput) GetResultStr() string {
|
|
if m != nil {
|
|
return m.ResultStr
|
|
}
|
|
return ""
|
|
}
|
|
|
|
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{},
|
|
Metadata: "grpc.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("grpc.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 286 bytes of a gzipped FileDescriptorProto
|
|
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, 0x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