crawler_go/grpc/grpc.pb.go
jackdaw@loafle.com a5bcf25a0a grpc proto file
2017-04-12 20:29:05 +09:00

453 lines
14 KiB
Go

// Code generated by protoc-gen-go.
// source: grpc.proto
// DO NOT EDIT!
/*
Package grpc is a generated protocol buffer package.
It is generated from these files:
grpc.proto
It has these top-level messages:
InputArray
Input
Output
*/
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 Crawlers int32
const (
Crawlers_HEALTH_ACTIVEDIRECTORY Crawlers = 0
Crawlers_HEALTH_DNS Crawlers = 1
Crawlers_HEALTH_FTP Crawlers = 2
Crawlers_HEALTH_FTPS Crawlers = 3
Crawlers_HEALTH_IMAP Crawlers = 4
Crawlers_HEALTH_LDAP Crawlers = 5
Crawlers_HEALTH_MONGODB Crawlers = 6
Crawlers_HEALTH_MSSQL Crawlers = 7
Crawlers_HEALTH_MYSQL Crawlers = 8
Crawlers_HEALTH_MARIADB Crawlers = 9
Crawlers_HEALTH_PGSQL Crawlers = 10
Crawlers_HEALTH_NETBIOS Crawlers = 11
Crawlers_HEALTH_ORACLE Crawlers = 12
Crawlers_HEALTH_POP3 Crawlers = 13
Crawlers_HEALTH_REDIS Crawlers = 14
Crawlers_HEALTH_RMI Crawlers = 15
Crawlers_HEALTH_SMB Crawlers = 16
Crawlers_HEALTH_SMTP Crawlers = 17
Crawlers_HEALTH_SNMPV2C Crawlers = 18
Crawlers_HEALTH_SNMPV3 Crawlers = 29
Crawlers_HEALTH_SSH Crawlers = 20
Crawlers_HEALTH_TELNET Crawlers = 21
Crawlers_HEALTH_WMI Crawlers = 22
Crawlers_HEALTH_CASSANDRA Crawlers = 23
Crawlers_HEALTH_HTTP Crawlers = 24
)
var Crawlers_name = map[int32]string{
0: "HEALTH_ACTIVEDIRECTORY",
1: "HEALTH_DNS",
2: "HEALTH_FTP",
3: "HEALTH_FTPS",
4: "HEALTH_IMAP",
5: "HEALTH_LDAP",
6: "HEALTH_MONGODB",
7: "HEALTH_MSSQL",
8: "HEALTH_MYSQL",
9: "HEALTH_MARIADB",
10: "HEALTH_PGSQL",
11: "HEALTH_NETBIOS",
12: "HEALTH_ORACLE",
13: "HEALTH_POP3",
14: "HEALTH_REDIS",
15: "HEALTH_RMI",
16: "HEALTH_SMB",
17: "HEALTH_SMTP",
18: "HEALTH_SNMPV2C",
29: "HEALTH_SNMPV3",
20: "HEALTH_SSH",
21: "HEALTH_TELNET",
22: "HEALTH_WMI",
23: "HEALTH_CASSANDRA",
24: "HEALTH_HTTP",
}
var Crawlers_value = map[string]int32{
"HEALTH_ACTIVEDIRECTORY": 0,
"HEALTH_DNS": 1,
"HEALTH_FTP": 2,
"HEALTH_FTPS": 3,
"HEALTH_IMAP": 4,
"HEALTH_LDAP": 5,
"HEALTH_MONGODB": 6,
"HEALTH_MSSQL": 7,
"HEALTH_MYSQL": 8,
"HEALTH_MARIADB": 9,
"HEALTH_PGSQL": 10,
"HEALTH_NETBIOS": 11,
"HEALTH_ORACLE": 12,
"HEALTH_POP3": 13,
"HEALTH_REDIS": 14,
"HEALTH_RMI": 15,
"HEALTH_SMB": 16,
"HEALTH_SMTP": 17,
"HEALTH_SNMPV2C": 18,
"HEALTH_SNMPV3": 29,
"HEALTH_SSH": 20,
"HEALTH_TELNET": 21,
"HEALTH_WMI": 22,
"HEALTH_CASSANDRA": 23,
"HEALTH_HTTP": 24,
}
func (x Crawlers) String() string {
return proto.EnumName(Crawlers_name, int32(x))
}
func (Crawlers) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type InputArray struct {
In []*Input `protobuf:"bytes,1,rep,name=in" json:"in,omitempty"`
}
func (m *InputArray) Reset() { *m = InputArray{} }
func (m *InputArray) String() string { return proto.CompactTextString(m) }
func (*InputArray) ProtoMessage() {}
func (*InputArray) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *InputArray) GetIn() []*Input {
if m != nil {
return m.In
}
return nil
}
type Input struct {
Name Crawlers `protobuf:"varint,1,opt,name=name,enum=Crawlers" json:"name,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
}
func (m *Input) Reset() { *m = Input{} }
func (m *Input) String() string { return proto.CompactTextString(m) }
func (*Input) ProtoMessage() {}
func (*Input) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Input) GetName() Crawlers {
if m != nil {
return m.Name
}
return Crawlers_HEALTH_ACTIVEDIRECTORY
}
func (m *Input) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *Input) GetPath() string {
if m != nil {
return m.Path
}
return ""
}
// The response message containing the greetings
type Output struct {
StartDate int64 `protobuf:"varint,1,opt,name=startDate" json:"startDate,omitempty"`
EndDate int64 `protobuf:"varint,2,opt,name=endDate" json:"endDate,omitempty"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}
func (m *Output) Reset() { *m = Output{} }
func (m *Output) String() string { return proto.CompactTextString(m) }
func (*Output) ProtoMessage() {}
func (*Output) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Output) GetStartDate() int64 {
if m != nil {
return m.StartDate
}
return 0
}
func (m *Output) GetEndDate() int64 {
if m != nil {
return m.EndDate
}
return 0
}
func (m *Output) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*InputArray)(nil), "InputArray")
proto.RegisterType((*Input)(nil), "Input")
proto.RegisterType((*Output)(nil), "Output")
proto.RegisterEnum("Crawlers", Crawlers_name, Crawlers_value)
}
// 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.SupportPackageIsVersion3
// Client API for Config service
type ConfigClient interface {
Add(ctx context.Context, in *Input, opts ...grpc1.CallOption) (*Output, error)
Remove(ctx context.Context, in *Input, opts ...grpc1.CallOption) (*Output, error)
Init(ctx context.Context, in *InputArray, opts ...grpc1.CallOption) (*Output, error)
}
type configClient struct {
cc *grpc1.ClientConn
}
func NewConfigClient(cc *grpc1.ClientConn) ConfigClient {
return &configClient{cc}
}
func (c *configClient) Add(ctx context.Context, in *Input, opts ...grpc1.CallOption) (*Output, error) {
out := new(Output)
err := grpc1.Invoke(ctx, "/Config/Add", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *configClient) Remove(ctx context.Context, in *Input, opts ...grpc1.CallOption) (*Output, error) {
out := new(Output)
err := grpc1.Invoke(ctx, "/Config/Remove", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *configClient) Init(ctx context.Context, in *InputArray, opts ...grpc1.CallOption) (*Output, error) {
out := new(Output)
err := grpc1.Invoke(ctx, "/Config/Init", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Config service
type ConfigServer interface {
Add(context.Context, *Input) (*Output, error)
Remove(context.Context, *Input) (*Output, error)
Init(context.Context, *InputArray) (*Output, error)
}
func RegisterConfigServer(s *grpc1.Server, srv ConfigServer) {
s.RegisterService(&_Config_serviceDesc, srv)
}
func _Config_Add_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) {
in := new(Input)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConfigServer).Add(ctx, in)
}
info := &grpc1.UnaryServerInfo{
Server: srv,
FullMethod: "/Config/Add",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConfigServer).Add(ctx, req.(*Input))
}
return interceptor(ctx, in, info, handler)
}
func _Config_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) {
in := new(Input)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConfigServer).Remove(ctx, in)
}
info := &grpc1.UnaryServerInfo{
Server: srv,
FullMethod: "/Config/Remove",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConfigServer).Remove(ctx, req.(*Input))
}
return interceptor(ctx, in, info, handler)
}
func _Config_Init_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) {
in := new(InputArray)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ConfigServer).Init(ctx, in)
}
info := &grpc1.UnaryServerInfo{
Server: srv,
FullMethod: "/Config/Init",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ConfigServer).Init(ctx, req.(*InputArray))
}
return interceptor(ctx, in, info, handler)
}
var _Config_serviceDesc = grpc1.ServiceDesc{
ServiceName: "Config",
HandlerType: (*ConfigServer)(nil),
Methods: []grpc1.MethodDesc{
{
MethodName: "Add",
Handler: _Config_Add_Handler,
},
{
MethodName: "Remove",
Handler: _Config_Remove_Handler,
},
{
MethodName: "Init",
Handler: _Config_Init_Handler,
},
},
Streams: []grpc1.StreamDesc{},
Metadata: "grpc.proto",
}
// Client API for Data service
type DataClient interface {
Get(ctx context.Context, in *Input, opts ...grpc1.CallOption) (*Output, error)
}
type dataClient struct {
cc *grpc1.ClientConn
}
func NewDataClient(cc *grpc1.ClientConn) DataClient {
return &dataClient{cc}
}
func (c *dataClient) Get(ctx context.Context, in *Input, opts ...grpc1.CallOption) (*Output, error) {
out := new(Output)
err := grpc1.Invoke(ctx, "/Data/Get", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for Data service
type DataServer interface {
Get(context.Context, *Input) (*Output, error)
}
func RegisterDataServer(s *grpc1.Server, srv DataServer) {
s.RegisterService(&_Data_serviceDesc, srv)
}
func _Data_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc1.UnaryServerInterceptor) (interface{}, error) {
in := new(Input)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DataServer).Get(ctx, in)
}
info := &grpc1.UnaryServerInfo{
Server: srv,
FullMethod: "/Data/Get",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DataServer).Get(ctx, req.(*Input))
}
return interceptor(ctx, in, info, handler)
}
var _Data_serviceDesc = grpc1.ServiceDesc{
ServiceName: "Data",
HandlerType: (*DataServer)(nil),
Methods: []grpc1.MethodDesc{
{
MethodName: "Get",
Handler: _Data_Get_Handler,
},
},
Streams: []grpc1.StreamDesc{},
Metadata: "grpc.proto",
}
func init() { proto.RegisterFile("grpc.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 469 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0x5f, 0x6f, 0xda, 0x3c,
0x14, 0xc6, 0x4b, 0x42, 0x43, 0x39, 0x50, 0x7a, 0x6a, 0xf5, 0xe5, 0x8d, 0xba, 0x75, 0x42, 0x68,
0x17, 0x68, 0x17, 0x5c, 0xc0, 0x27, 0x30, 0x49, 0x06, 0x9e, 0xc8, 0x9f, 0xd9, 0x56, 0xa7, 0x5e,
0x55, 0xde, 0x92, 0x75, 0x91, 0xd6, 0x80, 0x52, 0x77, 0xd3, 0x3e, 0xe7, 0xbe, 0xd0, 0x14, 0x37,
0x08, 0x5f, 0xf4, 0xce, 0xcf, 0xef, 0x79, 0xf2, 0xf8, 0x44, 0x3a, 0x06, 0x78, 0xa8, 0xf7, 0xdf,
0xe6, 0xfb, 0x7a, 0xa7, 0x77, 0xd3, 0xf7, 0x00, 0xac, 0xda, 0x3f, 0x6b, 0x5a, 0xd7,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