mirror of
https://github.com/mochi-mqtt/server.git
synced 2025-09-27 04:26:23 +08:00
Update go mod and imports to v2
This commit is contained in:
@@ -78,7 +78,7 @@ docker run -p 1883:1883 -p 1882:1882 -p 8080:8080 mochi:latest
|
|||||||
Importing Mochi MQTT as a package requires just a few lines of code to get started.
|
Importing Mochi MQTT as a package requires just a few lines of code to get started.
|
||||||
``` go
|
``` go
|
||||||
import (
|
import (
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@@ -15,7 +15,7 @@ import (
|
|||||||
|
|
||||||
"github.com/rs/xid"
|
"github.com/rs/xid"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -11,8 +11,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
@@ -10,9 +10,9 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@@ -9,9 +9,9 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@@ -10,9 +10,9 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@@ -9,10 +9,10 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/hooks/debug"
|
"github.com/mochi-co/mqtt/v2/hooks/debug"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -11,10 +11,10 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@@ -10,9 +10,9 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@@ -9,10 +9,10 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage/badger"
|
"github.com/mochi-co/mqtt/v2/hooks/storage/badger"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@@ -10,10 +10,10 @@ import (
|
|||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage/bolt"
|
"github.com/mochi-co/mqtt/v2/hooks/storage/bolt"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
"go.etcd.io/bbolt"
|
"go.etcd.io/bbolt"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -9,10 +9,10 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage/redis"
|
"github.com/mochi-co/mqtt/v2/hooks/storage/redis"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
|
||||||
rv8 "github.com/go-redis/redis/v8"
|
rv8 "github.com/go-redis/redis/v8"
|
||||||
|
@@ -9,9 +9,9 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@@ -10,9 +10,9 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@@ -9,9 +9,9 @@ import (
|
|||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/auth"
|
"github.com/mochi-co/mqtt/v2/hooks/auth"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/mochi-co/mqtt
|
module github.com/mochi-co/mqtt/v2
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
|
6
hooks.go
6
hooks.go
@@ -9,9 +9,9 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
@@ -6,8 +6,8 @@ package auth
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AllowHook is an authentication hook which allows connection access
|
// AllowHook is an authentication hook which allows connection access
|
||||||
|
@@ -6,8 +6,8 @@ package auth
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -6,8 +6,8 @@ package auth
|
|||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Options contains the configuration/rules data for the auth ledger.
|
// Options contains the configuration/rules data for the auth ledger.
|
||||||
|
@@ -7,8 +7,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
@@ -8,8 +8,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"gopkg.in/yaml.v3"
|
"gopkg.in/yaml.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -6,8 +6,8 @@ package auth
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -6,9 +6,9 @@ package debug
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
@@ -8,10 +8,10 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
"github.com/timshannon/badgerhold"
|
"github.com/timshannon/badgerhold"
|
||||||
)
|
)
|
||||||
|
@@ -11,10 +11,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/asdine/storm/v3"
|
"github.com/asdine/storm/v3"
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
"github.com/timshannon/badgerhold"
|
"github.com/timshannon/badgerhold"
|
||||||
|
@@ -9,10 +9,10 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
sgob "github.com/asdine/storm/codec/gob"
|
sgob "github.com/asdine/storm/codec/gob"
|
||||||
"github.com/asdine/storm/v3"
|
"github.com/asdine/storm/v3"
|
||||||
|
@@ -9,10 +9,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
"github.com/asdine/storm/v3"
|
"github.com/asdine/storm/v3"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
|
@@ -9,10 +9,10 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
redis "github.com/go-redis/redis/v8"
|
redis "github.com/go-redis/redis/v8"
|
||||||
)
|
)
|
||||||
|
@@ -9,10 +9,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt"
|
"github.com/mochi-co/mqtt/v2"
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
miniredis "github.com/alicebob/miniredis/v2"
|
miniredis "github.com/alicebob/miniredis/v2"
|
||||||
redis "github.com/go-redis/redis/v8"
|
redis "github.com/go-redis/redis/v8"
|
||||||
|
@@ -7,8 +7,8 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@@ -7,8 +7,8 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -10,9 +10,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
@@ -8,7 +8,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Inflight is a map of InflightMessage keyed on packet id.
|
// Inflight is a map of InflightMessage keyed on packet id.
|
||||||
|
@@ -7,7 +7,7 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
@@ -10,7 +10,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
@@ -16,10 +16,10 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
)
|
)
|
||||||
|
@@ -14,10 +14,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/hooks/storage"
|
"github.com/mochi-co/mqtt/v2/hooks/storage"
|
||||||
"github.com/mochi-co/mqtt/listeners"
|
"github.com/mochi-co/mqtt/v2/listeners"
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/mochi-co/mqtt/system"
|
"github.com/mochi-co/mqtt/v2/system"
|
||||||
|
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
@@ -8,7 +8,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@@ -6,7 +6,7 @@ package mqtt
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/mochi-co/mqtt/packets"
|
"github.com/mochi-co/mqtt/v2/packets"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user