Files
weave-scope/probe/endpoint/reporter_other.go
Bryan Boreham 95ce2cb1a8 Add build constraint on Linux-only features
Split Reporter into Linux and non-Linux parts, and stubbed it out for
non-Linux targets.
2018-11-14 15:34:58 +00:00

22 lines
388 B
Go

// +build !linux
package endpoint
import "github.com/weaveworks/scope/report"
// Reporter dummy
type Reporter struct{}
// NewReporter makes a dummy
func NewReporter(conf ReporterConfig) *Reporter {
return &Reporter{}
}
// Stop dummy
func (r *Reporter) Stop() {}
// Report implements Reporter.
func (r *Reporter) Report() (report.Report, error) {
return report.MakeReport(), nil
}