loops

package
v1.17.21 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2026 License: Apache-2.0 Imports: 2 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnAdd

type ConnAdd struct {
	Channel     v1pb.Placement_ReportDaprStatusServer
	Cancel      context.CancelCauseFunc
	InitialHost *v1pb.Host
}

ConnAdd is the event for adding a new connection to placement.

type ConnCloseStream

type ConnCloseStream struct {
	StreamIDx uint64
	Namespace string
	Error     error
}

ConnCloseStream is the event for closing a connection to the placement from the stream.

type DisseminateLock

type DisseminateLock struct {
	Version uint64
}

type DisseminateTable added in v1.17.1

type DisseminateTable struct {
	Tables  *v1pb.PlacementTables
	Version uint64
}

DisseminateTable is a one-shot event that sends the current placement table to a single stream via LOCK+UPDATE+UNLOCK. Unlike the 3-stage dissemination, this does not participate in the cluster-wide lock protocol. It is used to send the current table to newly connected streams that have no actor types.

type DisseminateUnlock

type DisseminateUnlock struct {
	Version uint64
}

type DisseminateUpdate

type DisseminateUpdate struct {
	Tables  *v1pb.PlacementTables
	Version uint64
}

type DisseminationTimeout

type DisseminationTimeout struct {
	Version uint64
}

type Event

type Event any

Event is a generic interface for all events in placement.

type NamespaceTableRequest

type NamespaceTableRequest struct {
	Table func(*v1pb.StatePlacementTable)
}

type ReportedHost

type ReportedHost struct {
	Host      *v1pb.Host
	StreamIDx uint64
}

type Shutdown

type Shutdown struct {
	Error error
}

Shutdown is the event for shutting down the placement loops.

type StateTableRequest

type StateTableRequest struct {
	State func(*v1pb.StatePlacementTables)
}

type StreamShutdown

type StreamShutdown struct {
	Error error
}

StreamShutdown is the event for shutting down the placement client stream.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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