mirror of
https://github.com/absmach/supermq.git
synced 2026-06-23 06:40:19 +00:00
NOISSUE - Update Magistrala's mProxy and SenML dependencies (#250)
* update senml from mainflux to absmach repo Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com> * update api documentation for websocket and mqtt Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com> --------- Signed-off-by: ianmuchyri <ianmuchiri8@gmail.com>
This commit is contained in:
committed by
GitHub
parent
03a2cbe573
commit
b13357666a
@@ -11,7 +11,7 @@ info:
|
||||
url: 'https://github.com/absmach/magistrala'
|
||||
email: info@mainflux.com
|
||||
description: |
|
||||
MQTT adapter provides an MQTT API for sending messages through the platform. MQTT adapter uses [mProxy](https://github.com/magistrala/mproxy) for proxying traffic between client and MQTT broker.
|
||||
MQTT adapter provides an MQTT API for sending messages through the platform. MQTT adapter uses [mProxy](https://github.com/absmach/mproxy) for proxying traffic between client and MQTT broker.
|
||||
Additionally, the MQTT adapter and the message broker are replicating the traffic between brokers.
|
||||
|
||||
license:
|
||||
|
||||
@@ -5,7 +5,7 @@ asyncapi: 2.6.0
|
||||
id: 'https://github.com/absmach/magistrala/blob/master/api/asyncapi/websocket.yml'
|
||||
info:
|
||||
title: Magistrala WebSocket adapter
|
||||
description: WebSocket API for sending messages through communication channels
|
||||
description: WebSocket adapter provides a WebSocket API for sending messages through communication channels. WebSocket adapter uses [mProxy](https://github.com/absmach/mproxy) for proxying traffic between client and MQTT broker.
|
||||
version: '1.0.0'
|
||||
contact:
|
||||
name: Magistrala Team
|
||||
|
||||
+2
-2
@@ -26,10 +26,10 @@ import (
|
||||
brokerstracing "github.com/absmach/magistrala/pkg/messaging/brokers/tracing"
|
||||
"github.com/absmach/magistrala/pkg/messaging/handler"
|
||||
"github.com/absmach/magistrala/pkg/uuid"
|
||||
mproxy "github.com/absmach/mproxy/pkg/http"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
"github.com/caarlos0/env/v10"
|
||||
chclient "github.com/mainflux/callhome/pkg/client"
|
||||
mproxy "github.com/mainflux/mproxy/pkg/http"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
|
||||
+3
-3
@@ -28,12 +28,12 @@ import (
|
||||
"github.com/absmach/magistrala/pkg/messaging/handler"
|
||||
mqttpub "github.com/absmach/magistrala/pkg/messaging/mqtt"
|
||||
"github.com/absmach/magistrala/pkg/uuid"
|
||||
mp "github.com/absmach/mproxy/pkg/mqtt"
|
||||
"github.com/absmach/mproxy/pkg/mqtt/websocket"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
"github.com/caarlos0/env/v10"
|
||||
"github.com/cenkalti/backoff/v4"
|
||||
chclient "github.com/mainflux/callhome/pkg/client"
|
||||
mp "github.com/mainflux/mproxy/pkg/mqtt"
|
||||
"github.com/mainflux/mproxy/pkg/mqtt/websocket"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
|
||||
|
||||
+2
-2
@@ -25,10 +25,10 @@ import (
|
||||
"github.com/absmach/magistrala/ws"
|
||||
"github.com/absmach/magistrala/ws/api"
|
||||
"github.com/absmach/magistrala/ws/tracing"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
"github.com/absmach/mproxy/pkg/websockets"
|
||||
"github.com/caarlos0/env/v10"
|
||||
chclient "github.com/mainflux/callhome/pkg/client"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"github.com/mainflux/mproxy/pkg/websockets"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
"golang.org/x/sync/errgroup"
|
||||
)
|
||||
|
||||
@@ -4,6 +4,8 @@ go 1.21
|
||||
|
||||
require (
|
||||
github.com/0x6flab/namegenerator v1.1.0
|
||||
github.com/absmach/mproxy v0.3.1-0.20231221215510-0ffbc4fc2337
|
||||
github.com/absmach/senml v1.0.5
|
||||
github.com/authzed/authzed-go v0.10.1
|
||||
github.com/authzed/grpcutil v0.0.0-20230908193239-4286bb1d6403
|
||||
github.com/caarlos0/env/v10 v10.0.0
|
||||
@@ -31,8 +33,6 @@ require (
|
||||
github.com/jmoiron/sqlx v1.3.5
|
||||
github.com/lestrrat-go/jwx/v2 v2.0.16
|
||||
github.com/mainflux/callhome v0.0.0-20230920140432-33c5663382ce
|
||||
github.com/mainflux/mproxy v0.3.1-0.20231022160500-0e0db9e1642c
|
||||
github.com/mainflux/senml v1.5.0
|
||||
github.com/mitchellh/mapstructure v1.5.0
|
||||
github.com/nats-io/nats.go v1.31.0
|
||||
github.com/oklog/ulid/v2 v2.1.0
|
||||
|
||||
@@ -80,6 +80,10 @@ github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWX
|
||||
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=
|
||||
github.com/VividCortex/gohistogram v1.0.0 h1:6+hBz+qvs0JOrrNhhmR7lFxo5sINxBCGXrdtl/UvroE=
|
||||
github.com/VividCortex/gohistogram v1.0.0/go.mod h1:Pf5mBqqDxYaXu3hDrrU+w6nw50o/4+TcAqDqk/vUH7g=
|
||||
github.com/absmach/mproxy v0.3.1-0.20231221215510-0ffbc4fc2337 h1:OW2WIn094hQCwrkXZ2KHgoOzsKAwqPaxZvRZ94VTc5U=
|
||||
github.com/absmach/mproxy v0.3.1-0.20231221215510-0ffbc4fc2337/go.mod h1:HmXsnuSWIN0OKrcscIxBzDO/GRjvqYxUTnd6vpuo+MQ=
|
||||
github.com/absmach/senml v1.0.5 h1:zNPRYpGr2Wsb8brAusz8DIfFqemy1a2dNbmMnegY3GE=
|
||||
github.com/absmach/senml v1.0.5/go.mod h1:NDEjk3O4V4YYu9Bs2/+t/AZ/F+0wu05ikgecp+/FsSU=
|
||||
github.com/afex/hystrix-go v0.0.0-20180502004556-fa1af6a1f4f5/go.mod h1:SkGFH1ia65gfNATL8TAiHDNxPzPdmEL5uirI2Uyuz6c=
|
||||
github.com/ajg/form v1.5.1 h1:t9c7v8JUKu/XxOGBU0yjNpaMloxGEJhUkqFRq0ibGeU=
|
||||
github.com/ajg/form v1.5.1/go.mod h1:uL1WgH+h2mgNtvBq0339dVnzXdBETtL2LeUXaIv25UY=
|
||||
@@ -788,11 +792,8 @@ github.com/mainflux/mproxy v0.1.5/go.mod h1:MBLtv/RvhT8QsmXz4g3GxkRaP8PqlVqBWeqv
|
||||
github.com/mainflux/mproxy v0.1.8/go.mod h1:NnhrUDytvV4pCI5LDuet86/WrymrUaX0/x1tlUHTKhU=
|
||||
github.com/mainflux/mproxy v0.2.1-0.20200603122422-b08e1fa2cf5c/go.mod h1:lFD56bDgNTslCLoTlZfo2DyQbkQOnoxEXmbE4VumRm4=
|
||||
github.com/mainflux/mproxy v0.2.2/go.mod h1:+T8h6ZupYPl6Lx9A0hqpcUQtcLyOBdzm/lfkjvPfGXo=
|
||||
github.com/mainflux/mproxy v0.3.1-0.20231022160500-0e0db9e1642c h1:iF14azUs+lEzWPgVe6+lPqSjKGuN0d66cCFd2Cxt9Mo=
|
||||
github.com/mainflux/mproxy v0.3.1-0.20231022160500-0e0db9e1642c/go.mod h1:NruAIEwk3udRzb8ZOrbA77Zo0eix3W8pTGOA8E6hvpg=
|
||||
github.com/mainflux/senml v1.0.0/go.mod h1:g9i8pj4WMs29KkUpXivbe/PP0qJd1kt3b1CF77S8A3s=
|
||||
github.com/mainflux/senml v1.0.1/go.mod h1:SMX76mM5yenjLVjZOM27+njCGkP+AA64O46nRQiBRlE=
|
||||
github.com/mainflux/senml v1.5.0 h1:GAd1y1eMohfa6sVYcr2iQfVfkkh9l/q7B1TWF5L68xs=
|
||||
github.com/mainflux/senml v1.5.0/go.mod h1:SMX76mM5yenjLVjZOM27+njCGkP+AA64O46nRQiBRlE=
|
||||
github.com/markbates/errx v1.1.0 h1:QDFeR+UP95dO12JgW+tgi2UVfo0V8YBHiUIOaeBPiEI=
|
||||
github.com/markbates/errx v1.1.0/go.mod h1:PLa46Oex9KNbVDZhKel8v1OT7hD5JZ2eI7AHhA0wswc=
|
||||
|
||||
@@ -18,8 +18,8 @@ import (
|
||||
"github.com/absmach/magistrala/http/mocks"
|
||||
"github.com/absmach/magistrala/internal/apiutil"
|
||||
mglog "github.com/absmach/magistrala/logger"
|
||||
mproxy "github.com/mainflux/mproxy/pkg/http"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
mproxy "github.com/absmach/mproxy/pkg/http"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
mglog "github.com/absmach/magistrala/logger"
|
||||
"github.com/absmach/magistrala/pkg/errors"
|
||||
"github.com/absmach/magistrala/pkg/messaging"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
)
|
||||
|
||||
var _ session.Handler = (*handler)(nil)
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
# MQTT adapter
|
||||
|
||||
MQTT adapter provides an MQTT API for sending messages through the platform. MQTT adapter uses [mProxy](https://github.com/mainflux/mproxy) for proxying traffic between client and MQTT broker.
|
||||
MQTT adapter provides an MQTT API for sending messages through the platform. MQTT adapter uses [mProxy](https://github.com/absmach/mproxy) for proxying traffic between client and MQTT broker.
|
||||
|
||||
## Configuration
|
||||
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
"github.com/absmach/magistrala/mqtt/events"
|
||||
"github.com/absmach/magistrala/pkg/errors"
|
||||
"github.com/absmach/magistrala/pkg/messaging"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
)
|
||||
|
||||
var _ session.Handler = (*handler)(nil)
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"github.com/absmach/magistrala/mqtt"
|
||||
"github.com/absmach/magistrala/mqtt/mocks"
|
||||
"github.com/absmach/magistrala/pkg/errors"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"time"
|
||||
|
||||
mglog "github.com/absmach/magistrala/logger"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
)
|
||||
|
||||
var _ session.Handler = (*loggingMiddleware)(nil)
|
||||
|
||||
@@ -9,8 +9,8 @@ import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
"github.com/go-kit/kit/metrics"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
)
|
||||
|
||||
var _ session.Handler = (*metricsMiddleware)(nil)
|
||||
|
||||
@@ -6,7 +6,7 @@ package handler
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
|
||||
@@ -19,7 +19,7 @@ import (
|
||||
"github.com/absmach/magistrala/pkg/errors"
|
||||
svcerr "github.com/absmach/magistrala/pkg/errors/service"
|
||||
sdk "github.com/absmach/magistrala/pkg/sdk/go"
|
||||
mproxy "github.com/mainflux/mproxy/pkg/http"
|
||||
mproxy "github.com/absmach/mproxy/pkg/http"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
)
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"github.com/absmach/magistrala/pkg/errors"
|
||||
"github.com/absmach/magistrala/pkg/messaging"
|
||||
"github.com/absmach/magistrala/pkg/transformers"
|
||||
"github.com/mainflux/senml"
|
||||
"github.com/absmach/senml"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -11,7 +11,7 @@ import (
|
||||
"github.com/absmach/magistrala/pkg/errors"
|
||||
"github.com/absmach/magistrala/pkg/messaging"
|
||||
"github.com/absmach/magistrala/pkg/transformers/senml"
|
||||
mgsenml "github.com/mainflux/senml"
|
||||
mgsenml "github.com/absmach/senml"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/absmach/magistrala/internal/testsutil"
|
||||
"github.com/absmach/magistrala/twins"
|
||||
"github.com/absmach/magistrala/twins/mocks"
|
||||
"github.com/mainflux/senml"
|
||||
"github.com/absmach/senml"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/absmach/magistrala/pkg/messaging"
|
||||
"github.com/absmach/magistrala/pkg/uuid"
|
||||
"github.com/absmach/magistrala/twins"
|
||||
"github.com/mainflux/senml"
|
||||
"github.com/absmach/senml"
|
||||
)
|
||||
|
||||
const publisher = "twins"
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/absmach/magistrala/pkg/errors"
|
||||
svcerr "github.com/absmach/magistrala/pkg/errors/service"
|
||||
"github.com/absmach/magistrala/pkg/messaging"
|
||||
"github.com/mainflux/senml"
|
||||
"github.com/absmach/senml"
|
||||
)
|
||||
|
||||
const publisher = "twins"
|
||||
|
||||
@@ -15,7 +15,7 @@ import (
|
||||
svcerr "github.com/absmach/magistrala/pkg/errors/service"
|
||||
"github.com/absmach/magistrala/twins"
|
||||
"github.com/absmach/magistrala/twins/mocks"
|
||||
"github.com/mainflux/senml"
|
||||
"github.com/absmach/senml"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
@@ -18,9 +18,9 @@ import (
|
||||
"github.com/absmach/magistrala/pkg/messaging/mocks"
|
||||
"github.com/absmach/magistrala/ws"
|
||||
"github.com/absmach/magistrala/ws/api"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
"github.com/absmach/mproxy/pkg/websockets"
|
||||
"github.com/gorilla/websocket"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"github.com/mainflux/mproxy/pkg/websockets"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/mock"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
+1
-1
@@ -17,7 +17,7 @@ import (
|
||||
"github.com/absmach/magistrala/pkg/errors"
|
||||
svcerr "github.com/absmach/magistrala/pkg/errors/service"
|
||||
"github.com/absmach/magistrala/pkg/messaging"
|
||||
"github.com/mainflux/mproxy/pkg/session"
|
||||
"github.com/absmach/mproxy/pkg/session"
|
||||
)
|
||||
|
||||
var _ session.Handler = (*handler)(nil)
|
||||
|
||||
Reference in New Issue
Block a user