Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(347)

Issue 5885059: Adding of ServiceConfigWatcher. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years ago by TheMue
Modified:
11 years, 12 months ago
Reviewers:
mp+99027
Visibility:
Public.

Description

Adding of ServiceConfigWatcher. The ServiceConfigWatcher is the first one of a number of watchers and a proof of concept. There will be similarities between all watchers, so maybe one util type taking an interface based behavior that's internally used is a better approach. https://code.launchpad.net/~themue/juju/go-state-service-config-watcher/+merge/99027 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Adding of ServiceConfigWatcher. #

Total comments: 22

Patch Set 3 : Adding of ServiceConfigWatcher. #

Total comments: 6

Patch Set 4 : Adding of ServiceConfigWatcher. #

Total comments: 13

Patch Set 5 : Adding of ServiceConfigWatcher. #

Total comments: 24

Patch Set 6 : Adding of ServiceConfigWatcher. #

Patch Set 7 : Adding of ServiceConfigWatcher. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -14 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M state/service.go View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download
M state/state.go View 1 2 3 4 5 2 chunks +70 lines, -0 lines 0 comments Download
M state/util.go View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download
A state/watch_test.go View 1 2 3 4 5 1 chunk +83 lines, -0 lines 0 comments Download
M state/watcher/watcher.go View 1 2 3 4 5 8 chunks +18 lines, -6 lines 0 comments Download
M state/watcher/watcher_test.go View 1 2 3 4 5 5 chunks +8 lines, -8 lines 0 comments Download

Messages

Total messages: 12
TheMue
Please take a look.
12 years ago (2012-03-23 14:07:20 UTC) #1
TheMue
Please take a look.
12 years ago (2012-03-30 09:12:09 UTC) #2
rog
looks great. mostly minor comments. https://codereview.appspot.com/5885059/diff/3001/state/service.go File state/service.go (right): https://codereview.appspot.com/5885059/diff/3001/state/service.go#newcode18 state/service.go:18: type ServiceConfigWatcher struct { ...
12 years ago (2012-03-30 10:04:22 UTC) #3
TheMue
Please take a look. https://codereview.appspot.com/5885059/diff/3001/state/service.go File state/service.go (right): https://codereview.appspot.com/5885059/diff/3001/state/service.go#newcode18 state/service.go:18: type ServiceConfigWatcher struct { On ...
12 years ago (2012-03-30 14:48:58 UTC) #4
rog
LGTM https://codereview.appspot.com/5885059/diff/7001/state/service.go File state/service.go (right): https://codereview.appspot.com/5885059/diff/7001/state/service.go#newcode17 state/service.go:17: // ServiceConfigWatcher observices configuration changes of a service. ...
12 years ago (2012-03-30 15:03:40 UTC) #5
TheMue
Please take a look. https://codereview.appspot.com/5885059/diff/7001/state/service.go File state/service.go (right): https://codereview.appspot.com/5885059/diff/7001/state/service.go#newcode17 state/service.go:17: // ServiceConfigWatcher observices configuration changes ...
12 years ago (2012-03-30 15:11:31 UTC) #6
niemeyer
Looks very nice overall. https://codereview.appspot.com/5885059/diff/9001/state/service.go File state/service.go (right): https://codereview.appspot.com/5885059/diff/9001/state/service.go#newcode19 state/service.go:19: type ServiceConfigWatcher struct { This ...
12 years ago (2012-04-03 17:10:52 UTC) #7
TheMue
Please take a look. https://codereview.appspot.com/5885059/diff/9001/state/service.go File state/service.go (right): https://codereview.appspot.com/5885059/diff/9001/state/service.go#newcode19 state/service.go:19: type ServiceConfigWatcher struct { On ...
12 years ago (2012-04-04 13:53:19 UTC) #8
niemeyer
Thanks for the changes. Another round, and probably the last. https://codereview.appspot.com/5885059/diff/4016/state/state.go File state/state.go (right): https://codereview.appspot.com/5885059/diff/4016/state/state.go#newcode264 ...
12 years ago (2012-04-05 00:15:35 UTC) #9
TheMue
Please take a look. https://codereview.appspot.com/5885059/diff/4016/state/state.go File state/state.go (right): https://codereview.appspot.com/5885059/diff/4016/state/state.go#newcode264 state/state.go:264: // Changes returns the channel ...
12 years ago (2012-04-05 13:02:42 UTC) #10
niemeyer
LGTM, thank you.
12 years ago (2012-04-05 14:28:07 UTC) #11
TheMue
12 years ago (2012-04-05 14:43:16 UTC) #12
*** Submitted:

Adding of ServiceConfigWatcher.

The ServiceConfigWatcher is the first one of a number of
watchers and a proof of concept. There will be similarities
between all watchers, so maybe one util type taking an
interface based behavior that's internally used is a
better approach.

R=rog, niemeyer
CC=
https://codereview.appspot.com/5885059
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b