Skip to content

Commit

Permalink
chore: run gofmt on files + remove Godeps (now using dep)
Browse files Browse the repository at this point in the history
  • Loading branch information
moul committed Oct 12, 2018
1 parent c1435dc commit 03e0245
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
3 changes: 0 additions & 3 deletions Godeps

This file was deleted.

2 changes: 1 addition & 1 deletion config/input.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Input string

const (
// TypeInfluxdb input type
TypeInfluxdb Input = "influxdb"
TypeInfluxdb Input = "influxdb"
// TypePrometheus input type
TypePrometheus Input = "prometheus"
)
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ const (
)

var (
usage = func() {
usage = func() {
fmt.Println("Please, see README for more information about InfluxDB Relay...\n")
flag.PrintDefaults()
}

configFile = flag.String("config", "", "Configuration file to use")
verbose = flag.Bool("v", false, "If set, InfluxDB Relay will log HTTP requests")
configFile = flag.String("config", "", "Configuration file to use")
verbose = flag.Bool("v", false, "If set, InfluxDB Relay will log HTTP requests")
versionFlag = flag.Bool("version", false, "Print current InfluxDB Relay version")
)

Expand Down
2 changes: 1 addition & 1 deletion relay/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type HTTP struct {
cert string
rp string

pingResponseCode int
pingResponseCode int
pingResponseHeaders map[string]string

closing int64
Expand Down
5 changes: 3 additions & 2 deletions relay/http_handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ package relay
import (
"encoding/json"
"fmt"
"github.com/influxdata/influxdb/models"
"github.com/vente-privee/influxdb-relay/config"
"io/ioutil"
"log"
"net/http"
"sync"

"github.com/influxdata/influxdb/models"
"github.com/vente-privee/influxdb-relay/config"
)

func (h *HTTP) handleStatus(w http.ResponseWriter, r *http.Request) {
Expand Down
2 changes: 1 addition & 1 deletion relay/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ package relay
type response struct {
code int
body interface{}
}
}
2 changes: 1 addition & 1 deletion relay/retry.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ func (l *bufferList) add(buf []byte, query string, auth string) (*batch, error)

l.cond.L.Unlock()
return *cur, nil
}
}

0 comments on commit 03e0245

Please sign in to comment.