Move synclive to sync3

This commit is contained in:
Kegan Dougal 2021-10-05 16:22:02 +01:00
parent c33760d6d9
commit e20a8ad067
16 changed files with 18 additions and 18 deletions

View File

@ -9,7 +9,7 @@ import (
syncv3 "github.com/matrix-org/sync-v3"
"github.com/matrix-org/sync-v3/sync2"
"github.com/matrix-org/sync-v3/synclive"
"github.com/matrix-org/sync-v3/sync3"
)
var (
@ -30,7 +30,7 @@ func main() {
panic(err)
}
}()
h, err := synclive.NewSyncLiveHandler(&sync2.HTTPClient{
h, err := sync3.NewSync3Handler(&sync2.HTTPClient{
Client: &http.Client{
Timeout: 5 * time.Minute,
},

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"context"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"context"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"encoding/json"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"context"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"bytes"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"encoding/json"
@ -33,7 +33,7 @@ type SyncLiveHandler struct {
ConnMap *ConnMap
}
func NewSyncLiveHandler(v2Client sync2.Client, postgresDBURI string) (*SyncLiveHandler, error) {
func NewSync3Handler(v2Client sync2.Client, postgresDBURI string) (*SyncLiveHandler, error) {
sh := &SyncLiveHandler{
V2: v2Client,
Storage: state.NewStorage(postgresDBURI),

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"os"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import "math"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"reflect"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"bytes"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"reflect"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
type Response struct {
Ops []ResponseOp `json:"ops"`

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"encoding/json"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"sync"

View File

@ -1,4 +1,4 @@
package synclive
package sync3
import (
"sort"