Browse Source

rename go-ricochet to libricochet-go

pull/60/head
Dan Ballard 3 years ago
parent
commit
cf80207f77
  1. 2
      model/group.go
  2. 2
      model/profile.go
  3. 9
      peer/connections/peerpeerconnection.go
  4. 10
      peer/connections/peerpeerconnection_test.go
  5. 10
      peer/connections/peerserverconnection.go
  6. 10
      peer/connections/peerserverconnection_test.go
  7. 6
      peer/cwtch_peer.go
  8. 6
      peer/fetch/peer_fetch_channel.go
  9. 4
      peer/fetch/peer_fetch_channel_test.go
  10. 6
      peer/listen/peer_listen_channel.go
  11. 4
      peer/listen/peer_listen_channel_test.go
  12. 6
      peer/peer/peer_channel.go
  13. 4
      peer/peer/peer_channel_test.go
  14. 6
      peer/send/peer_send_channel.go
  15. 4
      peer/send/peer_send_channel_test.go
  16. 2
      protocol/group_message.pb.go
  17. 4
      protocol/spam/spamguard.go
  18. 2
      protocol/spam/spamguard_test.go
  19. 6
      server/fetch/server_fetch_channel.go
  20. 4
      server/fetch/server_fetch_channel_test.go
  21. 6
      server/listen/server_listen_channel.go
  22. 4
      server/listen/server_listen_channel_test.go
  23. 4
      server/send/server_send_channel.go
  24. 4
      server/send/server_send_channel_test.go
  25. 4
      server/server.go
  26. 2
      server/serverConfig.go
  27. 4
      server/server_instance.go
  28. 2
      server/server_instance_test.go
  29. 2
      testing/cwtch_peer_server_intergration_test.go

2
model/group.go

