Skip to content

Commit d446cdf

Browse files
authored
Add the LinkTo field for the FileInfo structure (#228)
1 parent 62313da commit d446cdf

File tree

6 files changed

+32
-18
lines changed

6 files changed

+32
-18
lines changed

api/auth/auth.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/info/info.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/monitor/monitor.pb.go

Lines changed: 25 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/proto/monitor.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ message FileInfo{
3939
int64 a_time = 7;
4040
// MTime last modify time, unix sec
4141
int64 m_time = 8;
42+
// LinkTo link to the real file
43+
string link_to = 9;
4244
}
4345

4446
// HashValue the file hash info

api/task/task.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

contract/file_info.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ type FileInfo struct {
2020
ATime int64 `json:"a_time"`
2121
// MTime last modify time, unix sec
2222
MTime int64 `json:"m_time"`
23+
// LinkTo link to the real file
24+
LinkTo string `json:"link_to"`
2325
}

0 commit comments

Comments
 (0)