Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Commit

Permalink
changed module version to v3
Browse files Browse the repository at this point in the history
  • Loading branch information
farshidtz committed Feb 28, 2020
1 parent c04b3bb commit ee2e6d6
Show file tree
Hide file tree
Showing 17 changed files with 64 additions and 29 deletions.
2 changes: 1 addition & 1 deletion catalog/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sync"
"time"

"github.com/linksmart/service-catalog/v2/utils"
"github.com/linksmart/service-catalog/v3/utils"
uuid "github.com/satori/go.uuid"
)

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

"github.com/linksmart/service-catalog/v2/utils"
"github.com/linksmart/service-catalog/v3/utils"
uuid "github.com/satori/go.uuid"
)

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

"github.com/gorilla/mux"
"github.com/linksmart/service-catalog/v2/utils"
"github.com/linksmart/service-catalog/v3/utils"
)

type HttpAPI struct {
Expand Down
2 changes: 1 addition & 1 deletion catalog/http_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"

"github.com/gorilla/mux"
"github.com/linksmart/service-catalog/v2/utils"
"github.com/linksmart/service-catalog/v3/utils"
uuid "github.com/satori/go.uuid"
)

Expand Down
3 changes: 1 addition & 2 deletions catalog/ldbstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import (
"net/url"
"sync"

"github.com/linksmart/service-catalog/v2/utils"

"github.com/linksmart/service-catalog/v3/utils"
"github.com/syndtr/goleveldb/leveldb"
"github.com/syndtr/goleveldb/leveldb/opt"
)
Expand Down
3 changes: 1 addition & 2 deletions catalog/memstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ import (
"fmt"
"sync"

"github.com/linksmart/service-catalog/v2/utils"

avl "github.com/ancientlore/go-avltree"
"github.com/linksmart/service-catalog/v3/utils"
)

// In-memory storage
Expand Down
4 changes: 2 additions & 2 deletions client/examples/http_client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"log"
"time"

"github.com/linksmart/service-catalog/v2/catalog"
"github.com/linksmart/service-catalog/v2/client"
"github.com/linksmart/service-catalog/v3/catalog"
"github.com/linksmart/service-catalog/v3/client"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion client/examples/mqtt_client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

paho "github.com/eclipse/paho.mqtt.golang"
"github.com/linksmart/service-catalog/v2/catalog"
"github.com/linksmart/service-catalog/v3/catalog"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions client/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"net/url"

"github.com/linksmart/go-sec/auth/obtainer"
"github.com/linksmart/service-catalog/v2/catalog"
"github.com/linksmart/service-catalog/v2/utils"
"github.com/linksmart/service-catalog/v3/catalog"
"github.com/linksmart/service-catalog/v3/utils"
)

// HTTPClient is the http client struct
Expand Down
2 changes: 1 addition & 1 deletion client/registrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

"github.com/linksmart/go-sec/auth/obtainer"
"github.com/linksmart/service-catalog/v2/catalog"
"github.com/linksmart/service-catalog/v3/catalog"
)

// RegisterService registers service into a catalog
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

"github.com/kelseyhightower/envconfig"
"github.com/linksmart/go-sec/authz"
"github.com/linksmart/service-catalog/v2/catalog"
"github.com/linksmart/service-catalog/v3/catalog"
)

