From fd78e1d432a1bea70fa1943644ccbe7a6cc2d481 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Sat, 7 Jan 2017 22:51:34 +0000 Subject: [PATCH] add comments for registration --- options.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/options.go b/options.go index 54367daa..483356ce 100644 --- a/options.go +++ b/options.go @@ -150,12 +150,14 @@ func Action(a func(*cli.Context)) Option { } } +// RegisterTTL specifies the TTL to use when registering the service func RegisterTTL(t time.Duration) Option { return func(o *Options) { o.Server.Init(server.RegisterTTL(t)) } } +// RegisterInterval specifies the interval on which to re-register func RegisterInterval(t time.Duration) Option { return func(o *Options) { o.RegisterInterval = t