package watch

import etcd "github.com/coreos/etcd/clientv3"

// OpOption is a simple typedef for etcd.OpOption.
type OpOption etcd.OpOption

// WithFilterPut discards PUT events from the watcher.
func WithFilterPut() OpOption {
	return OpOption(etcd.WithFilterPut())
}

package watch

import etcd "github.com/coreos/etcd/clientv3"

// OpOption is a simple typedef for etcd.OpOption.
type OpOption etcd.OpOption

// WithFilterPut discards PUT events from the watcher.
func WithFilterPut() OpOption {
	return OpOption(etcd.WithFilterPut())
}

// WithFilterDelete discards DELETE events from the watcher.
func WithFilterDelete() OpOption {
	return OpOption(etcd.WithFilterDelete())
}

Add delete filter to watch package
Add delete filter to watch package
