Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit 2804922

Browse files
author
Zack Lin
committed
Use go module
1 parent e8f29ff commit 2804922

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+11093
-327
lines changed

Diff for: .gitlab-ci.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ go-build:
3939
stage: build
4040
image: vpgrp/golang:latest
4141
before_script:
42-
- mkdir -p ${GOPATH}/src/github.com/veepee-moc
43-
- ln -fsv ${CI_PROJECT_DIR} ${GOPATH}/src/github.com/veepee-moc/influxdb-relay
42+
- mkdir -p ${GOPATH}/src/github.com/strike-team
43+
- ln -fsv ${CI_PROJECT_DIR} ${GOPATH}/src/github.com/strike-team/influxdb-relay
4444
script:
45-
- cd ${GOPATH}/src/github.com/veepee-moc/influxdb-relay
45+
- cd ${GOPATH}/src/github.com/strike-team/influxdb-relay
4646
- go get
4747
- go build -a -ldflags '-extldflags "-static"' -o influxdb-relay
4848

@@ -52,11 +52,11 @@ go-tests:
5252
stage: test
5353
image: vpgrp/golang
5454
before_script:
55-
- mkdir -p ${GOPATH}/src/github.com/veepee-moc
56-
- ln -fsv ${CI_PROJECT_DIR} ${GOPATH}/src/github.com/veepee-moc/influxdb-relay
55+
- mkdir -p ${GOPATH}/src/github.com/strike-team
56+
- ln -fsv ${CI_PROJECT_DIR} ${GOPATH}/src/github.com/strike-team/influxdb-relay
5757
- go get github.com/stretchr/testify/assert
5858
script:
59-
- cd ${GOPATH}/src/github.com/veepee-moc/influxdb-relay
59+
- cd ${GOPATH}/src/github.com/strike-team/influxdb-relay
6060
- go get
6161
- go test ./...
6262

Diff for: Gopkg.lock

-91
This file was deleted.

Diff for: Gopkg.toml

-15
This file was deleted.

Diff for: go.mod

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
module github.com/strike-team/influxdb-relay
2+
3+
go 1.13
4+
5+
require (
6+
github.com/google/go-cmp v0.3.1 // indirect
7+
github.com/influxdata/influxdb v1.7.9
8+
github.com/kylelemons/godebug v1.1.0 // indirect
9+
github.com/naoina/go-stringutil v0.1.0 // indirect
10+
github.com/naoina/toml v0.1.1
11+
github.com/stretchr/testify v1.4.0
12+
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
13+
)

Diff for: go.sum

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
2+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3+
github.com/google/go-cmp v0.3.1 h1:Xye71clBPdm5HgqGwUkwhbynsUJZhDbS20FvLhQ2izg=
4+
github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
5+
github.com/influxdata/influxdb v1.7.9 h1:uSeBTNO4rBkbp1Be5FKRsAmglM9nlx25TzVQRQt1An4=
6+
github.com/influxdata/influxdb v1.7.9/go.mod h1:qZna6X/4elxqT3yI9iZYdZrWWdeFOOprn86kgg4+IzY=
7+
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
8+
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
9+
github.com/naoina/go-stringutil v0.1.0 h1:rCUeRUHjBjGTSHl0VC00jUPLz8/F9dDzYI70Hzifhks=
10+
github.com/naoina/go-stringutil v0.1.0/go.mod h1:XJ2SJL9jCtBh+P9q5btrd/Ylo8XwT/h1USek5+NqSA0=
11+
github.com/naoina/toml v0.1.1 h1:PT/lllxVVN0gzzSqSlHEmP8MJB4MY2U7STGxiouV4X8=
12+
github.com/naoina/toml v0.1.1/go.mod h1:NBIhNtsFMo3G2szEBne+bO4gS192HuIYRqfvOWb4i1E=
13+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
14+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
15+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
16+
github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
17+
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
18+
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=
19+
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
20+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
21+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
22+
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
23+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=

Diff for: main.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"os"
88
"os/signal"
99

10-
"github.com/veepee-moc/influxdb-relay/config"
11-
"github.com/veepee-moc/influxdb-relay/relayservice"
10+
"github.com/strike-team/influxdb-relay/config"
11+
"github.com/strike-team/influxdb-relay/relayservice"
1212
)
1313

1414
const (

Diff for: relay/http.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"time"
2121

2222
"github.com/influxdata/influxdb/models"
23-
"github.com/veepee-moc/influxdb-relay/config"
23+
"github.com/strike-team/influxdb-relay/config"
2424
)
2525

2626
// HTTP is a relay for HTTP influxdb writes

Diff for: relay/http_handlers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313

1414
"github.com/stretchr/testify/assert"
1515

16-
"github.com/veepee-moc/influxdb-relay/config"
16+
"github.com/strike-team/influxdb-relay/config"
1717
)
1818

1919
var (

Diff for: relay/http_middlewares_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010

1111
"github.com/stretchr/testify/assert"
12-
"github.com/veepee-moc/influxdb-relay/config"
12+
"github.com/strike-team/influxdb-relay/config"
1313
"time"
1414
)
1515

Diff for: relay/udp.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111

1212
"github.com/influxdata/influxdb/models"
1313

14-
"github.com/veepee-moc/influxdb-relay/config"
14+
"github.com/strike-team/influxdb-relay/config"
1515
)
1616

1717
const (

Diff for: relayservice/relayservice.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"log"
66
"sync"
77

8-
"github.com/veepee-moc/influxdb-relay/config"
9-
"github.com/veepee-moc/influxdb-relay/relay"
8+
"github.com/strike-team/influxdb-relay/config"
9+
"github.com/strike-team/influxdb-relay/relay"
1010
)
1111

1212
// Service is a map of relays

Diff for: vendor/github.com/davecgh/go-spew/LICENSE

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)