Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( DeleteGatewayCacheEventType = "DeleteGatewayCacheEvent" InvalidateGatewayDataEventType = "InvalidateGatewayDataEvent" InvalidateRegistryCacheEventType = "InvalidateRegistryCacheEvent" SnapshotDirtyEventType = "SnapshotDirtyEvent" )
var Registry = map[string]reflect.Type{ DeleteGatewayCacheEventType: reflect.TypeOf(DeleteGatewayCacheEvent{}), InvalidateGatewayDataEventType: reflect.TypeOf(InvalidateGatewayDataEvent{}), InvalidateRegistryCacheEventType: reflect.TypeOf(InvalidateRegistryCacheEvent{}), SnapshotDirtyEventType: reflect.TypeOf(SnapshotDirtyEvent{}), }
Functions ¶
func GetEventsRegistry ¶
Types ¶
type DeleteGatewayCacheEvent ¶
type DeleteGatewayCacheEvent struct {
GatewayID string `json:"gateway_id"`
}
func (DeleteGatewayCacheEvent) Type ¶
func (e DeleteGatewayCacheEvent) Type() string
type InvalidateGatewayDataEvent ¶
type InvalidateGatewayDataEvent struct {
GatewayID string `json:"gateway_id"`
}
InvalidateGatewayDataEvent signals that gateway-scoped data (the gateway entity, its consumers, policies or auths) changed and any aggregated view cached under that gateway must be dropped across every process.
func (InvalidateGatewayDataEvent) Type ¶
func (e InvalidateGatewayDataEvent) Type() string
type InvalidateRegistryCacheEvent ¶
type InvalidateRegistryCacheEvent struct {
GatewayID string `json:"gateway_id"`
RegistryID string `json:"registry_id"`
}
InvalidateRegistryCacheEvent signals that a backend changed and both its cached entity and the load balancer instance derived from it must be dropped across every process.
func (InvalidateRegistryCacheEvent) Type ¶
func (e InvalidateRegistryCacheEvent) Type() string
type SnapshotDirtyEvent ¶ added in v0.5.0
type SnapshotDirtyEvent struct{}
SnapshotDirtyEvent signals that config feeding the runtime snapshot changed on one admin replica, so every admin replica must recompile and push a new snapshot version to its connected data planes. Version broadcast is in-process per admin pod, so without this cross-pod nudge a replica that did not handle the write would only converge on its periodic backstop timer.
func (SnapshotDirtyEvent) Type ¶ added in v0.5.0
func (e SnapshotDirtyEvent) Type() string