Updating packages
This commit is contained in:
parent
c89756630f
commit
8f0db70487
10
client.go
10
client.go
@ -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 {
|
||||
|
@ -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"
|
||||
)
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,7 +1,7 @@
|
||||
package extensions
|
||||
|
||||
import (
|
||||
"github.com/thesyncim/faye/message"
|
||||
"gitea.watsonlabs.net/watsonb8/fayec/message"
|
||||
)
|
||||
|
||||
type GetStream struct {
|
||||
|
2
go.mod
2
go.mod
@ -1,4 +1,4 @@
|
||||
module github.com/thesyncim/fayec
|
||||
module gitea.watsonlabs.net/watsonb8/fayec
|
||||
|
||||
go 1.21.0
|
||||
|
||||
|
@ -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"
|
||||
|
@ -1,7 +1,7 @@
|
||||
package store
|
||||
|
||||
import (
|
||||
"github.com/thesyncim/fayec/subscription"
|
||||
"gitea.watsonlabs.net/watsonb8/fayec/subscription"
|
||||
"sync"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package subscription
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/thesyncim/fayec/message"
|
||||
"gitea.watsonlabs.net/watsonb8/fayec/message"
|
||||
"regexp"
|
||||
)
|
||||
|
||||
|
@ -2,7 +2,7 @@ package transport
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
"github.com/thesyncim/fayec/message"
|
||||
"gitea.watsonlabs.net/watsonb8/fayec/message"
|
||||
"net/http"
|
||||
"time"
|
||||
)
|
||||
|
@ -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 server’s 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 server’s 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())
|
||||
|
Loading…
Reference in New Issue
Block a user