@ -6,7 +6,7 @@ import (
"errors"
"fmt"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"golang.org/x/crypto/nacl/secretbox"
"io"
"sync"

2
model/profile.go

@ -7,7 +7,7 @@ import (
"encoding/asn1"
"errors"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"golang.org/x/crypto/ed25519"
"io"
"strconv"

9
peer/connections/peerpeerconnection.go

@ -3,11 +3,10 @@ package connections
import (
"cwtch.im/cwtch/peer/peer"
"cwtch.im/cwtch/protocol"
"github.com/s-rah/go-ricochet"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/connection"
"github.com/s-rah/go-ricochet/identity"
//"github.com/s-rah/go-ricochet/utils"
"git.openprivacy.ca/openprivacy/libricochet-go"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/connection"
"git.openprivacy.ca/openprivacy/libricochet-go/identity"
"cwtch.im/cwtch/model"
"log"
"time"

10
peer/connections/peerpeerconnection_test.go

@ -5,11 +5,11 @@ import (
"cwtch.im/cwtch/model"
"cwtch.im/cwtch/peer/peer"
"cwtch.im/cwtch/protocol"
"github.com/s-rah/go-ricochet"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/connection"
"github.com/s-rah/go-ricochet/identity"
"github.com/s-rah/go-ricochet/utils"
"git.openprivacy.ca/openprivacy/libricochet-go"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/connection"
"git.openprivacy.ca/openprivacy/libricochet-go/identity"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"net"
"testing"
"time"

10
peer/connections/peerserverconnection.go

@ -6,11 +6,11 @@ import (
"cwtch.im/cwtch/peer/send"
"cwtch.im/cwtch/protocol"
"errors"
"github.com/s-rah/go-ricochet"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/connection"
"github.com/s-rah/go-ricochet/identity"
"github.com/s-rah/go-ricochet/utils"
"git.openprivacy.ca/openprivacy/libricochet-go"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/connection"
"git.openprivacy.ca/openprivacy/libricochet-go/identity"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"log"
"time"
)

10
peer/connections/peerserverconnection_test.go

@ -5,11 +5,11 @@ import (
"cwtch.im/cwtch/protocol"
"cwtch.im/cwtch/server/fetch"
"cwtch.im/cwtch/server/send"
"github.com/s-rah/go-ricochet"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/connection"
"github.com/s-rah/go-ricochet/identity"
"github.com/s-rah/go-ricochet/utils"
"git.openprivacy.ca/openprivacy/libricochet-go"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/connection"
"git.openprivacy.ca/openprivacy/libricochet-go/identity"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"net"
"testing"
"time"

6
peer/cwtch_peer.go

@ -10,9 +10,9 @@ import (
"encoding/json"
"errors"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/application"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/connection"
"git.openprivacy.ca/openprivacy/libricochet-go/application"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/connection"
"golang.org/x/crypto/ed25519"
"io/ioutil"
"log"

6
peer/fetch/peer_fetch_channel.go

@ -4,9 +4,9 @@ import (
"cwtch.im/cwtch/protocol"
"errors"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/utils"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
)
// CwtchPeerFetchChannel is the peer implementation of the im.cwtch.server.fetch

4
peer/fetch/peer_fetch_channel_test.go

@ -3,8 +3,8 @@ package fetch
import (
"cwtch.im/cwtch/protocol"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"testing"
"time"
)

6
peer/listen/peer_listen_channel.go

@ -4,9 +4,9 @@ import (
"cwtch.im/cwtch/protocol"
"errors"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/utils"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
)
// CwtchPeerListenChannel is the peer implementation of im.cwtch.server.listen

4
peer/listen/peer_listen_channel_test.go

@ -3,8 +3,8 @@ package listen
import (
"cwtch.im/cwtch/protocol"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"testing"
"time"
)

6
peer/peer/peer_channel.go

@ -3,9 +3,9 @@ package peer
import (
"cwtch.im/cwtch/protocol"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/utils"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"log"
)

4
peer/peer/peer_channel_test.go

@ -3,8 +3,8 @@ package peer
import (
"cwtch.im/cwtch/protocol"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"testing"
)

6
peer/send/peer_send_channel.go

@ -5,9 +5,9 @@ import (
"cwtch.im/cwtch/protocol/spam"
"errors"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/utils"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
)
// CwtchPeerSendChannel is the peer implementation of im.cwtch.server.send

4
peer/send/peer_send_channel_test.go

@ -4,8 +4,8 @@ import (
"cwtch.im/cwtch/protocol"
"cwtch.im/cwtch/protocol/spam"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"testing"
)

2
protocol/group_message.pb.go

@ -6,7 +6,7 @@ package protocol
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import control "github.com/s-rah/go-ricochet/wire/control"
import control "git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal

4
protocol/spam/spamguard.go

@ -5,8 +5,8 @@ import (
"crypto/sha256"
"cwtch.im/cwtch/protocol"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/utils"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"io"
//"fmt"
)

2
protocol/spam/spamguard_test.go

@ -3,7 +3,7 @@ package spam
import (
"cwtch.im/cwtch/protocol"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"testing"
)

6
server/fetch/server_fetch_channel.go

@ -4,9 +4,9 @@ import (
"cwtch.im/cwtch/protocol"
"errors"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/utils"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
)
// CwtchServerFetchChannel implements the ChannelHandler interface for a channel of

4
server/fetch/server_fetch_channel_test.go

@ -3,8 +3,8 @@ package fetch
import (
"cwtch.im/cwtch/protocol"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"testing"
)

6
server/listen/server_listen_channel.go

@ -4,9 +4,9 @@ import (
"cwtch.im/cwtch/protocol"
"errors"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/utils"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
)
// CwtchServerListenChannel implements the ChannelHandler interface for a channel of

4
server/listen/server_listen_channel_test.go

@ -3,8 +3,8 @@ package listen
import (
"cwtch.im/cwtch/protocol"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"testing"
)

4
server/send/server_send_channel.go

@ -5,8 +5,8 @@ import (
"cwtch.im/cwtch/protocol/spam"
"errors"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"log"
)

4
server/send/server_send_channel_test.go

@ -4,8 +4,8 @@ import (
"cwtch.im/cwtch/protocol"
"cwtch.im/cwtch/protocol/spam"
"github.com/golang/protobuf/proto"
"github.com/s-rah/go-ricochet/channels"
"github.com/s-rah/go-ricochet/wire/control"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/wire/control"
"testing"
)

4
server/server.go

@ -5,8 +5,8 @@ import (
"cwtch.im/cwtch/server/listen"
"cwtch.im/cwtch/server/send"
"cwtch.im/cwtch/storage"
"github.com/s-rah/go-ricochet/application"
"github.com/s-rah/go-ricochet/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/application"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
"log"
)

2
server/serverConfig.go

@ -3,7 +3,7 @@ package server
import (
"crypto/rsa"
"encoding/json"
"github.com/s-rah/go-ricochet/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"io/ioutil"
"log"
"sync"

4
server/server_instance.go

@ -4,8 +4,8 @@ import (
"cwtch.im/cwtch/protocol"
"cwtch.im/cwtch/server/listen"
"cwtch.im/cwtch/storage"
"github.com/s-rah/go-ricochet/application"
"github.com/s-rah/go-ricochet/channels"
"git.openprivacy.ca/openprivacy/libricochet-go/application"
"git.openprivacy.ca/openprivacy/libricochet-go/channels"
)
// Instance encapsulates the Ricochet application.

2
server/server_instance_test.go

@ -3,7 +3,7 @@ package server
import (
"cwtch.im/cwtch/protocol"
"cwtch.im/cwtch/storage"
"github.com/s-rah/go-ricochet/application"
"git.openprivacy.ca/openprivacy/libricochet-go/application"
"os"
"testing"
"time"

2
testing/cwtch_peer_server_intergration_test.go

@ -7,7 +7,7 @@ import (
"cwtch.im/cwtch/peer/connections"
cwtchserver "cwtch.im/cwtch/server"
"fmt"
"github.com/s-rah/go-ricochet/utils"
"git.openprivacy.ca/openprivacy/libricochet-go/utils"
"golang.org/x/net/proxy"
"io/ioutil"
"log"

Loading…
Cancel
Save