Fix indentation

This commit is contained in:
martinrusev
2015-11-06 12:06:17 +02:00
parent d3ae5adcf0
commit 1c92cfb3b6

View File

@@ -14,9 +14,9 @@ import (
)
type Amon struct {
ServerKey string
ServerKey string
AmonInstance string
Timeout duration.Duration
Timeout duration.Duration
client *http.Client
}
@@ -43,7 +43,6 @@ type Metric struct {
type Point [2]float64
func (a *Amon) Connect() error {
if a.ServerKey == "" || a.AmonInstance == "" {
return fmt.Errorf("serverkey and amoninstance are required fields for amon output")
@@ -107,7 +106,7 @@ func (a *Amon) Description() string {
}
func (a *Amon) authenticatedUrl() string {
return fmt.Sprintf("%s/api/system/%s", a.AmonInstance, a.ServerKey)
}