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

fix go.mod so that module can be imported #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"fmt"
"time"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

// Connect to the server.
Expand Down Expand Up @@ -230,12 +230,12 @@ func ExampleConnection_SendRequest() {
defer conn.Disconnect()

// publish a request message and wait for a reply.
reply, err = conn.SendRequest(eftl.Message{
reply, err := conn.SendRequest(eftl.Message{
"type": "request",
"text": "this is a request message",
}, 10*time.Second)
if err == eftl.ErrTimeout {
fmt.Println("request failed:", timeout)
fmt.Println("request timeout")
} else if err != nil {
fmt.Println("request failed:", err)
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"log"
"os"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

var (
Expand All @@ -32,7 +32,7 @@ func main() {
if len(os.Args) > 1 {
url = os.Args[1]
}
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)

// set connection options
opts := eftl.DefaultOptions()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"log"
"os"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

var (
Expand All @@ -32,7 +32,7 @@ func main() {
if len(os.Args) > 1 {
url = os.Args[1]
}
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)

// set connection options
opts := eftl.DefaultOptions()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"os"
"time"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

var (
Expand All @@ -33,7 +33,7 @@ func main() {
if len(os.Args) > 1 {
url = os.Args[1]
}
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)

// set connection options
opts := eftl.DefaultOptions()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"log"
"os"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

var (
Expand All @@ -33,7 +33,7 @@ func main() {
if len(os.Args) > 1 {
url = os.Args[1]
}
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)

// channel for receiving connection errors
errChan := make(chan error, 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"os"
"time"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

var (
Expand All @@ -33,7 +33,7 @@ func main() {
if len(os.Args) > 1 {
url = os.Args[1]
}
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)

// channel for receiving connection errors
errChan := make(chan error, 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"log"
"os"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

var (
Expand All @@ -31,7 +31,7 @@ func main() {
if len(os.Args) > 1 {
url = os.Args[1]
}
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)

// channel for receiving connection errors
errChan := make(chan error, 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"os"
"time"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

var (
Expand All @@ -32,7 +32,7 @@ func main() {
if len(os.Args) > 1 {
url = os.Args[1]
}
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)

// channel for receiving connection errors
errChan := make(chan error, 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"log"
"os"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

var (
Expand All @@ -33,7 +33,7 @@ func main() {
if len(os.Args) > 1 {
url = os.Args[1]
}
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)

// channel for receiving connection errors
errChan := make(chan error, 1)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"log"
"os"

"tibco.com/eftl"
"github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl"
)

var (
Expand All @@ -34,11 +34,11 @@ func main() {
if len(os.Args) > 1 {
url = os.Args[1]
}
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)
log.Printf("%s : TIBCO eFTL Version: %s\n", os.Args[0], eftl.Version)

// set the log level log file
eftl.SetLogLevel(eftl.LogLevelDebug)
eftl.SetLogFile("subscriber.log")
eftl.SetLogLevel(eftl.LogLevelDebug)
eftl.SetLogFile("subscriber.log")

// channel for receiving connection errors
errChan := make(chan error, 1)
Expand Down
8 changes: 8 additions & 0 deletions eftl/sdk/golang/eftl/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module github.com/TIBCOSoftware/TIBCO-Messaging/eftl/sdk/golang/eftl

go 1.17

require (
github.com/gorilla/websocket v1.5.0
github.com/rs/zerolog v1.26.1
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions eftl/sdk/golang/go.mod

This file was deleted.