Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
interface-go-dms3-core
Commits
af43bf0a
Commit
af43bf0a
authored
Jul 25, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
object coreapi: Address review
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
9fe2a845
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
object.go
object.go
+8
-6
No files found.
object.go
View file @
af43bf0a
...
@@ -31,25 +31,27 @@ type ObjectStat struct {
...
@@ -31,25 +31,27 @@ type ObjectStat struct {
CumulativeSize
int
CumulativeSize
int
}
}
// ChangeType denotes type of change in ObjectChange
type
ChangeType
int
const
(
const
(
// DiffAdd is
a Type of ObjectChange
whe
re
a link was added to the graph
// DiffAdd is
set
whe
n
a link was added to the graph
DiffAdd
=
iota
DiffAdd
ChangeType
=
iota
// DiffRemove is
a Type of ObjectChange
whe
re
a link was removed from the graph
// DiffRemove is
set
whe
n
a link was removed from the graph
DiffRemove
DiffRemove
// DiffMod is
a Type of ObjectChange
whe
re
a link was changed in the graph
// DiffMod is
set
whe
n
a link was changed in the graph
DiffMod
DiffMod
)
)
// ObjectChange represents a change ia a graph
// ObjectChange represents a change ia a graph
// TODO: do we want this to be an interface?
type
ObjectChange
struct
{
type
ObjectChange
struct
{
// Type of the change, either:
// Type of the change, either:
// * DiffAdd - Added a link
// * DiffAdd - Added a link
// * DiffRemove - Removed a link
// * DiffRemove - Removed a link
// * DiffMod - Modified a link
// * DiffMod - Modified a link
Type
int
Type
ChangeType
// Path to the changed link
// Path to the changed link
Path
string
Path
string
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment