This commit is contained in:
raz-varren
2016-08-12 18:29:47 +00:00
parent 34f91b9914
commit 1ee09caef3
10 changed files with 35 additions and 37 deletions

View File

@@ -1,8 +1,8 @@
package ssgrpc
import (
"google.golang.org/grpc"
"github.com/raz-varren/sacrificial-socket/backend/ssgrpc/transport"
"google.golang.org/grpc"
//"sync"
)

View File

@@ -1,9 +1,9 @@
package ssgrpc
import (
"golang.org/x/net/context"
"github.com/raz-varren/sacrificial-socket/backend/ssgrpc/token"
"github.com/raz-varren/sacrificial-socket/log"
"golang.org/x/net/context"
"sync"
"time"
)

View File

@@ -3,12 +3,12 @@ package ssgrpc
import (
"encoding/json"
"errors"
"golang.org/x/net/context"
"google.golang.org/grpc/metadata"
ss "github.com/raz-varren/sacrificial-socket"
"github.com/raz-varren/sacrificial-socket/backend/ssgrpc/token"
"github.com/raz-varren/sacrificial-socket/backend/ssgrpc/transport"
"github.com/raz-varren/sacrificial-socket/log"
"golang.org/x/net/context"
"google.golang.org/grpc/metadata"
"strings"
"sync"
)

View File

@@ -2,13 +2,13 @@ package ssgrpc
import (
"encoding/json"
ss "github.com/raz-varren/sacrificial-socket"
"github.com/raz-varren/sacrificial-socket/backend/ssgrpc/transport"
"github.com/raz-varren/sacrificial-socket/log"
"golang.org/x/net/context"
"google.golang.org/grpc"
"google.golang.org/grpc/credentials"
"net"
ss "github.com/raz-varren/sacrificial-socket"
"github.com/raz-varren/sacrificial-socket/backend/ssgrpc/transport"
"github.com/raz-varren/sacrificial-socket/log"
"strings"
"sync"
"time"

View File

@@ -2,11 +2,11 @@ package ssmongo
import (
"encoding/json"
ss "github.com/raz-varren/sacrificial-socket"
"github.com/raz-varren/sacrificial-socket/log"
"gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson"
"io"
ss "github.com/raz-varren/sacrificial-socket"
"github.com/raz-varren/sacrificial-socket/log"
"sync"
"time"
)

View File

@@ -3,11 +3,11 @@ package main
import (
"encoding/json"
"flag"
"github.com/raz-varren/sacrificial-socket"
"github.com/raz-varren/sacrificial-socket/backend/ssgrpc"
"log"
"net/http"
"os"
"github.com/raz-varren/sacrificial-socket"
"github.com/raz-varren/sacrificial-socket/backend/ssgrpc"
"strings"
//"time"
)
@@ -141,7 +141,6 @@ func RoomcastJSON(s *ss.Socket, data []byte) {
s.Roomcast(r.Room, "roomcastjson", r)
}
func Broadcast(s *ss.Socket, data []byte) {
s.Broadcast("broadcast", string(data))
}

View File

@@ -2,9 +2,9 @@ package main
import (
"encoding/json"
ss "github.com/raz-varren/sacrificial-socket"
"log"
"net/http"
ss "github.com/raz-varren/sacrificial-socket"
)
func main() {

View File

@@ -8,12 +8,12 @@ Sacrificial-Socket also has a MultihomeBackend interface for syncronizing broadc
package ss
import (
"github.com/raz-varren/sacrificial-socket/log"
"golang.org/x/net/websocket"
"io"
"net/http"
"os"
"os/signal"
"github.com/raz-varren/sacrificial-socket/log"
"sync"
"syscall"
)
@@ -158,7 +158,6 @@ func (serv *SocketServer) loop(ws *websocket.Conn) {
return
}
eventName := ""
contentIdx := 0

View File

@@ -2,10 +2,10 @@ package ss_test
import (
"encoding/json"
"github.com/raz-varren/sacrificial-socket"
"log"
"net/http"
"os"
"github.com/raz-varren/sacrificial-socket"
)
func ExampleNewServer() {

View File

@@ -3,9 +3,9 @@ package ss
import (
"bytes"
"encoding/json"
"golang.org/x/net/websocket"
"github.com/raz-varren/sacrificial-socket/log"
"github.com/raz-varren/sacrificial-socket/tools"
"golang.org/x/net/websocket"
"sync"
)