sections

package
v0.6.47 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package sections publishes the services' own manifest sections (pkg/backplane/sections): by name, the section of every serving service's highest serving version, to Consul KV Prefix+<name> as a backplanev1.SectionSet. The SDK follows a name by watching its key.

Index

Constants

View Source
const Prefix = "backplane/sections/"

Prefix is where the sections are published; the SDK's Consul driver mirrors it.

Variables

This section is empty.

Functions

func Sets

Sets are the sections of cat by name: each serving service's highest serving version's, a live value (sections.OfferLive) replacing the manifest's.

Types

type Publisher

type Publisher struct {
	deps.Component
	// contains filtered or unexported fields
}

Publisher keeps Prefix equal to the serving services' sections: a pass at start, after every catalog change and every resync. Replicas run it side by side; they all write the same.

func NewPublisher

func NewPublisher(parent deps.Scope, src Source, consul *api.Client) *Publisher

NewPublisher creates the component under parent.

type Source

type Source interface {
	Current() registry.Catalog
	Changes(ctx context.Context) <-chan struct{}
}

Source is the installation's catalog.

Jump to

Keyboard shortcuts

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