fixup mr conflict
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
268a8e2cb1
commit
7bda00cd80
@ -7,14 +7,6 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
type EventType int
|
|
||||||
|
|
||||||
const (
|
|
||||||
EventTypeUnknown = iota
|
|
||||||
EventTypeConnect
|
|
||||||
EventTypeDisconnect
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
ErrWatcherStopped = errors.New("watcher stopped")
|
ErrWatcherStopped = errors.New("watcher stopped")
|
||||||
// ErrNotConnected is returned when a store is not connected
|
// ErrNotConnected is returned when a store is not connected
|
||||||
@ -29,11 +21,6 @@ var (
|
|||||||
DefaultSeparator = "/"
|
DefaultSeparator = "/"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Event interface {
|
|
||||||
Error() error
|
|
||||||
Type() EventType
|
|
||||||
}
|
|
||||||
|
|
||||||
// Store is a data storage interface
|
// Store is a data storage interface
|
||||||
type Store interface {
|
type Store interface {
|
||||||
// Name returns store name
|
// Name returns store name
|
||||||
@ -119,13 +106,6 @@ func NewWatchOptions(opts ...WatchOption) (WatchOptions, error) {
|
|||||||
return options, err
|
return options, err
|
||||||
}
|
}
|
||||||
|
|
||||||
type Watcher interface {
|
|
||||||
// Next is a blocking call
|
|
||||||
Next() (Event, error)
|
|
||||||
// Stop stops the watcher
|
|
||||||
Stop()
|
|
||||||
}
|
|
||||||
|
|
||||||
func Watch(context.Context) (Watcher, error) {
|
func Watch(context.Context) (Watcher, error) {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user