Fix indentation

This commit is contained in:
martinrusev 2015-11-06 12:06:17 +02:00
parent d3ae5adcf0
commit 1c92cfb3b6
1 changed files with 3 additions and 4 deletions

View File

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