grpc proto file
This commit is contained in:
parent
a5bcf25a0a
commit
0f6b8b1883
104
grpc/grpc.pb.go
104
grpc/grpc.pb.go
|
@ -10,6 +10,7 @@ It is generated from these files:
|
||||||
|
|
||||||
It has these top-level messages:
|
It has these top-level messages:
|
||||||
InputArray
|
InputArray
|
||||||
|
Init
|
||||||
Input
|
Input
|
||||||
Output
|
Output
|
||||||
*/
|
*/
|
||||||
|
@ -126,7 +127,7 @@ func (x Crawlers) String() string {
|
||||||
func (Crawlers) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
func (Crawlers) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||||
|
|
||||||
type InputArray struct {
|
type InputArray struct {
|
||||||
In []*Input `protobuf:"bytes,1,rep,name=in" json:"in,omitempty"`
|
In []*Init `protobuf:"bytes,1,rep,name=in" json:"in,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *InputArray) Reset() { *m = InputArray{} }
|
func (m *InputArray) Reset() { *m = InputArray{} }
|
||||||
|
@ -134,23 +135,46 @@ func (m *InputArray) String() string { return proto.CompactTextString
|
||||||
func (*InputArray) ProtoMessage() {}
|
func (*InputArray) ProtoMessage() {}
|
||||||
func (*InputArray) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
func (*InputArray) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||||
|
|
||||||
func (m *InputArray) GetIn() []*Input {
|
func (m *InputArray) GetIn() []*Init {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
return m.In
|
return m.In
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Init struct {
|
||||||
|
Name Crawlers `protobuf:"varint,1,opt,name=name,enum=Crawlers" json:"name,omitempty"`
|
||||||
|
Path string `protobuf:"bytes,2,opt,name=path" json:"path,omitempty"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Init) Reset() { *m = Init{} }
|
||||||
|
func (m *Init) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*Init) ProtoMessage() {}
|
||||||
|
func (*Init) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
||||||
|
|
||||||
|
func (m *Init) GetName() Crawlers {
|
||||||
|
if m != nil {
|
||||||
|
return m.Name
|
||||||
|
}
|
||||||
|
return Crawlers_HEALTH_ACTIVEDIRECTORY
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Init) GetPath() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Path
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
type Input struct {
|
type Input struct {
|
||||||
Name Crawlers `protobuf:"varint,1,opt,name=name,enum=Crawlers" json:"name,omitempty"`
|
Name Crawlers `protobuf:"varint,1,opt,name=name,enum=Crawlers" json:"name,omitempty"`
|
||||||
Id string `protobuf:"bytes,2,opt,name=id" json:"id,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) Reset() { *m = Input{} }
|
||||||
func (m *Input) String() string { return proto.CompactTextString(m) }
|
func (m *Input) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Input) ProtoMessage() {}
|
func (*Input) ProtoMessage() {}
|
||||||
func (*Input) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
func (*Input) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
||||||
|
|
||||||
func (m *Input) GetName() Crawlers {
|
func (m *Input) GetName() Crawlers {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -166,13 +190,6 @@ func (m *Input) GetId() string {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Input) GetPath() string {
|
|
||||||
if m != nil {
|
|
||||||
return m.Path
|
|
||||||
}
|
|
||||||
return ""
|
|
||||||
}
|
|
||||||
|
|
||||||
// The response message containing the greetings
|
// The response message containing the greetings
|
||||||
type Output struct {
|
type Output struct {
|
||||||
StartDate int64 `protobuf:"varint,1,opt,name=startDate" json:"startDate,omitempty"`
|
StartDate int64 `protobuf:"varint,1,opt,name=startDate" json:"startDate,omitempty"`
|
||||||
|
@ -183,7 +200,7 @@ type Output struct {
|
||||||
func (m *Output) Reset() { *m = Output{} }
|
func (m *Output) Reset() { *m = Output{} }
|
||||||
func (m *Output) String() string { return proto.CompactTextString(m) }
|
func (m *Output) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Output) ProtoMessage() {}
|
func (*Output) ProtoMessage() {}
|
||||||
func (*Output) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
func (*Output) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
||||||
|
|
||||||
func (m *Output) GetStartDate() int64 {
|
func (m *Output) GetStartDate() int64 {
|
||||||
if m != nil {
|
if m != nil {
|
||||||
|
@ -208,6 +225,7 @@ func (m *Output) GetData() []byte {
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*InputArray)(nil), "InputArray")
|
proto.RegisterType((*InputArray)(nil), "InputArray")
|
||||||
|
proto.RegisterType((*Init)(nil), "Init")
|
||||||
proto.RegisterType((*Input)(nil), "Input")
|
proto.RegisterType((*Input)(nil), "Input")
|
||||||
proto.RegisterType((*Output)(nil), "Output")
|
proto.RegisterType((*Output)(nil), "Output")
|
||||||
proto.RegisterEnum("Crawlers", Crawlers_name, Crawlers_value)
|
proto.RegisterEnum("Crawlers", Crawlers_name, Crawlers_value)
|
||||||
|
@ -418,35 +436,35 @@ var _Data_serviceDesc = grpc1.ServiceDesc{
|
||||||
func init() { proto.RegisterFile("grpc.proto", fileDescriptor0) }
|
func init() { proto.RegisterFile("grpc.proto", fileDescriptor0) }
|
||||||
|
|
||||||
var fileDescriptor0 = []byte{
|
var fileDescriptor0 = []byte{
|
||||||
// 469 bytes of a gzipped FileDescriptorProto
|
// 479 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x93, 0x5f, 0x6f, 0xda, 0x3c,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x93, 0xcf, 0x6a, 0xdb, 0x40,
|
||||||
0x14, 0xc6, 0x4b, 0x42, 0x43, 0x39, 0x50, 0x7a, 0x6a, 0xf5, 0xe5, 0x8d, 0xba, 0x75, 0x42, 0x68,
|
0x10, 0xc6, 0x23, 0xc9, 0x96, 0xe3, 0xb1, 0xe3, 0x4c, 0x96, 0x24, 0x15, 0x69, 0x53, 0x8c, 0x7b,
|
||||||
0x17, 0x68, 0x17, 0x5c, 0xc0, 0x27, 0x30, 0x49, 0x06, 0x9e, 0xc8, 0x9f, 0xd9, 0x56, 0xa7, 0x5e,
|
0x31, 0x3d, 0xe8, 0x60, 0x43, 0xa1, 0xc7, 0xb5, 0xa4, 0xda, 0x02, 0xfd, 0xeb, 0xee, 0x92, 0x92,
|
||||||
0x55, 0xde, 0x92, 0x75, 0x91, 0xd6, 0x80, 0x52, 0x77, 0xd3, 0x3e, 0xe7, 0xbe, 0xd0, 0x14, 0x37,
|
0x53, 0xd8, 0x56, 0x6a, 0x2a, 0x68, 0x64, 0xa3, 0x6c, 0x5a, 0xfa, 0x9c, 0x7d, 0xa1, 0x22, 0x45,
|
||||||
0x08, 0x5f, 0xf4, 0xce, 0xcf, 0xef, 0x79, 0xf2, 0xf8, 0x44, 0x3a, 0x06, 0x78, 0xa8, 0xf7, 0xdf,
|
0xc6, 0x7b, 0x08, 0xf4, 0x36, 0xf3, 0x9b, 0xf9, 0xbe, 0x99, 0x85, 0x59, 0x80, 0xfb, 0x7a, 0xf7,
|
||||||
0xe6, 0xfb, 0x7a, 0xa7, 0x77, 0xd3, 0xf7, 0x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c4, 0x69, 0xb2, 0x4e, 0xc3, 0x15, 0x7a, 0x04, 0x61, 0x78,
|
0x47, 0x4b, 0x03, 0x61, 0x4c, 0x33, 0xec, 0x69, 0x20, 0xf2, 0x69, 0x86, 0x7d, 0x42, 0x60, 0xd2,
|
||||||
0x60, 0x42, 0x7c, 0xde, 0x62, 0xcf, 0x26, 0x77, 0x0d, 0x39, 0xb3, 0xbf, 0xa3, 0x9c, 0xd1, 0x70,
|
0x81, 0x38, 0x4d, 0xd6, 0xa9, 0xbf, 0x42, 0x9b, 0x20, 0x8c, 0xf7, 0x8c, 0xf3, 0xcf, 0x11, 0x0e,
|
||||||
0x85, 0x7d, 0x2b, 0x95, 0xad, 0x9b, 0x14, 0x58, 0xa9, 0x24, 0x92, 0x2b, 0x96, 0x0a, 0x1c, 0x90,
|
0x74, 0x72, 0xdb, 0x90, 0x63, 0x5d, 0x47, 0x59, 0x48, 0xfd, 0x15, 0x0e, 0xb5, 0xae, 0x6c, 0xdd,
|
||||||
0x4b, 0x38, 0x6f, 0x59, 0xca, 0x69, 0xb0, 0x8d, 0x70, 0x68, 0x4d, 0x95, 0xa5, 0xd9, 0x12, 0xcf,
|
0x74, 0x81, 0xd6, 0x95, 0x04, 0x62, 0x15, 0xa6, 0x1c, 0x47, 0xe4, 0x0c, 0x4e, 0x3a, 0x96, 0x32,
|
||||||
0xad, 0x26, 0x1e, 0x85, 0x4c, 0xe0, 0xc8, 0xfa, 0x55, 0x1e, 0x33, 0xbc, 0xb0, 0xb4, 0x88, 0x57,
|
0xea, 0x45, 0x01, 0x8e, 0xb5, 0xad, 0xb2, 0x34, 0x5b, 0xe2, 0x89, 0xe6, 0xc4, 0x02, 0x3f, 0xe4,
|
||||||
0x88, 0x56, 0x85, 0x88, 0x65, 0x86, 0x97, 0xd6, 0xd5, 0x22, 0x89, 0xb3, 0xdb, 0x45, 0x80, 0xc4,
|
0x38, 0xd1, 0x9e, 0xca, 0xe2, 0x10, 0x4f, 0xb5, 0x9c, 0x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d2, 0xaa, 0xa9, 0x5f, 0x17, 0xfa,
|
0x8a, 0x87, 0xed, 0xaf, 0xe2, 0xa5, 0xe2, 0xdb, 0xee, 0xbe, 0x47, 0xee, 0xe1, 0x2f, 0x68, 0xf5,
|
||||||
0x95, 0x86, 0xaf, 0x9e, 0x79, 0x27, 0xcb, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfe, 0xf8, 0x88,
|
0xc5, 0x14, 0x7a, 0xbe, 0x54, 0xb2, 0xb1, 0x5f, 0x17, 0xea, 0x05, 0x87, 0xaf, 0x76, 0xfb, 0x9b,
|
||||||
0xad, 0x35, 0x03, 0x00, 0x00,
|
0x96, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x72, 0x43, 0xd0, 0x5b, 0x03, 0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,7 +29,7 @@ enum Crawlers {
|
||||||
HEALTH_HTTP = 24;
|
HEALTH_HTTP = 24;
|
||||||
}
|
}
|
||||||
|
|
||||||
// The greeting service definition.
|
// services
|
||||||
service Config {
|
service Config {
|
||||||
rpc Add (Input) returns (Output) {}
|
rpc Add (Input) returns (Output) {}
|
||||||
rpc Remove (Input) returns (Output) {}
|
rpc Remove (Input) returns (Output) {}
|
||||||
|
@ -41,19 +41,23 @@ service Data {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// The request message containing the user's name.
|
// request models
|
||||||
|
|
||||||
message InputArray {
|
message InputArray {
|
||||||
repeated Input in = 1;
|
repeated Init in = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Init {
|
||||||
|
Crawlers name = 1;
|
||||||
|
string path = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Input {
|
message Input {
|
||||||
Crawlers name = 1;
|
Crawlers name = 1;
|
||||||
string id =2;
|
string id =2;
|
||||||
string path =3;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The response message containing the greetings
|
// response models
|
||||||
message Output {
|
message Output {
|
||||||
int64 startDate = 1;
|
int64 startDate = 1;
|
||||||
int64 endDate = 2;
|
int64 endDate = 2;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user