Documentation
¶
Index ¶
Constants ¶
View Source
const ( // EventAdd is the add event. EventAdd = EventType(iota + 1) // EventUpdate is the update event. EventUpdate // EventDelete is the delete event EventDelete )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
// EventCh returns a send-only channel to the users, so that users
// can feed events to Etcd Adapter. Note this is a non-buffered channel.
EventCh() chan<- []*Event
// Serve accepts a net.Listener object and starts the Etcd V3 server.
Serve(context.Context, net.Listener) error
// Shutdown shuts the etcd adapter down.
Shutdown(context.Context) error
}
func NewEtcdAdapter ¶
func NewEtcdAdapter(opts *AdapterOptions) Adapter
NewEtcdAdapter new an etcd adapter instance.
type AdapterOptions ¶
Click to show internal directories.
Click to hide internal directories.