Skip to content

Commit

Permalink
update device-repository client
Browse files Browse the repository at this point in the history
  • Loading branch information
IngoRoessner committed Jan 7, 2025
1 parent 9fdc038 commit cbef36f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ toolchain go1.23.3

require (
github.com/SENERGY-Platform/developer-notifications v0.0.4
github.com/SENERGY-Platform/device-repository v0.1.51
github.com/SENERGY-Platform/event-deployment v0.0.16
github.com/SENERGY-Platform/event-worker v1.0.18
github.com/SENERGY-Platform/device-repository v0.1.52
github.com/SENERGY-Platform/event-deployment v0.0.18
github.com/SENERGY-Platform/event-worker v1.0.19
github.com/SENERGY-Platform/models/go v0.0.0-20241007061544-de7132ae94e4
github.com/SENERGY-Platform/permissions-v2 v0.0.27
github.com/SENERGY-Platform/process-deployment v0.0.11
github.com/SENERGY-Platform/process-deployment v0.0.12
github.com/SENERGY-Platform/service-commons v0.0.0-20240813072046-91b3195dd8fc
github.com/eclipse/paho.mqtt.golang v1.4.3
github.com/golang-jwt/jwt v3.2.2+incompatible
Expand Down
16 changes: 8 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERo
github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU=
github.com/SENERGY-Platform/developer-notifications v0.0.4 h1:SmblhfWavNhE1mDxzrkhmWl2AoPPqKD+7YcZCQ7a5Tg=
github.com/SENERGY-Platform/developer-notifications v0.0.4/go.mod h1:8yJrYnAYMtPEPy89ULw8ivgG8orVhSnaLgyfDt0bdgg=
github.com/SENERGY-Platform/device-repository v0.1.51 h1:vy+4gvK/mhgbmTl8gXKwPcQFMHMwycywCMhhr6TbAx0=
github.com/SENERGY-Platform/device-repository v0.1.51/go.mod h1:36pibGmG2igxgydf+deII/wiP1gWxF2/bgijDzwRriY=
github.com/SENERGY-Platform/event-deployment v0.0.16 h1:KdKVnqMsjHVSsABJ0NrC/DS2OQc/hbcwLLN6EkDG9l0=
github.com/SENERGY-Platform/event-deployment v0.0.16/go.mod h1:TVS+FjrVg2NZOqfhg1XxnbRCWQI5JwQZDK3e5esJt9k=
github.com/SENERGY-Platform/event-worker v1.0.18 h1:AlkEH+UM90VDQjoZV5pR5i1Vunp2l+BR6myI6AqeVzE=
github.com/SENERGY-Platform/event-worker v1.0.18/go.mod h1:B9u4a8GBx5FiGp62li7VJbvb9dNrnwP3f0HVXeZye8c=
github.com/SENERGY-Platform/device-repository v0.1.52 h1:JedGhrK3dm0x693jHAPgsn85iO9esjxJz9zgdyt/nis=
github.com/SENERGY-Platform/device-repository v0.1.52/go.mod h1:36pibGmG2igxgydf+deII/wiP1gWxF2/bgijDzwRriY=
github.com/SENERGY-Platform/event-deployment v0.0.18 h1:P+0qqWnqBb7rzl7T6gesPARa3d2uD8l3VW1Qzk+kcyo=
github.com/SENERGY-Platform/event-deployment v0.0.18/go.mod h1:dV4kCxQfPTGCrP3FXbovQE27MySMxMzCyMIC3Xmak8Q=
github.com/SENERGY-Platform/event-worker v1.0.19 h1:mXFEjzJfSjWdDjEWUv2qNLpsW/15dyL3GvZH7CqhB/g=
github.com/SENERGY-Platform/event-worker v1.0.19/go.mod h1:vSiP9Ug7AU9O6LYBSTSDG8r8Lhd5VZ6WlBrGRIvjf30=
github.com/SENERGY-Platform/models/go v0.0.0-20241007061544-de7132ae94e4 h1:zS65f1cmjAoBQUA432nmJl2TXAwqqqJMz7sp2DHLAGc=
github.com/SENERGY-Platform/models/go v0.0.0-20241007061544-de7132ae94e4/go.mod h1:bCREPNRN4P8oxLgpC3/ZKK4jXSy4MSPXoiomhohE+aw=
github.com/SENERGY-Platform/permissions-v2 v0.0.27 h1:4Sf5zNW0KMrSSJrv90MmyKD5RMnS8CT26yE7W9Za/x0=
github.com/SENERGY-Platform/permissions-v2 v0.0.27/go.mod h1:w5AghpFIQ2Hi+HKfcuqXcizR4pCYuMLXcWAdAmOPAF4=
github.com/SENERGY-Platform/process-deployment v0.0.11 h1:vmHk3BuTCzaucYMgafHm5Rk5+MO48kHuq9nnQtKlB0M=
github.com/SENERGY-Platform/process-deployment v0.0.11/go.mod h1:eRWXc3pOfQbSNRtSgTzDGLi15Tgo/2w8pZ89M/RBK78=
github.com/SENERGY-Platform/process-deployment v0.0.12 h1:jsNTHuNjuWlimtv6A6KOBoO0FnEgXkx0pao853Hu7ik=
github.com/SENERGY-Platform/process-deployment v0.0.12/go.mod h1:0V9KCf6ewlkIB5i6mxl0CqZFZcL6Wd3IFVpWGt6b7pE=
github.com/SENERGY-Platform/service-commons v0.0.0-20240813072046-91b3195dd8fc h1:FbGDfHiDukp8wD1w4YNxjwiDpSNkRUG+Ymq9jjz3Auc=
github.com/SENERGY-Platform/service-commons v0.0.0-20240813072046-91b3195dd8fc/go.mod h1:1p2CQPNtler5leXqNgaOfr7DlgZUydrQlQYA97ycm4k=
github.com/beevik/etree v1.4.0 h1:oz1UedHRepuY3p4N5OjE0nK1WLCqtzHf25bxplKOHLs=
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller/networks.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ type SearchHub = models.Hub
func (this *Controller) ApiListNetworks(request *http.Request) (result []SearchHub, err error, errCode int) {
token := request.Header.Get("Authorization")
all := []SearchHub{}
all, err, errCode = devicerpo.NewClient(this.config.DeviceRepoUrl).ListHubs(token, devicerpo.HubListOptions{
all, err, errCode = devicerpo.NewClient(this.config.DeviceRepoUrl, nil).ListHubs(token, devicerpo.HubListOptions{
Limit: 9999,
Offset: 0,
SortBy: "name.asc",
Expand Down

0 comments on commit cbef36f

Please sign in to comment.