github.com/weedge/lib@v0.0.0-20230424045628-a36dcc1d90e4/client/etcd/discovery/define.go (about)

     1  package discovery
     2  
     3  import (
     4  	"time"
     5  
     6  	"go.etcd.io/etcd/client/v3"
     7  )
     8  
     9  const (
    10  	DEBUG       = false
    11  	Scheme      = "etcdv3"
    12  	defaultFreq = time.Minute * 30
    13  )
    14  
    15  type EtcdClient struct {
    16  	endpoints   []string
    17  	dialTimeout time.Duration
    18  	client      *clientv3.Client
    19  }
    20  
    21