Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Commit

Permalink
go fmt (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonglil authored Jun 2, 2020
1 parent ab1d628 commit c4e06a3
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 14 deletions.
7 changes: 4 additions & 3 deletions alertnotification_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package gapi

import (
"github.com/gobs/pretty"
"testing"

"github.com/gobs/pretty"
)

const (
Expand Down Expand Up @@ -121,7 +122,7 @@ func TestNewAlertNotification(t *testing.T) {
DisableResolveMessage: true,
SendReminder: true,
Frequency: "15m",
Settings: map[string]string{
Settings: map[string]string{
"addresses": "[email protected]",
},
}
Expand Down Expand Up @@ -149,7 +150,7 @@ func TestUpdateAlertNotification(t *testing.T) {
DisableResolveMessage: true,
SendReminder: true,
Frequency: "15m",
Settings: map[string]string{
Settings: map[string]string{
"addresses": "[email protected]",
},
}
Expand Down
6 changes: 3 additions & 3 deletions dashboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const (
"slug": "production-overview"
}
}`

getDashboardsJSON = `[
{
"id": 1,
Expand Down Expand Up @@ -138,7 +138,7 @@ func TestDashboardDelete(t *testing.T) {
if err == nil {
t.Errorf("%d not detected", code)
}
}
}
}

func TestDashboards(t *testing.T) {
Expand All @@ -159,4 +159,4 @@ func TestDashboards(t *testing.T) {
if dashboards[0].Id != 1 || dashboards[0].Title != "Grafana Stats" {
t.Error("Not correctly parsing returned dashboards.")
}
}
}
8 changes: 4 additions & 4 deletions datasource.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ type JSONData struct {
// Used by Prometheus
HttpMethod string `json:"httpMethod,omitempty"`
QueryTimeout string `json:"queryTimeout,omitempty"`

// Used by Stackdriver
AuthenticationType string `json:"authenticationType,omitempty"`
ClientEmail string `json:"clientEmail,omitempty"`
ClientEmail string `json:"clientEmail,omitempty"`
DefaultProject string `json:"defaultProject,omitempty"`
TokenUri string `json:"tokenUri,omitempty"`
TokenUri string `json:"tokenUri,omitempty"`
}

// SecureJSONData is a representation of the datasource `secureJsonData` property
Expand All @@ -98,7 +98,7 @@ type SecureJSONData struct {
// Used by Cloudwatch
AccessKey string `json:"accessKey,omitempty"`
SecretKey string `json:"secretKey,omitempty"`

// Used by Stackdriver
PrivateKey string `json:"privateKey,omitempty"`
}
Expand Down
3 changes: 2 additions & 1 deletion folder_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package gapi

import (
"github.com/gobs/pretty"
"testing"

"github.com/gobs/pretty"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion org_users_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package gapi

import (
"github.com/gobs/pretty"
"testing"

"github.com/gobs/pretty"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion orgs_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package gapi

import (
"github.com/gobs/pretty"
"testing"

"github.com/gobs/pretty"
)

const (
Expand Down
3 changes: 2 additions & 1 deletion user_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package gapi

import (
"github.com/gobs/pretty"
"testing"

"github.com/gobs/pretty"
)

const (
Expand Down

0 comments on commit c4e06a3

Please sign in to comment.