operator

package
v0.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package operator coordinates projection bootstrap operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OperatorDB        *sql.DB
	WorkerDB          *sql.DB
	ReplicationConfig *pgconn.Config
}

Config contains the connections for one coordinator.

type Coordinator

type Coordinator struct {
	// contains filtered or unexported fields
}

Coordinator runs projection bootstrap operations.

func New

func New(config Config) (*Coordinator, error)

New creates a projection bootstrap coordinator.

func (*Coordinator) RunProjectionBootstrap

func (coordinator *Coordinator) RunProjectionBootstrap(ctx context.Context, registryGeneration int64) (_ ProjectionBootstrapResult, returnedErr error)

RunProjectionBootstrap activates one pending Class 3 registry generation.

type ProjectionBootstrapResult

type ProjectionBootstrapResult struct {
	BootstrapID            string   `json:"bootstrap_id"`
	RegistryGeneration     int64    `json:"registry_generation"`
	SourceStreamGeneration string   `json:"source_stream_generation"`
	ActiveSlotName         string   `json:"active_slot_name"`
	CandidateSlotName      string   `json:"candidate_slot_name"`
	SchemaVersion          *int64   `json:"schema_version"`
	SchemaHash             *string  `json:"schema_hash"`
	ActivationBarrier      string   `json:"activation_barrier"`
	AffectedScopes         []string `json:"affected_scopes"`
}

ProjectionBootstrapResult identifies one activated projection bootstrap.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL