overflow_api_db/build/golang/grpc.pb.go
2017-05-25 19:09:26 +09:00

181 lines
5.6 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: grpc.proto
/*
Package grpc is a generated protocol buffer package.
It is generated from these files:
grpc.proto
It has these top-level messages:
DBInput
DBOutput
*/
package grpc
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import (
context "golang.org/x/net/context"
grpc1 "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 DBInput struct {
TargetDao string `protobuf:"bytes,1,opt,name=targetDao" json:"targetDao,omitempty"`
Method string `protobuf:"bytes,2,opt,name=method" json:"method,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 *DBInput) Reset() { *m = DBInput{} }
func (m *DBInput) String() string { return proto.CompactTextString(m) }
func (*DBInput) ProtoMessage() {}
func (*DBInput) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *DBInput) GetTargetDao() string {
if m != nil {
return m.TargetDao
}
return ""
}
func (m *DBInput) GetMethod() string {
if m != nil {
return m.Method
}
return ""
}
func (m *DBInput) GetParam() map[string]string {
if m != nil {
return m.Param
}
return nil
}
type DBOutput struct {
Result string `protobuf:"bytes,1,opt,name=result" json:"result,omitempty"`
}
func (m *DBOutput) Reset() { *m = DBOutput{} }
func (m *DBOutput) String() string { return proto.CompactTextString(m) }
func (*DBOutput) ProtoMessage() {}
func (*DBOutput) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *DBOutput) GetResult() string {
if m != nil {
return m.Result
}
return ""
}
func init() {
proto.RegisterType((*DBInput)(nil), "DBInput")
proto.RegisterType((*DBOutput)(nil), "DBOutput")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc1.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 _ = grpc1.SupportPackageIsVersion4
// Client API for DB service
type DBClient interface {
Exec(ctx context.Context, in *DBInput, opts ...grpc1.CallOption) (*DBOutput, error)
}
type dBClient struct {
cc *grpc1.ClientConn
}
func NewDBClient(cc *grpc1.ClientConn) DBClient {
return &dBClient{cc}
}
func (c *dBClient) Exec(ctx context.Context, in *DBInput, opts ...grpc1.CallOption) (*DBOutput, error) {
out := new(DBOutput)
err := grpc1.Invoke(ctx, "/DB/exec", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for DB service
type DBServer interface {
Exec(context.Context, *DBInput) (*DBOutput, error)
}
func RegisterDBServer(s *grpc1.Server, srv DBServer) {
s.RegisterService(&_DB_serviceDesc, srv)
}
func _DB_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) {
in := new(DBInput)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DBServer).Exec(ctx, in)
}
info := &grpc1.UnaryServerInfo{
Server: srv,
FullMethod: "/DB/Exec",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DBServer).Exec(ctx, req.(*DBInput))
}
return interceptor(ctx, in, info, handler)
}
var _DB_serviceDesc = grpc1.ServiceDesc{
ServiceName: "DB",
HandlerType: (*DBServer)(nil),
Methods: []grpc1.MethodDesc{
{
MethodName: "exec",
Handler: _DB_Exec_Handler,
},
},
Streams: []grpc1.StreamDesc{},
Metadata: "grpc.proto",
}
func init() { proto.RegisterFile("grpc.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 233 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0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