Skip to content

Commit

Permalink
Use go module
Browse files Browse the repository at this point in the history
  • Loading branch information
Zack Lin committed Dec 6, 2019
1 parent e8f29ff commit 2804922
Show file tree
Hide file tree
Showing 48 changed files with 11,093 additions and 327 deletions.
12 changes: 6 additions & 6 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ go-build:
stage: build
image: vpgrp/golang:latest
before_script:
- mkdir -p ${GOPATH}/src/github.com/veepee-moc
- ln -fsv ${CI_PROJECT_DIR} ${GOPATH}/src/github.com/veepee-moc/influxdb-relay
- mkdir -p ${GOPATH}/src/github.com/strike-team
- ln -fsv ${CI_PROJECT_DIR} ${GOPATH}/src/github.com/strike-team/influxdb-relay
script:
- cd ${GOPATH}/src/github.com/veepee-moc/influxdb-relay
- cd ${GOPATH}/src/github.com/strike-team/influxdb-relay
- go get
- go build -a -ldflags '-extldflags "-static"' -o influxdb-relay

Expand All @@ -52,11 +52,11 @@ go-tests:
stage: test
image: vpgrp/golang
before_script:
- mkdir -p ${GOPATH}/src/github.com/veepee-moc
- ln -fsv ${CI_PROJECT_DIR} ${GOPATH}/src/github.com/veepee-moc/influxdb-relay
- mkdir -p ${GOPATH}/src/github.com/strike-team
- ln -fsv ${CI_PROJECT_DIR} ${GOPATH}/src/github.com/strike-team/influxdb-relay
- go get github.com/stretchr/testify/assert
script:
- cd ${GOPATH}/src/github.com/veepee-moc/influxdb-relay
- cd ${GOPATH}/src/github.com/strike-team/influxdb-relay
- go get
- go test ./...

Expand Down
91 changes: 0 additions & 91 deletions Gopkg.lock

This file was deleted.

15 changes: 0 additions & 15 deletions Gopkg.toml

This file was deleted.

13 changes: 13 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
module github.com/strike-team/influxdb-relay

go 1.13

require (
github.com/google/go-cmp v0.3.1 // indirect
github.com/influxdata/influxdb v1.7.9
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/naoina/go-stringutil v0.1.0 // indirect
github.com/naoina/toml v0.1.1
github.com/stretchr/testify v1.4.0
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
)
23 changes: 23 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
github.com/influxdata/influxdb v1.7.9 h1:uSeBTNO4rBkbp1Be5FKRsAmglM9nlx25TzVQRQt1An4=
github.com/influxdata/influxdb v1.7.9/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY=
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
github.com/naoina/go-stringutil v0.1.0 h1:rCUeRUHjBjGTSHl0VC00jUPLz8/F9dDzYI70Hzifhks=
github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0=
github.com/naoina/toml v0.1.1 h1:PT/lllxVVN0gzzSqSlHEmP8MJB4MY2U7STGxiouV4X8=
github.com/naoina/toml v0.1.1/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"os"
"os/signal"

"github.com/veepee-moc/influxdb-relay/config"
"github.com/veepee-moc/influxdb-relay/relayservice"
"github.com/strike-team/influxdb-relay/config"
"github.com/strike-team/influxdb-relay/relayservice"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion relay/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"time"

"github.com/influxdata/influxdb/models"
"github.com/veepee-moc/influxdb-relay/config"
"github.com/strike-team/influxdb-relay/config"
)

// HTTP is a relay for HTTP influxdb writes
Expand Down
2 changes: 1 addition & 1 deletion relay/http_handlers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/veepee-moc/influxdb-relay/config"
"github.com/strike-team/influxdb-relay/config"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion relay/http_middlewares_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/stretchr/testify/assert"
"github.com/veepee-moc/influxdb-relay/config"
"github.com/strike-team/influxdb-relay/config"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion relay/udp.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/influxdata/influxdb/models"

"github.com/veepee-moc/influxdb-relay/config"
"github.com/strike-team/influxdb-relay/config"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions relayservice/relayservice.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"sync"

"github.com/veepee-moc/influxdb-relay/config"
"github.com/veepee-moc/influxdb-relay/relay"
"github.com/strike-team/influxdb-relay/config"
"github.com/strike-team/influxdb-relay/relay"
)

// Service is a map of relays
Expand Down
2 changes: 1 addition & 1 deletion vendor/github.com/davecgh/go-spew/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2804922

Please sign in to comment.