Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
no-src
gofs
提交
d446cdf9
G
gofs
项目概览
no-src
/
gofs
9 个月 前同步成功
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gofs
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
未验证
提交
d446cdf9
编写于
8月 08, 2023
作者:
M
mstmdev
提交者:
GitHub
8月 08, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add the LinkTo field for the FileInfo structure (#228)
上级
62313dad
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
32 addition
and
18 deletion
+32
-18
api/auth/auth.pb.go
api/auth/auth.pb.go
+1
-1
api/info/info.pb.go
api/info/info.pb.go
+1
-1
api/monitor/monitor.pb.go
api/monitor/monitor.pb.go
+25
-15
api/proto/monitor.proto
api/proto/monitor.proto
+2
-0
api/task/task.pb.go
api/task/task.pb.go
+1
-1
contract/file_info.go
contract/file_info.go
+2
-0
未找到文件。
api/auth/auth.pb.go
浏览文件 @
d446cdf9
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.3
0
.0
// protoc-gen-go v1.3
1
.0
// protoc v4.22.2
// source: api/proto/auth.proto
...
...
api/info/info.pb.go
浏览文件 @
d446cdf9
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.3
0
.0
// protoc-gen-go v1.3
1
.0
// protoc v4.22.2
// source: api/proto/info.proto
...
...
api/monitor/monitor.pb.go
浏览文件 @
d446cdf9
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.3
0
.0
// protoc-gen-go v1.3
1
.0
// protoc v4.22.2
// source: api/proto/monitor.proto
...
...
@@ -109,6 +109,8 @@ type FileInfo struct {
ATime
int64
`protobuf:"varint,7,opt,name=a_time,json=aTime,proto3" json:"a_time,omitempty"`
// MTime last modify time, unix sec
MTime
int64
`protobuf:"varint,8,opt,name=m_time,json=mTime,proto3" json:"m_time,omitempty"`
// LinkTo link to the real file
LinkTo
string
`protobuf:"bytes,9,opt,name=link_to,json=linkTo,proto3" json:"link_to,omitempty"`
}
func
(
x
*
FileInfo
)
Reset
()
{
...
...
@@ -199,6 +201,13 @@ func (x *FileInfo) GetMTime() int64 {
return
0
}
func
(
x
*
FileInfo
)
GetLinkTo
()
string
{
if
x
!=
nil
{
return
x
.
LinkTo
}
return
""
}
// HashValue the file hash info
type
HashValue
struct
{
state
protoimpl
.
MessageState
...
...
@@ -271,7 +280,7 @@ var file_api_proto_monitor_proto_rawDesc = []byte{
0x6f
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x06
,
0x61
,
0x63
,
0x74
,
0x69
,
0x6f
,
0x6e
,
0x12
,
0x19
,
0x0a
,
0x08
,
0x62
,
0x61
,
0x73
,
0x65
,
0x5f
,
0x75
,
0x72
,
0x6c
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x07
,
0x62
,
0x61
,
0x73
,
0x65
,
0x55
,
0x72
,
0x6c
,
0x22
,
0x
d7
,
0x01
,
0x0a
,
0x08
,
0x46
,
0x69
,
0x6c
,
0x65
,
0x49
,
0x6e
,
0x66
,
0x65
,
0x55
,
0x72
,
0x6c
,
0x22
,
0x
f0
,
0x01
,
0x0a
,
0x08
,
0x46
,
0x69
,
0x6c
,
0x65
,
0x49
,
0x6e
,
0x66
,
0x6f
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x70
,
0x61
,
0x74
,
0x68
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x70
,
0x61
,
0x74
,
0x68
,
0x12
,
0x15
,
0x0a
,
0x06
,
0x69
,
0x73
,
0x5f
,
0x64
,
0x69
,
0x72
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x05
,
0x69
,
0x73
,
0x44
,
0x69
,
0x72
,
0x12
,
0x12
,
0x0a
,
0x04
,
...
...
@@ -284,19 +293,20 @@ var file_api_proto_monitor_proto_rawDesc = []byte{
0x69
,
0x6d
,
0x65
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x05
,
0x63
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x12
,
0x15
,
0x0a
,
0x06
,
0x61
,
0x5f
,
0x74
,
0x69
,
0x6d
,
0x65
,
0x18
,
0x07
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x05
,
0x61
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x12
,
0x15
,
0x0a
,
0x06
,
0x6d
,
0x5f
,
0x74
,
0x69
,
0x6d
,
0x65
,
0x18
,
0x08
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x05
,
0x6d
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x22
,
0x37
,
0x0a
,
0x09
,
0x48
,
0x61
,
0x73
,
0x68
,
0x56
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x6f
,
0x66
,
0x66
,
0x73
,
0x65
,
0x74
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x06
,
0x6f
,
0x66
,
0x66
,
0x73
,
0x65
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x68
,
0x61
,
0x73
,
0x68
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x68
,
0x61
,
0x73
,
0x68
,
0x32
,
0x50
,
0x0a
,
0x0e
,
0x4d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x12
,
0x3e
,
0x0a
,
0x07
,
0x4d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x12
,
0x16
,
0x2e
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x75
,
0x66
,
0x2e
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x1a
,
0x17
,
0x2e
,
0x6d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x2e
,
0x4d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x4d
,
0x65
,
0x73
,
0x73
,
0x61
,
0x67
,
0x65
,
0x22
,
0x00
,
0x30
,
0x01
,
0x42
,
0x24
,
0x5a
,
0x22
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x6e
,
0x6f
,
0x2d
,
0x73
,
0x72
,
0x63
,
0x2f
,
0x67
,
0x6f
,
0x66
,
0x73
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x6d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x65
,
0x18
,
0x08
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x05
,
0x6d
,
0x54
,
0x69
,
0x6d
,
0x65
,
0x12
,
0x17
,
0x0a
,
0x07
,
0x6c
,
0x69
,
0x6e
,
0x6b
,
0x5f
,
0x74
,
0x6f
,
0x18
,
0x09
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x6c
,
0x69
,
0x6e
,
0x6b
,
0x54
,
0x6f
,
0x22
,
0x37
,
0x0a
,
0x09
,
0x48
,
0x61
,
0x73
,
0x68
,
0x56
,
0x61
,
0x6c
,
0x75
,
0x65
,
0x12
,
0x16
,
0x0a
,
0x06
,
0x6f
,
0x66
,
0x66
,
0x73
,
0x65
,
0x74
,
0x18
,
0x01
,
0x20
,
0x01
,
0x28
,
0x03
,
0x52
,
0x06
,
0x6f
,
0x66
,
0x66
,
0x73
,
0x65
,
0x74
,
0x12
,
0x12
,
0x0a
,
0x04
,
0x68
,
0x61
,
0x73
,
0x68
,
0x18
,
0x02
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x04
,
0x68
,
0x61
,
0x73
,
0x68
,
0x32
,
0x50
,
0x0a
,
0x0e
,
0x4d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x53
,
0x65
,
0x72
,
0x76
,
0x69
,
0x63
,
0x65
,
0x12
,
0x3e
,
0x0a
,
0x07
,
0x4d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x12
,
0x16
,
0x2e
,
0x67
,
0x6f
,
0x6f
,
0x67
,
0x6c
,
0x65
,
0x2e
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x62
,
0x75
,
0x66
,
0x2e
,
0x45
,
0x6d
,
0x70
,
0x74
,
0x79
,
0x1a
,
0x17
,
0x2e
,
0x6d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x2e
,
0x4d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x4d
,
0x65
,
0x73
,
0x73
,
0x61
,
0x67
,
0x65
,
0x22
,
0x00
,
0x30
,
0x01
,
0x42
,
0x24
,
0x5a
,
0x22
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x6e
,
0x6f
,
0x2d
,
0x73
,
0x72
,
0x63
,
0x2f
,
0x67
,
0x6f
,
0x66
,
0x73
,
0x2f
,
0x61
,
0x70
,
0x69
,
0x2f
,
0x6d
,
0x6f
,
0x6e
,
0x69
,
0x74
,
0x6f
,
0x72
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
}
var
(
...
...
api/proto/monitor.proto
浏览文件 @
d446cdf9
...
...
@@ -39,6 +39,8 @@ message FileInfo{
int64
a_time
=
7
;
// MTime last modify time, unix sec
int64
m_time
=
8
;
// LinkTo link to the real file
string
link_to
=
9
;
}
// HashValue the file hash info
...
...
api/task/task.pb.go
浏览文件 @
d446cdf9
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.3
0
.0
// protoc-gen-go v1.3
1
.0
// protoc v4.22.2
// source: api/proto/task.proto
...
...
contract/file_info.go
浏览文件 @
d446cdf9
...
...
@@ -20,4 +20,6 @@ type FileInfo struct {
ATime
int64
`json:"a_time"`
// MTime last modify time, unix sec
MTime
int64
`json:"m_time"`
// LinkTo link to the real file
LinkTo
string
`json:"link_to"`
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录