Adds a simple database watcher. At this point it's just one process, but the plan is to allow different implementations that inform the local running workers of changes that have occured on entities of interest in the database. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
12 lines
460 B
Go
12 lines
460 B
Go
package common
|
|
|
|
import "fmt"
|
|
|
|
var (
|
|
ErrProducerClosed = fmt.Errorf("producer is closed")
|
|
ErrProducerTimeoutErr = fmt.Errorf("producer timeout error")
|
|
ErrProducerAlreadyRegistered = fmt.Errorf("producer already registered")
|
|
ErrConsumerAlreadyRegistered = fmt.Errorf("consumer already registered")
|
|
ErrWatcherAlreadyStarted = fmt.Errorf("watcher already started")
|
|
ErrWatcherNotInitialized = fmt.Errorf("watcher not initialized")
|
|
)
|