@@ -25,11 +25,11 @@ import (
2525// StateKey namespaces cross-EPP shared state.
2626type StateKey string
2727
28- // SharedStateStore is a cross-EPP state store for sharing state across replicas.
28+ // CrossReplicaStore is a cross-EPP state store for sharing state across replicas.
2929// Implementations own the sync mechanism (e.g., Redis pub/sub, gossip) and the
3030// aggregation strategy (e.g., sum for in-flight load, union for cache state).
3131// The store can dispatch per StateKey for different aggregation strategies.
32- type SharedStateStore interface {
32+ type CrossReplicaStore interface {
3333 fwkplugin.Plugin
3434
3535 // Set writes a value for the given key and endpoint. The runtime calls
@@ -46,16 +46,16 @@ type SharedStateStore interface {
4646 Delete (ctx context.Context , key StateKey , endpointID string ) error
4747}
4848
49- // SharedStateContributor is an opt-in interface for endpoint extractors that
49+ // CrossReplicaContributor is an opt-in interface for endpoint extractors that
5050// want their installed attributes to reflect cross-replica aggregate state.
5151// The plugin's Extract method is unchanged; the runtime detects this interface
5252// and wires the store transparently.
53- type SharedStateContributor interface {
54- SharedState () SharedStateSpec
53+ type CrossReplicaContributor interface {
54+ CrossReplicaState () CrossReplicaSpec
5555}
5656
57- // SharedStateSpec declares what a SharedStateContributor publishes and where.
58- type SharedStateSpec struct {
57+ // CrossReplicaSpec declares what a CrossReplicaContributor publishes and where.
58+ type CrossReplicaSpec struct {
5959 // StateKey namespaces this contributor's data in the store.
6060 StateKey StateKey
6161
0 commit comments