From 8a4ed24b38b5d5c9a55ec7ff76acbcc5da96a579 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Thu, 27 Jan 2022 09:41:55 +0300 Subject: [PATCH] export default domain Signed-off-by: Vasiliy Tolstov --- etcd.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/etcd.go b/etcd.go index dc5153d..f1280a2 100644 --- a/etcd.go +++ b/etcd.go @@ -23,13 +23,11 @@ import ( ) const ( - prefix = "/micro/register/" - defaultDomain = "micro" + Defaultprefix = "/micro/register/" + DefaultDomain = "micro" ) -var ( - _ register.Register = &etcdRegister{} -) +var _ register.Register = &etcdRegister{} type etcdRegister struct { client *clientv3.Client @@ -41,8 +39,10 @@ type etcdRegister struct { leases map[string]leases } -type reg map[string]uint64 -type leases map[string]clientv3.LeaseID +type ( + reg map[string]uint64 + leases map[string]clientv3.LeaseID +) // NewRegister returns an initialized etcd register func NewRegister(opts ...register.Option) *etcdRegister {