MCPcopy
hub / github.com/dunglas/mercure / Metrics

Interface Metrics

metrics.go:11–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9const metricsPath = "/metrics"
10
11type Metrics interface {
12 // SubscriberConnected collects metrics about subscriber connections.
13 SubscriberConnected(s *LocalSubscriber)
14 // SubscriberDisconnected collects metrics about subscriber disconnections.
15 SubscriberDisconnected(s *LocalSubscriber)
16 // UpdatePublished collects metrics about update publications.
17 UpdatePublished(u *Update)
18}
19
20type NopMetrics struct{}
21

Callers 3

registerSubscriberMethod · 0.65
shutdownMethod · 0.65
PublishMethod · 0.65

Implementers 2

NopMetricsmetrics.go

Calls

no outgoing calls

Tested by

no test coverage detected