mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-18 21:09:38 +00:00
- App takes POST report on /api/report - Probe publishes to configured target(s) - Name resolution happens on probe-side - There's no longer an xfer.ProbePort - xfer.Collector responsibility is reduced - Fixes to remaining experimental components. - rm experimental/bridge: it's not being used, and by changing the app/probe comm model, it would require a complete refactor anyway. We can easily rebuild it when we need to. It will even be much simpler. - rm experimental/graphviz: it's broken for some time anyway, and we don't really need to play around with it as a rendering option anymore. - rm experimental/oneshot: we never use this anymore.
14 lines
319 B
Go
14 lines
319 B
Go
package main
|
|
|
|
import (
|
|
"github.com/weaveworks/scope/report"
|
|
"github.com/weaveworks/scope/test"
|
|
)
|
|
|
|
// StaticReport is used as a fixture in tests. It emulates an xfer.Collector.
|
|
type StaticReport struct{}
|
|
|
|
func (s StaticReport) Report() report.Report { return test.Report }
|
|
|
|
func (s StaticReport) Add(report.Report) {}
|