Updating packages

This commit is contained in:
Brandon Watson 2023-09-18 21:01:38 -05:00
parent c89756630f
commit 8f0db70487
10 changed files with 22 additions and 23 deletions

View File

@ -1,11 +1,11 @@
package fayec
import (
"github.com/thesyncim/fayec/internal/dispatcher"
"github.com/thesyncim/fayec/message"
"github.com/thesyncim/fayec/subscription"
"github.com/thesyncim/fayec/transport"
_ "github.com/thesyncim/fayec/transport/websocket"
"gitea.watsonlabs.net/watsonb8/fayec/internal/dispatcher"
"gitea.watsonlabs.net/watsonb8/fayec/message"
"gitea.watsonlabs.net/watsonb8/fayec/subscription"
"gitea.watsonlabs.net/watsonb8/fayec/transport"
_ "gitea.watsonlabs.net/watsonb8/fayec/transport/websocket"
)
type options struct {

View File

@ -2,9 +2,9 @@ package main
import (
"fmt"
"github.com/thesyncim/fayec"
"github.com/thesyncim/fayec/message"
"github.com/thesyncim/fayec/subscription"
"gitea.watsonlabs.net/watsonb8/fayec"
"gitea.watsonlabs.net/watsonb8/fayec/message"
"gitea.watsonlabs.net/watsonb8/fayec/subscription"
"time"
)

View File

@ -2,7 +2,7 @@ package extensions
import (
"encoding/json"
"github.com/thesyncim/faye/message"
"gitea.watsonlabs.net/watsonb8/fayec/message"
"io"
"log"
)
@ -12,7 +12,6 @@ func debugJson(v interface{}) string {
return string(b)
}
//
type DebugExtension struct {
in *log.Logger
out *log.Logger

View File

@ -1,7 +1,7 @@
package extensions
import (
"github.com/thesyncim/faye/message"
"gitea.watsonlabs.net/watsonb8/fayec/message"
)
type GetStream struct {

2
go.mod
View File

@ -1,4 +1,4 @@
module github.com/thesyncim/fayec
module gitea.watsonlabs.net/watsonb8/fayec
go 1.21.0

View File

@ -2,10 +2,10 @@ package dispatcher
import (
"fmt"
"github.com/thesyncim/fayec/internal/store"
"github.com/thesyncim/fayec/message"
"github.com/thesyncim/fayec/subscription"
"github.com/thesyncim/fayec/transport"
"gitea.watsonlabs.net/watsonb8/fayec/internal/store"
"gitea.watsonlabs.net/watsonb8/fayec/message"
"gitea.watsonlabs.net/watsonb8/fayec/subscription"
"gitea.watsonlabs.net/watsonb8/fayec/transport"
"log"
"strconv"
"sync"

View File

@ -1,7 +1,7 @@
package store
import (
"github.com/thesyncim/fayec/subscription"
"gitea.watsonlabs.net/watsonb8/fayec/subscription"
"sync"
)

View File

@ -2,7 +2,7 @@ package subscription
import (
"errors"
"github.com/thesyncim/fayec/message"
"gitea.watsonlabs.net/watsonb8/fayec/message"
"regexp"
)

View File

@ -2,7 +2,7 @@ package transport
import (
"crypto/tls"
"github.com/thesyncim/fayec/message"
"gitea.watsonlabs.net/watsonb8/fayec/message"
"net/http"
"time"
)

View File

@ -3,9 +3,9 @@ package websocket
import (
"crypto/tls"
"encoding/json"
"gitea.watsonlabs.net/watsonb8/fayec/message"
"gitea.watsonlabs.net/watsonb8/fayec/transport"
"github.com/gorilla/websocket"
"github.com/thesyncim/fayec/message"
"github.com/thesyncim/fayec/transport"
"log"
"net"
"sync"
@ -134,8 +134,8 @@ func (w *Websocket) Handshake(msg *message.Message) (resp *message.Message, err
return resp, nil
}
//Init is called after a client has discovered the servers capabilities with a handshake exchange,
//a connection is established by sending a message to the /meta/connect channel
// Init is called after a client has discovered the servers capabilities with a handshake exchange,
// a connection is established by sending a message to the /meta/connect channel
func (w *Websocket) Connect(msg *message.Message) error {
go func() {
log.Fatal(w.readWorker())