Versions in this module Expand all Collapse all v1 v1.0.2 Apr 16, 2021 v1.0.1 Apr 15, 2021 Changes in this version + func InitMonitor() + func Monitor() + type Coordinator struct + Host string + Name string + Port int + PrimaryNodeID int + func GetCoordinator() (*Coordinator, error) + type Node struct + CandidatePriority int + FormationID string + GoalState string + GroupID int + Health int + HealthCheckTime time.Time + Host string + ID int + IsCoordinator bool + Name string + NodeCluster string + Port int + ReplicationQuorum bool + ReportTime time.Time + ReportedLSN string + ReportedPGIsRunning bool + ReportedRepState string + ReportedState string + StateChangeTime time.Time + SysIdentifier string + WALReportTime time.Time + func GetAllCoordinators() ([]*Node, error) + func GetNodes() ([]*Node, error) + type NullBool struct + func (nb *NullBool) UnmarshalJSON(b []byte) error + func (nb NullBool) MarshalJSON() ([]byte, error) + type NullFloat64 struct + func Float64ToNullFloat64(f float64) NullFloat64 + func (nf *NullFloat64) UnmarshalJSON(b []byte) error + func (nf NullFloat64) MarshalJSON() ([]byte, error) + type NullInt64 struct + func Int64ToNullInt64(i int64) NullInt64 + func (ni *NullInt64) ToInt64() int64 + func (ni *NullInt64) UnmarshalJSON(b []byte) error + func (ni NullInt64) MarshalJSON() ([]byte, error) + type NullString struct + func StringToNullString(s string) NullString + func (ns *NullString) ToString() string + func (ns *NullString) UnmarshalJSON(b []byte) error + func (ns NullString) MarshalJSON() ([]byte, error) + type NullTime struct + func TimeToNullTime(t time.Time, null bool) NullTime + func (nt *NullTime) UnmarshalJSON(b []byte) error + func (nt NullTime) MarshalJSON() ([]byte, error) + type Worker struct + Active bool + Cluster string + GroupID int + HasMetaData NullBool + Host string + ID int + MetaDataSynced NullBool + Port int + Rack string + Role string + ShouldHaveShards bool + func GetPrimaryWorkers() ([]*Worker, error)