Documentation ¶
Index ¶
Constants ¶
View Source
const (
StandbyStatusUpdateByteID = 'r'
)
Variables ¶
View Source
var (
ErrorSlotInUse = errors.New("replication slot in use")
)
Functions ¶
func AppendUint64 ¶
func SendStandbyStatusUpdate ¶
Types ¶
type ListenerContext ¶
type ListenerFunc ¶
type ListenerFunc func(ctx *ListenerContext)
type Replication ¶
type Replication struct {
// contains filtered or unexported fields
}
func New ¶
func New(conn pq.Connection) *Replication
func (*Replication) Start ¶
func (r *Replication) Start(publicationName, slotName string) error
type Streamer ¶
type Streamer interface { Open(ctx context.Context) error Close(ctx context.Context) GetSystemInfo() *pq.IdentifySystemResult GetMetric() metric.Metric }
func NewStream ¶
func NewStream(conn pq.Connection, cfg config.Config, m metric.Metric, system *pq.IdentifySystemResult, listenerFunc ListenerFunc) Streamer
Click to show internal directories.
Click to hide internal directories.