fix golint issues in core/stat (#515)
* change to use ServiceGroup to make it more clear * fix golint issues in core/stat
This commit is contained in:
@@ -12,12 +12,15 @@ import (
|
||||
|
||||
const httpTimeout = time.Second * 5
|
||||
|
||||
// ErrWriteFailed is an error that indicates failed to submit a StatReport.
|
||||
var ErrWriteFailed = errors.New("submit failed")
|
||||
|
||||
// A RemoteWriter is a writer to write StatReport.
|
||||
type RemoteWriter struct {
|
||||
endpoint string
|
||||
}
|
||||
|
||||
// NewRemoteWriter returns a RemoteWriter.
|
||||
func NewRemoteWriter(endpoint string) Writer {
|
||||
return &RemoteWriter{
|
||||
endpoint: endpoint,
|
||||
|
||||
Reference in New Issue
Block a user