Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v3 #405

Merged
merged 54 commits into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
e2de6b7
merge {tcp,udp}/message to message
jkralik Jul 8, 2022
2cd757f
MessageID as int32 and type as int16 for invalid values
jkralik Jul 18, 2022
3a905a5
fix Pool.ReleaseMessage
jkralik Jul 19, 2022
30deb51
use new sync.Map instead of handler container
jkralik Jul 18, 2022
0befdba
merge responseWriters
jkralik Jul 18, 2022
1021b14
merge observation handler
jkralik Jul 19, 2022
2576c54
remove client wrapper
jkralik Jul 19, 2022
47ef3d5
cleanup connection
jkralik Jul 19, 2022
67f0d89
sonar exclude **/main.go
jkralik Jul 19, 2022
1ab04bf
dont set ETag to responses, because it is optional
jkralik Jul 20, 2022
a59d753
merge mux response writer
jkralik Jul 20, 2022
3ce2dc3
fix after CR
jkralik Jul 21, 2022
1dab88f
use generics in BW transfer
jkralik Jul 20, 2022
14ade7e
merge common client commands
jkralik Jul 20, 2022
5974e25
tcp options as global pkg
jkralik Jul 20, 2022
15ab455
udp options as global pkg
jkralik Jul 21, 2022
f77c582
dtls options as global pkg
jkralik Jul 21, 2022
59aa9cc
observe fail
jkralik Jul 21, 2022
f4f70a4
merge common configs
jkralik Aug 1, 2022
5c68c57
refactore inactivity
jkralik Aug 1, 2022
2a0f3d0
introduce github.com/plgd-dev/go-coap/v3
jkralik Aug 1, 2022
8a7feb8
fix net/TestTLSListenerAcceptWithContext
jkralik Aug 1, 2022
09c37fc
refactore cache package
jkralik Aug 1, 2022
4c03623
update status to pool.Message
jkralik Aug 4, 2022
01a9efb
allow to set/change context in pool.Message
jkralik Aug 5, 2022
19667c6
allow to observe with customized request
jkralik Aug 5, 2022
0a8ee20
cleanup server dial options, client
jkralik Aug 5, 2022
1698a60
mux.ClientConn add AddOnClose
jkralik Aug 5, 2022
d1c0c08
add factories for create requests to mux.ClientConn
jkralik Aug 5, 2022
b6a4033
net/dtlslistener: use parallel handshakes for connections
jkralik Aug 11, 2022
665b6af
setup go 1.18
jkralik Aug 11, 2022
3848d7e
udp/dtls: allow set mtu size
jkralik Aug 11, 2022
ba2022c
fix leaking of pool.Message
jkralik Aug 12, 2022
5047438
nstart - max number of simultaneous outstanding requests to the server
jkralik Aug 3, 2022
884f053
update github.com/pion/dtls/v2 v2.1.6-0.20220815090156-a04cfccb23e5
jkralik Aug 15, 2022
de0912f
fix - make sure message type is propagated when creating new messages
andersroos Sep 6, 2022
ede835f
Update linters and fix reported issues (#393)
Danielius1922 Sep 21, 2022
56ecb12
allow to limit client parallel requests
jkralik Sep 21, 2022
7a6d0a5
fix for lint - revive
jkralik Sep 21, 2022
8cabc5f
test: allow tests with parallel POST, PUT, DELETE
jkralik Sep 21, 2022
2b0032d
only limited number of request can be processed parallel per endpoint
jkralik Sep 21, 2022
b2e91ea
fix go.sum
jkralik Sep 26, 2022
15f9067
Merge branch 'master' into jkralik/merge/v2
jkralik Sep 26, 2022
b0cdfea
Merge pull request #398 from plgd-dev/jkralik/merge/v2
jkralik Sep 26, 2022
154e3fa
Merge branch 'master' into jkralik/merge/master
jkralik Sep 28, 2022
d050370
Merge pull request #400 from plgd-dev/jkralik/merge/master
jkralik Sep 28, 2022
d785fc0
fix - reset Message.Payload
jkralik Oct 4, 2022
7601bbc
update README.md about requirements
jkralik Oct 7, 2022
8134d48
expose goPool parameters
jkralik Oct 4, 2022
86eb155
workflows: use newest golang
jkralik Oct 5, 2022
5cadbb1
Merge branch 'master' into v3
jkralik Oct 7, 2022
88a0247
fix smells
jkralik Oct 7, 2022
e5ec65d
upgrade packages
jkralik Oct 7, 2022
c408e31
update github.com/pion/udp v0.1.2-0.20221011090648-2589407f52c9
jkralik Oct 11, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
introduce github.com/plgd-dev/go-coap/v3
  • Loading branch information
jkralik committed Aug 3, 2022
commit 2a0f3d0ae8ba2d9bdbd5166cb1afeb4645bd1928
1 change: 1 addition & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
ignore:
- "examples"
- "**/*_test.go"
- "v3"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ server
client
!client/
vendor/
v3/

# Test binary, build with `go test -c`
*.test
Expand Down
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"go.testEnvVars": {
// "GOFLAGS":"-mod=vendor",
},
"go.testTimeout": "40s"
"go.testTimeout": "40s",
"files.watcherExclude": {
"**/go-coap/v3/**": true
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
[![contributors](https://img.shields.io/github/contributors/plgd-dev/go-coap)](https://github.com/plgd-dev/go-coap/graphs/contributors)
[![GitHub stars](https://img.shields.io/github/stars/plgd-dev/go-coap)](https://github.com/plgd-dev/go-coap/stargazers)
[![GitHub license](https://img.shields.io/github/license/plgd-dev/go-coap)](https://github.com/plgd-dev/go-coap/blob/master/LICENSE)
[![GoDoc](https://pkg.go.dev/badge/github.com/plgd-dev/go-coap/v2?utm_source=godoc)](https://pkg.go.dev/github.com/plgd-dev/go-coap/v2?utm_source=godoc)
[![GoDoc](https://pkg.go.dev/badge/github.com/plgd-dev/go-coap/v3?utm_source=godoc)](https://pkg.go.dev/github.com/plgd-dev/go-coap/v3?utm_source=godoc)
<!-- [![Go Report](https://goreportcard.com/badge/github.com/plgd-dev/go-coap)](https://goreportcard.com/report/github.com/plgd-dev/go-coap) -->

The Constrained Application Protocol (CoAP) is a specialized web transfer protocol for use with constrained nodes and constrained networks in the Internet of Things.
Expand Down
24 changes: 12 additions & 12 deletions dtls/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import (
"time"

"github.com/pion/dtls/v2"
"github.com/plgd-dev/go-coap/v2/dtls/server"
"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/message/pool"
coapNet "github.com/plgd-dev/go-coap/v2/net"
"github.com/plgd-dev/go-coap/v2/net/blockwise"
"github.com/plgd-dev/go-coap/v2/net/monitor/inactivity"
"github.com/plgd-dev/go-coap/v2/net/responsewriter"
"github.com/plgd-dev/go-coap/v2/options"
"github.com/plgd-dev/go-coap/v2/pkg/cache"
"github.com/plgd-dev/go-coap/v2/udp"
udpClient "github.com/plgd-dev/go-coap/v2/udp/client"
"github.com/plgd-dev/go-coap/v3/dtls/server"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/codes"
"github.com/plgd-dev/go-coap/v3/message/pool"
coapNet "github.com/plgd-dev/go-coap/v3/net"
"github.com/plgd-dev/go-coap/v3/net/blockwise"
"github.com/plgd-dev/go-coap/v3/net/monitor/inactivity"
"github.com/plgd-dev/go-coap/v3/net/responsewriter"
"github.com/plgd-dev/go-coap/v3/options"
"github.com/plgd-dev/go-coap/v3/pkg/cache"
"github.com/plgd-dev/go-coap/v3/udp"
udpClient "github.com/plgd-dev/go-coap/v3/udp/client"
)

var DefaultConfig = func() udpClient.Config {
Expand Down
23 changes: 11 additions & 12 deletions dtls/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,16 @@ import (
"time"

piondtls "github.com/pion/dtls/v2"
"github.com/plgd-dev/go-coap/v2/dtls"
"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/message/pool"
"github.com/plgd-dev/go-coap/v2/mux"
coapNet "github.com/plgd-dev/go-coap/v2/net"
"github.com/plgd-dev/go-coap/v2/net/responsewriter"
"github.com/plgd-dev/go-coap/v2/options"
"github.com/plgd-dev/go-coap/v2/pkg/runner/periodic"
"github.com/plgd-dev/go-coap/v2/udp/client"
udpClient "github.com/plgd-dev/go-coap/v2/udp/client"
"github.com/plgd-dev/go-coap/v3/dtls"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/codes"
"github.com/plgd-dev/go-coap/v3/message/pool"
"github.com/plgd-dev/go-coap/v3/mux"
coapNet "github.com/plgd-dev/go-coap/v3/net"
"github.com/plgd-dev/go-coap/v3/net/responsewriter"
"github.com/plgd-dev/go-coap/v3/options"
"github.com/plgd-dev/go-coap/v3/pkg/runner/periodic"
"github.com/plgd-dev/go-coap/v3/udp/client"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"golang.org/x/sync/semaphore"
Expand Down Expand Up @@ -821,7 +820,7 @@ func TestClientKeepAliveMonitor(t *testing.T) {
cc, err := dtls.Dial(
ld.Addr().String(),
clientCgf,
options.WithKeepAlive(3, 100*time.Millisecond, func(cc *udpClient.ClientConn) {
options.WithKeepAlive(3, 100*time.Millisecond, func(cc *client.ClientConn) {
require.False(t, inactivityDetected)
inactivityDetected = true
errC := cc.Close()
Expand Down
4 changes: 2 additions & 2 deletions dtls/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

piondtls "github.com/pion/dtls/v2"
"github.com/plgd-dev/go-coap/v2/dtls"
"github.com/plgd-dev/go-coap/v2/net"
"github.com/plgd-dev/go-coap/v3/dtls"
"github.com/plgd-dev/go-coap/v3/net"
)

func ExampleClientConn_Get() {
Expand Down
2 changes: 1 addition & 1 deletion dtls/server.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package dtls

import "github.com/plgd-dev/go-coap/v2/dtls/server"
import "github.com/plgd-dev/go-coap/v3/dtls/server"

func NewServer(opt ...server.Option) *server.Server {
return server.New(opt...)
Expand Down
14 changes: 7 additions & 7 deletions dtls/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"fmt"
"time"

"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/message/pool"
"github.com/plgd-dev/go-coap/v2/net/monitor/inactivity"
"github.com/plgd-dev/go-coap/v2/net/responsewriter"
"github.com/plgd-dev/go-coap/v2/options/config"
udpClient "github.com/plgd-dev/go-coap/v2/udp/client"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/codes"
"github.com/plgd-dev/go-coap/v3/message/pool"
"github.com/plgd-dev/go-coap/v3/net/monitor/inactivity"
"github.com/plgd-dev/go-coap/v3/net/responsewriter"
"github.com/plgd-dev/go-coap/v3/options/config"
udpClient "github.com/plgd-dev/go-coap/v3/udp/client"
)

// The HandlerFunc type is an adapter to allow the use of
Expand Down
16 changes: 8 additions & 8 deletions dtls/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ import (
"sync"
"time"

"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/pool"
coapNet "github.com/plgd-dev/go-coap/v2/net"
"github.com/plgd-dev/go-coap/v2/net/blockwise"
"github.com/plgd-dev/go-coap/v2/net/monitor/inactivity"
"github.com/plgd-dev/go-coap/v2/pkg/cache"
"github.com/plgd-dev/go-coap/v2/pkg/connections"
udpClient "github.com/plgd-dev/go-coap/v2/udp/client"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/pool"
coapNet "github.com/plgd-dev/go-coap/v3/net"
"github.com/plgd-dev/go-coap/v3/net/blockwise"
"github.com/plgd-dev/go-coap/v3/net/monitor/inactivity"
"github.com/plgd-dev/go-coap/v3/pkg/cache"
"github.com/plgd-dev/go-coap/v3/pkg/connections"
udpClient "github.com/plgd-dev/go-coap/v3/udp/client"
)

// Listener defined used by coap
Expand Down
8 changes: 4 additions & 4 deletions dtls/server/session.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ import (
"sync"
"sync/atomic"

"github.com/plgd-dev/go-coap/v2/message/pool"
coapNet "github.com/plgd-dev/go-coap/v2/net"
"github.com/plgd-dev/go-coap/v2/udp/client"
"github.com/plgd-dev/go-coap/v2/udp/coder"
"github.com/plgd-dev/go-coap/v3/message/pool"
coapNet "github.com/plgd-dev/go-coap/v3/net"
"github.com/plgd-dev/go-coap/v3/udp/client"
"github.com/plgd-dev/go-coap/v3/udp/coder"
)

type EventFunc = func()
Expand Down
25 changes: 12 additions & 13 deletions dtls/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,16 @@ import (
"time"

piondtls "github.com/pion/dtls/v2"
"github.com/plgd-dev/go-coap/v2/dtls"
"github.com/plgd-dev/go-coap/v2/examples/dtls/pki"
"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/message/pool"
coapNet "github.com/plgd-dev/go-coap/v2/net"
"github.com/plgd-dev/go-coap/v2/net/responsewriter"
"github.com/plgd-dev/go-coap/v2/options"
"github.com/plgd-dev/go-coap/v2/pkg/runner/periodic"
"github.com/plgd-dev/go-coap/v2/udp/client"
udpClient "github.com/plgd-dev/go-coap/v2/udp/client"
"github.com/plgd-dev/go-coap/v3/dtls"
"github.com/plgd-dev/go-coap/v3/examples/dtls/pki"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/codes"
"github.com/plgd-dev/go-coap/v3/message/pool"
coapNet "github.com/plgd-dev/go-coap/v3/net"
"github.com/plgd-dev/go-coap/v3/net/responsewriter"
"github.com/plgd-dev/go-coap/v3/options"
"github.com/plgd-dev/go-coap/v3/pkg/runner/periodic"
"github.com/plgd-dev/go-coap/v3/udp/client"
"github.com/stretchr/testify/require"
"golang.org/x/sync/semaphore"
)
Expand Down Expand Up @@ -208,7 +207,7 @@ func TestServerInactiveMonitor(t *testing.T) {
checkClose.Release(1)
})
}),
options.WithInactivityMonitor(100*time.Millisecond, func(cc *udpClient.ClientConn) {
options.WithInactivityMonitor(100*time.Millisecond, func(cc *client.ClientConn) {
require.False(t, inactivityDetected)
inactivityDetected = true
errC := cc.Close()
Expand Down Expand Up @@ -280,7 +279,7 @@ func TestServerKeepAliveMonitor(t *testing.T) {
checkClose.Release(1)
})
}),
options.WithKeepAlive(3, 100*time.Millisecond, func(cc *udpClient.ClientConn) {
options.WithKeepAlive(3, 100*time.Millisecond, func(cc *client.ClientConn) {
require.False(t, inactivityDetected)
inactivityDetected = true
errC := cc.Close()
Expand Down
4 changes: 2 additions & 2 deletions examples/dtls/pki/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"time"

piondtls "github.com/pion/dtls/v2"
"github.com/plgd-dev/go-coap/v2/dtls"
"github.com/plgd-dev/go-coap/v2/examples/dtls/pki"
"github.com/plgd-dev/go-coap/v3/dtls"
"github.com/plgd-dev/go-coap/v3/examples/dtls/pki"
)

func main() {
Expand Down
16 changes: 8 additions & 8 deletions examples/dtls/pki/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ import (
"time"

piondtls "github.com/pion/dtls/v2"
"github.com/plgd-dev/go-coap/v2/dtls"
"github.com/plgd-dev/go-coap/v2/examples/dtls/pki"
"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/mux"
"github.com/plgd-dev/go-coap/v2/net"
"github.com/plgd-dev/go-coap/v2/options"
"github.com/plgd-dev/go-coap/v2/udp/client"
"github.com/plgd-dev/go-coap/v3/dtls"
"github.com/plgd-dev/go-coap/v3/examples/dtls/pki"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/codes"
"github.com/plgd-dev/go-coap/v3/mux"
"github.com/plgd-dev/go-coap/v3/net"
"github.com/plgd-dev/go-coap/v3/options"
"github.com/plgd-dev/go-coap/v3/udp/client"
)

func onNewClientConn(cc *client.ClientConn) {
Expand Down
2 changes: 1 addition & 1 deletion examples/dtls/psk/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"time"

piondtls "github.com/pion/dtls/v2"
"github.com/plgd-dev/go-coap/v2/dtls"
"github.com/plgd-dev/go-coap/v3/dtls"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions examples/dtls/psk/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"log"

piondtls "github.com/pion/dtls/v2"
coap "github.com/plgd-dev/go-coap/v2"
"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/mux"
coap "github.com/plgd-dev/go-coap/v3"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/codes"
"github.com/plgd-dev/go-coap/v3/mux"
)

func handleA(w mux.ResponseWriter, r *mux.Message) {
Expand Down
12 changes: 6 additions & 6 deletions examples/mcast/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ import (
"sync/atomic"
"time"

"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/pool"
"github.com/plgd-dev/go-coap/v2/net"
"github.com/plgd-dev/go-coap/v2/options"
"github.com/plgd-dev/go-coap/v2/udp"
"github.com/plgd-dev/go-coap/v2/udp/client"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/pool"
"github.com/plgd-dev/go-coap/v3/net"
"github.com/plgd-dev/go-coap/v3/options"
"github.com/plgd-dev/go-coap/v3/udp"
"github.com/plgd-dev/go-coap/v3/udp/client"
)

// https://blog.packagecloud.io/eng/2016/06/22/monitoring-tuning-linux-networking-stack-receiving-data/#monitoring-network-data-processing
Expand Down
12 changes: 6 additions & 6 deletions examples/mcast/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (
"log"
gonet "net"

"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/mux"
"github.com/plgd-dev/go-coap/v2/net"
"github.com/plgd-dev/go-coap/v2/options"
"github.com/plgd-dev/go-coap/v2/udp"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/codes"
"github.com/plgd-dev/go-coap/v3/mux"
"github.com/plgd-dev/go-coap/v3/net"
"github.com/plgd-dev/go-coap/v3/options"
"github.com/plgd-dev/go-coap/v3/udp"
)

func handleMcast(w mux.ResponseWriter, r *mux.Message) {
Expand Down
4 changes: 2 additions & 2 deletions examples/observe/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log"
"time"

"github.com/plgd-dev/go-coap/v2/message/pool"
"github.com/plgd-dev/go-coap/v2/udp"
"github.com/plgd-dev/go-coap/v3/message/pool"
"github.com/plgd-dev/go-coap/v3/udp"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions examples/observe/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"log"
"time"

coap "github.com/plgd-dev/go-coap/v2"
"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/mux"
coap "github.com/plgd-dev/go-coap/v3"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/codes"
"github.com/plgd-dev/go-coap/v3/mux"
)

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

"github.com/plgd-dev/go-coap/v2/udp"
"github.com/plgd-dev/go-coap/v3/udp"
)

func main() {
Expand Down
8 changes: 4 additions & 4 deletions examples/simple/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"bytes"
"log"

coap "github.com/plgd-dev/go-coap/v2"
"github.com/plgd-dev/go-coap/v2/message"
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v2/mux"
coap "github.com/plgd-dev/go-coap/v3"
"github.com/plgd-dev/go-coap/v3/message"
"github.com/plgd-dev/go-coap/v3/message/codes"
"github.com/plgd-dev/go-coap/v3/mux"
)

func loggingMiddleware(next mux.Handler) mux.Handler {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/plgd-dev/go-coap/v2
module github.com/plgd-dev/go-coap/v3

go 1.18

Expand Down
2 changes: 1 addition & 1 deletion message/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"math"

"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v3/message/codes"
)

// MaxTokenSize maximum of token size that can be used in message
Expand Down
2 changes: 1 addition & 1 deletion message/noresponse/noresponse.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package noresponse

import (
"github.com/plgd-dev/go-coap/v2/message/codes"
"github.com/plgd-dev/go-coap/v3/message/codes"
)

var (
Expand Down
Loading