-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: rename task changes column to summary
- Loading branch information
Showing
6 changed files
with
98 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package state | ||
|
||
const ( | ||
Empty ReloadSummary = iota | ||
Unchanged | ||
Updated | ||
) | ||
|
||
type ReloadSummary int | ||
|
||
func (s ReloadSummary) String() string { | ||
switch s { | ||
case Empty: | ||
return "empty" | ||
case Unchanged: | ||
return "unchanged" | ||
case Updated: | ||
return "updated" | ||
default: | ||
return "" | ||
} | ||
} | ||
|
||
func newReloadSummary(before, after *State) ReloadSummary { | ||
if after == nil { | ||
return Empty | ||
} | ||
if after.Serial == -1 { | ||
return Empty | ||
} | ||
if before == nil { | ||
return Updated | ||
} | ||
if before.Serial == after.Serial { | ||
return Unchanged | ||
} | ||
return Updated | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters