event

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DeleteGatewayCacheEventType      = "DeleteGatewayCacheEvent"
	InvalidateGatewayDataEventType   = "InvalidateGatewayDataEvent"
	InvalidateRegistryCacheEventType = "InvalidateRegistryCacheEvent"
)

Functions

func GetEventsRegistry

func GetEventsRegistry() map[string]reflect.Type

Types

type DeleteGatewayCacheEvent

type DeleteGatewayCacheEvent struct {
	GatewayID string `json:"gateway_id"`
}

func (DeleteGatewayCacheEvent) Type

type Event

type Event interface {
	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

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

Jump to

Keyboard shortcuts

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