-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(kuma-cp) subscription finalizer, rev 2 #2526
Merged
Merged
Changes from 14 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d1de189
fix(kuma-cp) add a status finalizer component
lobkovilya db8797c
fix(kuma-cp) make check
lobkovilya 2f5b5e9
fix(kuma-cp) refactor finalizer, add 'idleTimeout' to config
lobkovilya 1f1779b
fix(kuma-cp) ci fixes
lobkovilya f4bc7e4
fix(kuma-cp) fix test
lobkovilya 68c55d1
Merge branch 'master' into fix/status-finalizer
lobkovilya 1069ebd
fix(kuma-cp) review
lobkovilya a589f8f
fix(kuma-cp) replace 'candidate' approach with 'generation'
lobkovilya 0f03409
Merge branch 'master' into fix/status-finalizer-with-counter
lobkovilya db8b68b
fix(kuma-cp) revert changing of Upsert signature
lobkovilya f976e93
fix(kuma-cp) add unit test
lobkovilya 57d42df
Merge branch 'master' into fix/status-finalizer-with-counter
lobkovilya d21644a
fix(kuma-cp) tests
lobkovilya 3d1dcb5
fix(kuma-cp) fix race condition
lobkovilya d2094a3
fix(kuma-cp) review
lobkovilya f0754db
fix(kuma-cp) review
lobkovilya 86a3492
fix(kuma-cp) restore 'generation' field
lobkovilya 7809a6e
Merge branch 'master' into fix/status-finalizer-with-counter
lobkovilya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,21 @@ | ||
package helpers | ||
|
||
import ( | ||
"time" | ||
|
||
"github.com/golang/protobuf/proto" | ||
) | ||
|
||
type Insight interface { | ||
proto.Message | ||
IsOnline() bool | ||
GetLastSubscription() Subscription | ||
UpdateSubscription(Subscription) | ||
} | ||
|
||
type Subscription interface { | ||
proto.Message | ||
GetId() string | ||
GetGeneration() uint32 | ||
SetDisconnectTime(time time.Time) | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this be done in this PR or separate? If separate, do we have a issue / card for it?