Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrStopped defines error on observer service has already stopped ErrStopped = errors.New("observer service has stopped") // ErrNotFound defines error on fail to found specified resource ErrNotFound = errors.New("resource not found") // ErrInconsistentData represents corrupted observation data. ErrInconsistentData = errors.New("inconsistent data") )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Databases []Database `yaml:"Databases"`
}
Config defines subscription settings for observer.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines the observer service structure.
func NewService ¶
NewService creates new observer service and load previous subscription from the meta database.
Click to show internal directories.
Click to hide internal directories.