Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (14 sloc) 334 Bytes
package donut
import (
"github.com/dforsyth/sprinkles/zookeeper"
)
type Listener interface {
// Called when the listener joins a cluster
OnJoin(*zookeeper.ZooKeeper)
// Called when the listener leaves a cluster
OnLeave()
// Called when a task is started
StartTask(string)
// Called when a task is stopped
EndTask(string)
}