etcd: github.com/etcd-io/etcd/clientv3/mirror Index | Files

package mirror

import "github.com/etcd-io/etcd/clientv3/mirror"

Package mirror implements etcd mirroring operations.

Index

Package Files

syncer.go

type Syncer Uses

type Syncer interface {
    // SyncBase syncs the base state of the key-value state.
    // The key-value state are sent through the returned chan.
    SyncBase(ctx context.Context) (<-chan clientv3.GetResponse, chan error)
    // SyncUpdates syncs the updates of the key-value state.
    // The update events are sent through the returned chan.
    SyncUpdates(ctx context.Context) clientv3.WatchChan
}

Syncer syncs with the key-value state of an etcd cluster.

func NewSyncer Uses

func NewSyncer(c *clientv3.Client, prefix string, rev int64) Syncer

NewSyncer creates a Syncer.

Package mirror imports 2 packages (graph). Updated 2019-06-14. Refresh now. Tools for package owners.