Documentation ¶
Index ¶
- Constants
- Variables
- type Config
- type Handler
- type Process
- func (p *Process) Info() (*client.DatabaseInfo, error)
- func (p *Process) Ready() <-chan state.DatabaseEvent
- func (p *Process) Reconfigure(config *state.Config) error
- func (p *Process) Start() error
- func (p *Process) Stop() error
- func (p *Process) XLog() xlog.XLog
- func (p *Process) XLogPosition() (xlog.Position, error)
Constants ¶
View Source
const (
IDKey = "POSTGRES_ID"
)
Variables ¶
View Source
var ErrNoReplicationStatus = errors.New("no replication status")
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { Process *Process Peer *state.Peer Heartbeater discoverd.Heartbeater Logger log15.Logger // contains filtered or unexported fields }
Handler represents an HTTP API handler for the process.
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func NewProcess ¶
func (*Process) Ready ¶
func (p *Process) Ready() <-chan state.DatabaseEvent
Click to show internal directories.
Click to hide internal directories.