subscriptionxds

package
v0.0.0-...-7350628 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// SubscriptionStateTypeURL is the custom type URL for subscription state configurations.
	SubscriptionStateTypeURL = "api-platform.wso2.org/v1.SubscriptionState"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SnapshotManager

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

SnapshotManager manages xDS snapshots for subscription state.

func NewSnapshotManager

func NewSnapshotManager(store storage.Storage, log *slog.Logger) *SnapshotManager

NewSnapshotManager creates a new subscription snapshot manager backed by the given storage.

func (*SnapshotManager) GetCache

func (sm *SnapshotManager) GetCache() cache.Cache

GetCache returns the underlying cache as the generic Cache interface.

func (*SnapshotManager) UpdateSnapshot

func (sm *SnapshotManager) UpdateSnapshot(ctx context.Context) error

UpdateSnapshot generates a new xDS snapshot from all ACTIVE subscriptions for this gateway. Storage I/O is performed without holding the manager lock; the lock is only held when updating the cache to avoid blocking other readers during the full storage sweep.

Jump to

Keyboard shortcuts

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