sections

package
v0.6.124 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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