Skip to content

Commit

Permalink
Add the LinkTo field for the FileInfo structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mstmdev committed Aug 7, 2023
1 parent 62313da commit 21ab4a0
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 18 deletions.
2 changes: 1 addition & 1 deletion api/auth/auth.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/info/info.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 25 additions & 15 deletions api/monitor/monitor.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/proto/monitor.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion api/task/task.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions contract/file_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit 21ab4a0

Please sign in to comment.