MCPcopy
hub / github.com/vulcand/vulcand / StatsProvider

Interface StatsProvider

engine/model.go:22–34  ·  view source on GitHub ↗

StatsProvider provides realtime stats abount endpoints, backends and locations

Source from the content-addressed store, hash-verified

20
21// StatsProvider provides realtime stats abount endpoints, backends and locations
22type StatsProvider interface {
23 FrontendStats(FrontendKey) (*RoundTripStats, error)
24 ServerStats(ServerKey) (*RoundTripStats, error)
25 BackendStats(BackendKey) (*RoundTripStats, error)
26
27 // TopFrontends returns locations sorted by criteria (faulty, slow, most used)
28 // if hostname or backendId is present, will filter out locations for that host or backendId
29 TopFrontends(*BackendKey) ([]Frontend, error)
30
31 // TopServers returns endpoints sorted by criteria (faulty, slow, mos used)
32 // if backendId is not empty, will filter out endpoints for that backendId
33 TopServers(*BackendKey) ([]Server, error)
34}
35
36type KeyPair struct {
37 Key []byte

Callers 9

FrontendStatsMethod · 0.65
ServerStatsMethod · 0.65
BackendStatsMethod · 0.65
TopFrontendsMethod · 0.65
getTopFrontendsMethod · 0.65
overviewActionMethod · 0.65
TopServersMethod · 0.65
getTopServersMethod · 0.65
overviewActionMethod · 0.65

Implementers 2

Supervisorsupervisor/supervisor.go
muxproxy/mux/mux.go

Calls

no outgoing calls

Tested by

no test coverage detected