Documentation
¶
Overview ¶
Package infrastructure contains the structs and interfaces needed to manage replication slots
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ReplicationSlot ¶
type ReplicationSlot struct {
SlotName string `json:"slotName,omitempty"`
Type SlotType `json:"type,omitempty"`
Active bool `json:"active"`
RestartLSN string `json:"restartLSN,omitempty"`
IsHA bool `json:"isHA,omitempty"`
HoldsXmin bool `json:"holdsXmin,omitempty"`
}
ReplicationSlot represents a single replication slot
type ReplicationSlotList ¶
type ReplicationSlotList struct {
Items []ReplicationSlot
}
ReplicationSlotList contains a list of replication slots
func List ¶ added in v1.23.6
func List(ctx context.Context, db *sql.DB, config *v1.ReplicationSlotsConfiguration) (ReplicationSlotList, error)
List the available replication slots
func (ReplicationSlotList) Get ¶
func (sl ReplicationSlotList) Get(name string) *ReplicationSlot
Get returns the ReplicationSlot with the required name if present in the ReplicationSlotList
func (ReplicationSlotList) Has ¶
func (sl ReplicationSlotList) Has(name string) bool
Has returns true is a ReplicationSlot with the required name if present in the ReplicationSlotList
Click to show internal directories.
Click to hide internal directories.