Skip to content

Commit

Permalink
Apply stomp v3
Browse files Browse the repository at this point in the history
  • Loading branch information
minhduc140583 committed Jul 21, 2024
1 parent 6f05dad commit f3662ef
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion conn.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package activemq

import (
"github.com/go-stomp/stomp"
"log"
"os"
"time"

"github.com/go-stomp/stomp/v3"
)

func NewConn(userName string, password string, addr string) (*stomp.Conn, error) {
Expand Down
3 changes: 2 additions & 1 deletion destination_sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package activemq

import (
"context"
"github.com/go-stomp/stomp"

"github.com/go-stomp/stomp/v3"
)

type DestinationSender struct {
Expand Down
5 changes: 3 additions & 2 deletions health_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ package activemq

import (
"context"
"github.com/go-stomp/stomp"

"github.com/go-stomp/stomp/v3"
)

type HealthChecker struct {
Expand All @@ -26,7 +27,7 @@ func (s *HealthChecker) Name() string {

func (s *HealthChecker) Check(ctx context.Context) (map[string]interface{}, error) {
var conn *stomp.Conn

res := make(map[string]interface{})
var err error
conn, err = stomp.Dial("tcp", s.addr)
Expand Down
5 changes: 3 additions & 2 deletions sender.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package activemq

import (
"context"
"github.com/go-stomp/stomp"
"github.com/go-stomp/stomp/frame"

"github.com/go-stomp/stomp/v3"
"github.com/go-stomp/stomp/v3/frame"
)

type Sender struct {
Expand Down
5 changes: 3 additions & 2 deletions subscriber.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package activemq

import (
"context"
"github.com/go-stomp/stomp"
"github.com/go-stomp/stomp/frame"
"time"

"github.com/go-stomp/stomp/v3"
"github.com/go-stomp/stomp/v3/frame"
)

type Subscriber struct {
Expand Down

0 comments on commit f3662ef

Please sign in to comment.