Skip to content

[WIP] sd/etcd:started to work on a periodical registrar - #355

Closed
pdaures wants to merge 2 commits into
go-kit:masterfrom
pdaures:etcd-periodical-registrar
Closed

[WIP] sd/etcd:started to work on a periodical registrar#355
pdaures wants to merge 2 commits into
go-kit:masterfrom
pdaures:etcd-periodical-registrar

Conversation

@pdaures

@pdaures pdaures commented Sep 4, 2016

Copy link
Copy Markdown

Work in Progress.

@peterbourgon please comment on the current structure, names and don't hesitate to ask for changes.

Comment thread sd/etcd/periodic_registrar.go Outdated

// NewPeriodicRegistrar returns a etcd Registrar with recurring registeation acting on the provided catalog
// registration (service).
func NewPeriodicRegistrar(client Client, service Service, logger log.Logger, frequencySec, expirationSec int) *PeriodicRegistrar {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use time.Duration instead of int

@peterbourgon

Copy link
Copy Markdown
Member

Overall direction looks good to me. I'll withhold further comments until you think it's in a ready-for-review state. I'll also update the title to reflect the fact it's a work in progress.

@peterbourgon peterbourgon changed the title sd/etcd:started to work on a periodical registrar [WIP] sd/etcd:started to work on a periodical registrar Sep 5, 2016
@peterbourgon

Copy link
Copy Markdown
Member

@pdaures Do you want me to take a look at this more thoroughly now?

@peterbourgon

Copy link
Copy Markdown
Member

This was completed in #413.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants