Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

Commit ede17e2

Browse files
authored
Move the module to v2 (#59)
**What** - The breaking API change in the queue rquires a major version bump Signed-off-by: Lucas Roesler <[email protected]>
1 parent 10210ff commit ede17e2

Some content is hidden

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

49 files changed

+113
-143
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Contiamo Go base
2-
[![GoDoc](https://godoc.org/github.com/contiamo/go-base?status.png)](https://godoc.org/github.com/contiamo/go-base)
3-
[![Go Report Card](https://goreportcard.com/badge/github.com/contiamo/go-base)](https://goreportcard.com/report/github.com/contiamo/go-base)
2+
[![GoDoc](https://godoc.org/github.com/contiamo/go-base/v2?status.png)](https://godoc.org/github.com/contiamo/go-base/v2)
3+
[![Go Report Card](https://goreportcard.com/badge/github.com/contiamo/go-base/v2)](https://goreportcard.com/report/github.com/contiamo/go-base/v2)
44
[![CircleCI](https://circleci.com/gh/contiamo/go-base/tree/master.svg?style=svg)](https://circleci.com/gh/contiamo/go-base/tree/master)
55

66
This module contains common packages for Contiamo projects written in Go. Once, some of the projects introduce a pattern/approach which is worth re-using it's getting added here.

go.mod

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
module github.com/contiamo/go-base
1+
module github.com/contiamo/go-base/v2
22

33
require (
44
github.com/Masterminds/squirrel v1.1.0
5-
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a // indirect
5+
github.com/asaskevich/govalidator v0.0.0-20200907205600-7a23bdc65eef // indirect
66
github.com/bakins/net-http-recover v0.0.0-20141007104922-6cba69d01459
77
github.com/cenkalti/backoff/v4 v4.0.0
88
github.com/contiamo/goserver v0.5.0
@@ -11,13 +11,11 @@ require (
1111
github.com/getkin/kin-openapi v0.14.0
1212
github.com/go-chi/chi v4.0.2+incompatible
1313
github.com/go-ozzo/ozzo-validation v3.6.0+incompatible
14-
github.com/go-sql-driver/mysql v1.4.1 // indirect
14+
github.com/go-sql-driver/mysql v1.5.0 // indirect
1515
github.com/golang/protobuf v1.3.2
16-
github.com/google/uuid v1.1.1 // indirect
1716
github.com/gorilla/websocket v1.4.0
18-
github.com/konsorten/go-windows-terminal-sequences v1.0.2 // indirect
1917
github.com/lib/pq v1.1.1
20-
github.com/mattn/go-sqlite3 v1.11.0 // indirect
18+
github.com/mattn/go-sqlite3 v1.14.2 // indirect
2119
github.com/opentracing/opentracing-go v1.1.0
2220
github.com/pkg/errors v0.8.1
2321
github.com/prometheus/client_golang v1.1.0
@@ -27,13 +25,11 @@ require (
2725
github.com/sirupsen/logrus v1.4.2
2826
github.com/stretchr/testify v1.5.1
2927
github.com/uber/jaeger-client-go v2.16.0+incompatible
30-
github.com/uber/jaeger-lib v2.0.0+incompatible // indirect
28+
github.com/uber/jaeger-lib v2.2.0+incompatible // indirect
3129
github.com/urfave/negroni v1.0.0
3230
go.uber.org/goleak v1.0.0
3331
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2
34-
google.golang.org/genproto v0.0.0-20190716160619-c506a9f90610 // indirect
35-
google.golang.org/grpc v1.22.0 // indirect
3632
gopkg.in/yaml.v2 v2.3.0
3733
)
3834

39-
go 1.13
35+
go 1.14

go.sum

Lines changed: 19 additions & 45 deletions
Large diffs are not rendered by default.

pkg/data/managers/base.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ import (
66

77
"github.com/Masterminds/squirrel"
88

9-
"github.com/contiamo/go-base/pkg/db"
10-
"github.com/contiamo/go-base/pkg/http/parameters"
11-
"github.com/contiamo/go-base/pkg/tracing"
9+
"github.com/contiamo/go-base/v2/pkg/db"
10+
"github.com/contiamo/go-base/v2/pkg/http/parameters"
11+
"github.com/contiamo/go-base/v2/pkg/tracing"
1212
)
1313

1414
// PageInfo - Contains the pagination metadata for a response

pkg/data/managers/base_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"time"
99

1010
"github.com/Masterminds/squirrel"
11-
dbtest "github.com/contiamo/go-base/pkg/db/test"
12-
"github.com/contiamo/go-base/pkg/http/parameters"
11+
dbtest "github.com/contiamo/go-base/v2/pkg/db/test"
12+
"github.com/contiamo/go-base/v2/pkg/http/parameters"
1313
"github.com/stretchr/testify/require"
1414
)
1515

pkg/data/managers/id_resolver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"strings"
88

99
squirrel "github.com/Masterminds/squirrel"
10-
"github.com/contiamo/go-base/pkg/db"
11-
dserrors "github.com/contiamo/go-base/pkg/errors"
10+
"github.com/contiamo/go-base/v2/pkg/db"
11+
dserrors "github.com/contiamo/go-base/v2/pkg/errors"
1212
uuid "github.com/satori/go.uuid"
1313
)
1414

pkg/data/managers/id_resolver_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"time"
99

1010
squirrel "github.com/Masterminds/squirrel"
11-
dbtest "github.com/contiamo/go-base/pkg/db/test"
11+
dbtest "github.com/contiamo/go-base/v2/pkg/db/test"
1212
uuid "github.com/satori/go.uuid"
1313
"github.com/sirupsen/logrus"
1414
"github.com/stretchr/testify/require"

pkg/db/open.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"fmt"
77

88
"github.com/cenkalti/backoff/v4"
9-
"github.com/contiamo/go-base/pkg/config"
10-
"github.com/contiamo/go-base/pkg/tracing"
9+
"github.com/contiamo/go-base/v2/pkg/config"
10+
"github.com/contiamo/go-base/v2/pkg/tracing"
1111
"github.com/sirupsen/logrus"
1212
)
1313

pkg/db/test/db.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"time"
1010

1111
"github.com/Masterminds/squirrel"
12-
"github.com/contiamo/go-base/pkg/config"
13-
cdb "github.com/contiamo/go-base/pkg/db"
12+
"github.com/contiamo/go-base/v2/pkg/config"
13+
cdb "github.com/contiamo/go-base/v2/pkg/db"
1414

1515
// since this test helper is going to be used in tests the CLI would not initialize
1616
// the drivers for us, so we need to put it here again

pkg/db/tracing.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"database/sql"
66
"time"
77

8-
"github.com/contiamo/go-base/pkg/tracing"
8+
"github.com/contiamo/go-base/v2/pkg/tracing"
99
"github.com/sirupsen/logrus"
1010
)
1111

0 commit comments

Comments
 (0)