appoptics / appoptics-api-go

The official Go client for the AppOptics metrics API
https://docs.appoptics.com/api/
Apache License 2.0
4 stars 7 forks source link

Using interface MeasurementCommunicator instead of concrete class #45

Closed joemadeus closed 6 years ago

joemadeus commented 6 years ago

Changes the signature on func NewReporter to take a MeasurementsCommunicator instead of its concrete class, MeasurementsService, eliminating the need for a downcast.