EtcdStore etcd store impl
| 39 | |
| 40 | // EtcdStore etcd store impl |
| 41 | type EtcdStore struct { |
| 42 | sync.RWMutex |
| 43 | |
| 44 | prefix string |
| 45 | clustersDir string |
| 46 | serversDir string |
| 47 | bindsDir string |
| 48 | apisDir string |
| 49 | proxiesDir string |
| 50 | routingsDir string |
| 51 | idPath string |
| 52 | |
| 53 | idLock sync.Mutex |
| 54 | base uint64 |
| 55 | end uint64 |
| 56 | |
| 57 | evtCh chan *Evt |
| 58 | watchMethodMapping map[EvtSrc]func(EvtType, *mvccpb.KeyValue) *Evt |
| 59 | |
| 60 | rawClient *clientv3.Client |
| 61 | } |
| 62 | |
| 63 | // NewEtcdStore create a etcd store |
| 64 | func NewEtcdStore(etcdAddrs []string, prefix string, basicAuth BasicAuth) (Store, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected