aggregate

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aggregator

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

func New

func New(options Options) *Aggregator

func (*Aggregator) Apply

func (*Aggregator) ApplyAt

func (a *Aggregator) ApplyAt(report domain.ReportEnvelope, receivedAt time.Time) (ApplyResult, error)

func (*Aggregator) ApplyDirectorySnapshot added in v0.5.0

func (a *Aggregator) ApplyDirectorySnapshot(snapshot domain.DirectorySnapshot, syncState domain.DirectorySyncState) (DirectoryApplyResult, error)

func (*Aggregator) ClearDirectory added in v0.5.0

func (a *Aggregator) ClearDirectory() bool

func (*Aggregator) Clone

func (a *Aggregator) Clone() (*Aggregator, error)

func (*Aggregator) DeviceDirectory added in v0.5.0

func (a *Aggregator) DeviceDirectory() domain.DeviceDirectory

func (*Aggregator) HistoryMetadata

func (a *Aggregator) HistoryMetadata() domain.HistoryMetadata

func (*Aggregator) MarshalState

func (a *Aggregator) MarshalState() ([]byte, error)

func (*Aggregator) ReplaceWith

func (a *Aggregator) ReplaceWith(candidate *Aggregator) error

func (*Aggregator) RestoreState

func (a *Aggregator) RestoreState(payload []byte) error

func (*Aggregator) Snapshot

func (a *Aggregator) Snapshot() domain.Topology

func (*Aggregator) Subscribe

func (a *Aggregator) Subscribe() (<-chan struct{}, func())

func (*Aggregator) UpdateDirectorySyncState added in v0.5.0

func (a *Aggregator) UpdateDirectorySyncState(syncState domain.DirectorySyncState) error

type ApplyResult

type ApplyResult struct {
	Receipt               domain.ReportReceipt
	Traffic               []domain.AcceptedTraffic
	PathTransitions       []domain.PathTransition
	Changed               bool
	CanonicalStateChanged bool
	CheckpointRequired    bool
}

type DirectoryApplyResult added in v0.5.0

type DirectoryApplyResult struct {
	Changed               bool
	CanonicalStateChanged bool
	Normalization         domain.DirectoryNormalization
}

type Options

type Options struct {
	HeartbeatInterval time.Duration
	ControlNodeIDs    []string
	Now               func() time.Time
	NewNodeID         func() string
}

Jump to

Keyboard shortcuts

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