Documentation ¶
Index ¶
- Constants
- type Checker
- type Manager
- type Monitor
- type RealMonitor
- func (m *RealMonitor) Add(in proto.Instance) chan proto.Instance
- func (m *RealMonitor) Check()
- func (m *RealMonitor) ListenerCount(uuid string) uint
- func (m *RealMonitor) Remove(uuid string, c chan proto.Instance)
- func (m *RealMonitor) Start(interval time.Duration) error
- func (m *RealMonitor) Status() map[string]string
- func (m *RealMonitor) Stop() error
Constants ¶
View Source
const ( SERVICE_NAME = "mrms" MONITOR_INTERVAL = 50 * time.Second )
View Source
const MONITOR_NAME = "mrm-monitor"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) GetDefaults ¶
type RealMonitor ¶
func NewRealMonitor ¶
func NewRealMonitor(logger *pct.Logger, mysqlConnFactory mysql.ConnectionFactory) *RealMonitor
func (*RealMonitor) Check ¶
func (m *RealMonitor) Check()
func (*RealMonitor) ListenerCount ¶
func (m *RealMonitor) ListenerCount(uuid string) uint
func (*RealMonitor) Status ¶
func (m *RealMonitor) Status() map[string]string
func (*RealMonitor) Stop ¶
func (m *RealMonitor) Stop() error
Click to show internal directories.
Click to hide internal directories.