Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Postgres ¶
type Postgres struct { Connection *pgconn.PgConn DSN string IsAlive bool Mutex *sync.Mutex State string WaitGroup *sync.WaitGroup // contains filtered or unexported fields }
Postgres is the main structure for each server
func (*Postgres) GetState ¶
func (p *Postgres) GetState()
GetState get Postgres server state (replica or master)
Click to show internal directories.
Click to hide internal directories.