type Config struct {
Expand Down
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/linksmart/service-catalog/v2
module github.com/linksmart/service-catalog/v3

go 1.12
go 1.13

require (
github.com/ancientlore/go-avltree v0.0.0-20180928192319-da83409fdfb7
github.com/ancientlore/go-avltree v1.0.1
github.com/eclipse/paho.mqtt.golang v1.2.0
github.com/farshidtz/elog v1.0.1
github.com/farshidtz/mqtt-match v1.0.1
Expand All @@ -12,11 +12,11 @@ require (
github.com/justinas/alice v0.0.0-20160512134231-052b8b6c18ed
github.com/kelseyhightower/envconfig v1.3.0
github.com/linksmart/go-sec v1.0.1
github.com/miekg/dns v0.0.0-20170818131442-e4205768578d // indirect
github.com/miekg/dns v1.1.27 // indirect
github.com/oleksandr/bonjour v0.0.0-20160508152359-5dcf00d8b228
github.com/rs/cors v1.7.0
github.com/satori/go.uuid v1.1.0
github.com/stretchr/testify v1.3.0 // indirect
github.com/stretchr/testify v1.5.1 // indirect
github.com/syndtr/goleveldb v1.0.0
github.com/urfave/negroni v1.0.0
)
27 changes: 27 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
github.com/ancientlore/go-avltree v0.0.0-20180928192319-da83409fdfb7 h1:oIquyipmpCIO2I2+4MrsZ+PgGYUeR0HpIUrQxrrKiRU=
github.com/ancientlore/go-avltree v0.0.0-20180928192319-da83409fdfb7/go.mod h1:nfJ32Li6TWi3iVi9M3XF19FNqdfTlmoI87CPVgtgqoc=
github.com/ancientlore/go-avltree v1.0.1 h1:4XsGK6rkg1rjCTZoQbc09It5tmgMGCcFSYCVRwV99KU=
github.com/ancientlore/go-avltree v1.0.1/go.mod h1:nfJ32Li6TWi3iVi9M3XF19FNqdfTlmoI87CPVgtgqoc=
github.com/codegangsta/negroni v0.2.0/go.mod h1:v0y3T5G7Y1UlFfyxFn/QLRU4a2EuNau2iZY63YTKWo0=
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/dgrijalva/jwt-go v3.0.0+incompatible h1:nfVqwkkhaRUethVJaQf5TUFdFr3YUF4lJBTf/F2XwVI=
Expand Down Expand Up @@ -32,8 +35,12 @@ github.com/kelseyhightower/envconfig v1.3.0 h1:IvRS4f2VcIQy6j4ORGIf9145T/AsUB+oY
github.com/kelseyhightower/envconfig v1.3.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg=
github.com/linksmart/go-sec v1.0.1 h1:UNeRj81/KHCy4hkFcZn7x5N/nM+uNxe+xsLBQzNF7kg=
github.com/linksmart/go-sec v1.0.1/go.mod h1:bTksBzP6fCEwIM43z8m3jSRa4YIAWdUwMBYjcoftm1c=
github.com/linksmart/service-catalog/v2 v2.4.1 h1:/gtc/9AvLGbabYc0wsfGRhqpS2s68v9wH7WTQbGLG+c=
github.com/linksmart/service-catalog/v2 v2.4.1/go.mod h1:aIfziWy3rusDlaoEIeoML6XV68RVFdNm+i58X9inXcY=
github.com/miekg/dns v0.0.0-20170818131442-e4205768578d h1:M1nGptTlM6l6aT5MUYA5XExwSjnIPHA+xEOWobbMU6g=
github.com/miekg/dns v0.0.0-20170818131442-e4205768578d/go.mod h1:W1PPwlIAgtquWBMBEV9nkV9Cazfe8ScdGz/Lj7v3Nrg=
github.com/miekg/dns v1.1.27 h1:aEH/kqUzUxGJ/UHcEKdJY+ugH6WEzsEBBSPa8zuy1aM=
github.com/miekg/dns v1.1.27/go.mod h1:KNUDUusw/aVsxyTYZM1oqvCicbwhgbNgztCETuNZ7xM=
github.com/oleksandr/bonjour v0.0.0-20160508152359-5dcf00d8b228 h1:Cvfd2dOlXIPTeEkOT/h8PyK4phBngOM4at9/jlgy7d4=
github.com/oleksandr/bonjour v0.0.0-20160508152359-5dcf00d8b228/go.mod h1:MGuVJ1+5TX1SCoO2Sx0eAnjpdRytYla2uC1YIZfkC9c=
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
Expand All @@ -50,18 +57,36 @@ github.com/satori/go.uuid v1.1.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdh
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.5.1 h1:nOGnQDM7FYENwehXlg/kFVnos3rEvtKTjRvOWSzb6H4=
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
github.com/syndtr/goleveldb v1.0.0 h1:fBdIW9lB4Iz0n9khmH8w27SJ3QEJ7+IgjPEwGSZiFdE=
github.com/syndtr/goleveldb v1.0.0/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
github.com/urfave/negroni v1.0.0 h1:kIimOitoypq34K7TG7DUaJ9kq/N4Ofuwi1sjz0KipXc=
github.com/urfave/negroni v1.0.0/go.mod h1:Meg73S6kFm/4PpbYdq35yYWoCZ9mS/YSx+lKnmiohz4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550 h1:ObdrDkeb4kJdCP557AjRjq69pTHfNouLtWZG7j9rPN8=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd h1:nTDtHvHSdCn1m6ITfMRqtOd/9+7a3s8RBNOZ3eYZzJA=
golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20190923162816-aa69164e4478 h1:l5EDrHhldLYb3ZRHDUhXF7Om7MvYXnkV9/iQNo1lX6g=
golang.org/x/net v0.0.0-20190923162816-aa69164e4478/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f h1:wMNYb4v58l5UBM7MYRLPG6ZhfOqbKu7X5eyFl8ZhKvA=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20190423024810-112230192c58 h1:8gQV6CLnAEikrhgkHFbMAEhagSSnXWGV915qUMm9mrU=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e h1:o3PsSEY8E4eXWkXrIP9YJALUkVZqzHJT5DOasTyn8Vs=
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe h1:6fAMxZRR6sl1Uq8U61gxU+kPTs2tR8uOySCbBP7BN/M=
golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/tools v0.0.0-20191216052735-49a3e744a425/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
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/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=
Expand All @@ -70,3 +95,5 @@ gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkep
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
gopkg.in/yaml.v2 v2.2.1 h1:mUhvW9EsL+naU5Q3cakzfE91YhliOondGd6ZrsDBHQE=
gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
2 changes: 1 addition & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package main

import (
"github.com/farshidtz/elog"
"github.com/linksmart/service-catalog/v2/catalog"
"github.com/linksmart/service-catalog/v3/catalog"
)

var logger *elog.Logger
Expand Down
8 changes: 3 additions & 5 deletions integration-test/mqtt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ import (
"encoding/json"
"log"
"os"
"strings"
"testing"
"time"

"github.com/linksmart/service-catalog/v2/client"

"strings"

paho "github.com/eclipse/paho.mqtt.golang"
"github.com/linksmart/service-catalog/v2/catalog"
"github.com/linksmart/service-catalog/v3/catalog"
"github.com/linksmart/service-catalog/v3/client"
uuid "github.com/satori/go.uuid"
)

Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/justinas/alice"
_ "github.com/linksmart/go-sec/auth/keycloak/validator"
"github.com/linksmart/go-sec/auth/validator"
"github.com/linksmart/service-catalog/v2/catalog"
"github.com/linksmart/service-catalog/v3/catalog"
"github.com/oleksandr/bonjour"
"github.com/rs/cors"
uuid "github.com/satori/go.uuid"
Expand Down
16 changes: 14 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,16 @@ github.com/linksmart/go-sec/auth/keycloak/validator
github.com/linksmart/go-sec/auth/obtainer
github.com/linksmart/go-sec/auth/validator
github.com/linksmart/go-sec/authz
# github.com/miekg/dns v0.0.0-20170818131442-e4205768578d
# github.com/linksmart/service-catalog/v2 v2.4.1
github.com/linksmart/service-catalog/v2/catalog
github.com/linksmart/service-catalog/v2/client
github.com/linksmart/service-catalog/v2/utils
# github.com/miekg/dns v1.1.27
github.com/miekg/dns
# github.com/oleksandr/bonjour v0.0.0-20160508152359-5dcf00d8b228
github.com/oleksandr/bonjour
# github.com/rs/cors v1.7.0
github.com/rs/cors
# github.com/satori/go.uuid v1.1.0
github.com/satori/go.uuid
# github.com/syndtr/goleveldb v1.0.0
Expand All @@ -46,7 +52,10 @@ github.com/syndtr/goleveldb/leveldb/table
github.com/syndtr/goleveldb/leveldb/util
# github.com/urfave/negroni v1.0.0
github.com/urfave/negroni
# golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
# golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550
golang.org/x/crypto/ed25519
golang.org/x/crypto/ed25519/internal/edwards25519
# golang.org/x/net v0.0.0-20190923162816-aa69164e4478
golang.org/x/net/bpf
golang.org/x/net/internal/iana
golang.org/x/net/internal/socket
Expand All @@ -55,3 +64,6 @@ golang.org/x/net/ipv4
golang.org/x/net/ipv6
golang.org/x/net/proxy
golang.org/x/net/websocket
# golang.org/x/sys v0.0.0-20190924154521-2837fb4f24fe
golang.org/x/sys/unix
golang.org/x/sys/windows

0 comments on commit ee2e6d6

Please sign in to comment.