-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathevents.go
More file actions
45 lines (36 loc) · 1.91 KB
/
events.go
File metadata and controls
45 lines (36 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package reverseproxy
// Event type constants for reverseproxy module events.
// Following CloudEvents specification reverse domain notation.
const (
// Configuration events
EventTypeConfigLoaded = "com.modular.reverseproxy.config.loaded"
EventTypeConfigValidated = "com.modular.reverseproxy.config.validated"
// Proxy events
EventTypeProxyCreated = "com.modular.reverseproxy.proxy.created"
EventTypeProxyStarted = "com.modular.reverseproxy.proxy.started"
EventTypeProxyStopped = "com.modular.reverseproxy.proxy.stopped"
// Request events
EventTypeRequestReceived = "com.modular.reverseproxy.request.received"
EventTypeRequestProxied = "com.modular.reverseproxy.request.proxied"
EventTypeRequestFailed = "com.modular.reverseproxy.request.failed"
EventTypeRequestProcessed = "com.modular.reverseproxy.request.processed"
// Dry-run events
EventTypeDryRunComparison = "com.modular.reverseproxy.dryrun.comparison"
// Backend events
EventTypeBackendHealthy = "com.modular.reverseproxy.backend.healthy"
EventTypeBackendUnhealthy = "com.modular.reverseproxy.backend.unhealthy"
EventTypeBackendAdded = "com.modular.reverseproxy.backend.added"
EventTypeBackendRemoved = "com.modular.reverseproxy.backend.removed"
// Load balancing events
EventTypeLoadBalanceDecision = "com.modular.reverseproxy.loadbalance.decision"
EventTypeLoadBalanceRoundRobin = "com.modular.reverseproxy.loadbalance.roundrobin"
// Circuit breaker events
EventTypeCircuitBreakerOpen = "com.modular.reverseproxy.circuitbreaker.open"
EventTypeCircuitBreakerClosed = "com.modular.reverseproxy.circuitbreaker.closed"
EventTypeCircuitBreakerHalfOpen = "com.modular.reverseproxy.circuitbreaker.halfopen"
// Module lifecycle events
EventTypeModuleStarted = "com.modular.reverseproxy.module.started"
EventTypeModuleStopped = "com.modular.reverseproxy.module.stopped"
// Error events
EventTypeError = "com.modular.reverseproxy.error"
)