3 changed files with 290 additions and 1 deletions
@ -0,0 +1,264 @@ |
|||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|||
// versions:
|
|||
// protoc-gen-go v1.36.6
|
|||
// protoc v6.30.2
|
|||
// source: scinfo.proto
|
|||
|
|||
package pb |
|||
|
|||
import ( |
|||
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
|||
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
|||
reflect "reflect" |
|||
sync "sync" |
|||
unsafe "unsafe" |
|||
) |
|||
|
|||
const ( |
|||
// Verify that this generated code is sufficiently up-to-date.
|
|||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
|||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
|||
) |
|||
|
|||
// 服务信息
|
|||
type ServiceInfo struct { |
|||
state protoimpl.MessageState `protogen:"open.v1"` |
|||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
|||
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
|||
Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"` |
|||
unknownFields protoimpl.UnknownFields |
|||
sizeCache protoimpl.SizeCache |
|||
} |
|||
|
|||
func (x *ServiceInfo) Reset() { |
|||
*x = ServiceInfo{} |
|||
mi := &file_scinfo_proto_msgTypes[0] |
|||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|||
ms.StoreMessageInfo(mi) |
|||
} |
|||
|
|||
func (x *ServiceInfo) String() string { |
|||
return protoimpl.X.MessageStringOf(x) |
|||
} |
|||
|
|||
func (*ServiceInfo) ProtoMessage() {} |
|||
|
|||
func (x *ServiceInfo) ProtoReflect() protoreflect.Message { |
|||
mi := &file_scinfo_proto_msgTypes[0] |
|||
if x != nil { |
|||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|||
if ms.LoadMessageInfo() == nil { |
|||
ms.StoreMessageInfo(mi) |
|||
} |
|||
return ms |
|||
} |
|||
return mi.MessageOf(x) |
|||
} |
|||
|
|||
// Deprecated: Use ServiceInfo.ProtoReflect.Descriptor instead.
|
|||
func (*ServiceInfo) Descriptor() ([]byte, []int) { |
|||
return file_scinfo_proto_rawDescGZIP(), []int{0} |
|||
} |
|||
|
|||
func (x *ServiceInfo) GetName() string { |
|||
if x != nil { |
|||
return x.Name |
|||
} |
|||
return "" |
|||
} |
|||
|
|||
func (x *ServiceInfo) GetVersion() string { |
|||
if x != nil { |
|||
return x.Version |
|||
} |
|||
return "" |
|||
} |
|||
|
|||
func (x *ServiceInfo) GetAddr() string { |
|||
if x != nil { |
|||
return x.Addr |
|||
} |
|||
return "" |
|||
} |
|||
|
|||
// 目录下的文件信息
|
|||
type FileInfo struct { |
|||
state protoimpl.MessageState `protogen:"open.v1"` |
|||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
|||
Size string `protobuf:"bytes,2,opt,name=size,proto3" json:"size,omitempty"` |
|||
ModTime string `protobuf:"bytes,3,opt,name=modTime,proto3" json:"modTime,omitempty"` |
|||
unknownFields protoimpl.UnknownFields |
|||
sizeCache protoimpl.SizeCache |
|||
} |
|||
|
|||
func (x *FileInfo) Reset() { |
|||
*x = FileInfo{} |
|||
mi := &file_scinfo_proto_msgTypes[1] |
|||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|||
ms.StoreMessageInfo(mi) |
|||
} |
|||
|
|||
func (x *FileInfo) String() string { |
|||
return protoimpl.X.MessageStringOf(x) |
|||
} |
|||
|
|||
func (*FileInfo) ProtoMessage() {} |
|||
|
|||
func (x *FileInfo) ProtoReflect() protoreflect.Message { |
|||
mi := &file_scinfo_proto_msgTypes[1] |
|||
if x != nil { |
|||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|||
if ms.LoadMessageInfo() == nil { |
|||
ms.StoreMessageInfo(mi) |
|||
} |
|||
return ms |
|||
} |
|||
return mi.MessageOf(x) |
|||
} |
|||
|
|||
// Deprecated: Use FileInfo.ProtoReflect.Descriptor instead.
|
|||
func (*FileInfo) Descriptor() ([]byte, []int) { |
|||
return file_scinfo_proto_rawDescGZIP(), []int{1} |
|||
} |
|||
|
|||
func (x *FileInfo) GetName() string { |
|||
if x != nil { |
|||
return x.Name |
|||
} |
|||
return "" |
|||
} |
|||
|
|||
func (x *FileInfo) GetSize() string { |
|||
if x != nil { |
|||
return x.Size |
|||
} |
|||
return "" |
|||
} |
|||
|
|||
func (x *FileInfo) GetModTime() string { |
|||
if x != nil { |
|||
return x.ModTime |
|||
} |
|||
return "" |
|||
} |
|||
|
|||
// 代码内容
|
|||
type CodeContent struct { |
|||
state protoimpl.MessageState `protogen:"open.v1"` |
|||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
|||
Content []byte `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` |
|||
unknownFields protoimpl.UnknownFields |
|||
sizeCache protoimpl.SizeCache |
|||
} |
|||
|
|||
func (x *CodeContent) Reset() { |
|||
*x = CodeContent{} |
|||
mi := &file_scinfo_proto_msgTypes[2] |
|||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|||
ms.StoreMessageInfo(mi) |
|||
} |
|||
|
|||
func (x *CodeContent) String() string { |
|||
return protoimpl.X.MessageStringOf(x) |
|||
} |
|||
|
|||
func (*CodeContent) ProtoMessage() {} |
|||
|
|||
func (x *CodeContent) ProtoReflect() protoreflect.Message { |
|||
mi := &file_scinfo_proto_msgTypes[2] |
|||
if x != nil { |
|||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
|||
if ms.LoadMessageInfo() == nil { |
|||
ms.StoreMessageInfo(mi) |
|||
} |
|||
return ms |
|||
} |
|||
return mi.MessageOf(x) |
|||
} |
|||
|
|||
// Deprecated: Use CodeContent.ProtoReflect.Descriptor instead.
|
|||
func (*CodeContent) Descriptor() ([]byte, []int) { |
|||
return file_scinfo_proto_rawDescGZIP(), []int{2} |
|||
} |
|||
|
|||
func (x *CodeContent) GetName() string { |
|||
if x != nil { |
|||
return x.Name |
|||
} |
|||
return "" |
|||
} |
|||
|
|||
func (x *CodeContent) GetContent() []byte { |
|||
if x != nil { |
|||
return x.Content |
|||
} |
|||
return nil |
|||
} |
|||
|
|||
var File_scinfo_proto protoreflect.FileDescriptor |
|||
|
|||
const file_scinfo_proto_rawDesc = "" + |
|||
"\n" + |
|||
"\fscinfo.proto\"O\n" + |
|||
"\vServiceInfo\x12\x12\n" + |
|||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + |
|||
"\aversion\x18\x02 \x01(\tR\aversion\x12\x12\n" + |
|||
"\x04addr\x18\x03 \x01(\tR\x04addr\"L\n" + |
|||
"\bFileInfo\x12\x12\n" + |
|||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n" + |
|||
"\x04size\x18\x02 \x01(\tR\x04size\x12\x18\n" + |
|||
"\amodTime\x18\x03 \x01(\tR\amodTime\";\n" + |
|||
"\vCodeContent\x12\x12\n" + |
|||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" + |
|||
"\acontent\x18\x02 \x01(\fR\acontentB\x06Z\x04./pbb\x06proto3" |
|||
|
|||
var ( |
|||
file_scinfo_proto_rawDescOnce sync.Once |
|||
file_scinfo_proto_rawDescData []byte |
|||
) |
|||
|
|||
func file_scinfo_proto_rawDescGZIP() []byte { |
|||
file_scinfo_proto_rawDescOnce.Do(func() { |
|||
file_scinfo_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_scinfo_proto_rawDesc), len(file_scinfo_proto_rawDesc))) |
|||
}) |
|||
return file_scinfo_proto_rawDescData |
|||
} |
|||
|
|||
var file_scinfo_proto_msgTypes = make([]protoimpl.MessageInfo, 3) |
|||
var file_scinfo_proto_goTypes = []any{ |
|||
(*ServiceInfo)(nil), // 0: ServiceInfo
|
|||
(*FileInfo)(nil), // 1: FileInfo
|
|||
(*CodeContent)(nil), // 2: CodeContent
|
|||
} |
|||
var file_scinfo_proto_depIdxs = []int32{ |
|||
0, // [0:0] is the sub-list for method output_type
|
|||
0, // [0:0] is the sub-list for method input_type
|
|||
0, // [0:0] is the sub-list for extension type_name
|
|||
0, // [0:0] is the sub-list for extension extendee
|
|||
0, // [0:0] is the sub-list for field type_name
|
|||
} |
|||
|
|||
func init() { file_scinfo_proto_init() } |
|||
func file_scinfo_proto_init() { |
|||
if File_scinfo_proto != nil { |
|||
return |
|||
} |
|||
type x struct{} |
|||
out := protoimpl.TypeBuilder{ |
|||
File: protoimpl.DescBuilder{ |
|||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
|||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_scinfo_proto_rawDesc), len(file_scinfo_proto_rawDesc)), |
|||
NumEnums: 0, |
|||
NumMessages: 3, |
|||
NumExtensions: 0, |
|||
NumServices: 0, |
|||
}, |
|||
GoTypes: file_scinfo_proto_goTypes, |
|||
DependencyIndexes: file_scinfo_proto_depIdxs, |
|||
MessageInfos: file_scinfo_proto_msgTypes, |
|||
}.Build() |
|||
File_scinfo_proto = out.File |
|||
file_scinfo_proto_goTypes = nil |
|||
file_scinfo_proto_depIdxs = nil |
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
syntax = "proto3"; |
|||
option go_package = "./pb"; |
|||
|
|||
// 服务信息 |
|||
message ServiceInfo { |
|||
string name = 1; |
|||
string version = 2; |
|||
string addr = 3; |
|||
} |
|||
|
|||
// 目录下的文件信息 |
|||
message FileInfo { |
|||
string name = 1; |
|||
string size = 2; |
|||
string modTime = 3; |
|||
} |
|||
|
|||
|
|||
// 代码内容 |
|||
message CodeContent { |
|||
string name = 1; |
|||
bytes content = 2; |
|||
} |
|||
|
|||
Loading…
Reference in new issue