Merge pull request #115 from 9seconds/gogettable

Make mtg go-gettable
This commit is contained in:
Sergey Arkhipov
2019-11-19 11:55:33 +03:00
committed by GitHub
53 changed files with 145 additions and 125 deletions
+4 -4
View File
@@ -7,10 +7,10 @@ import (
"go.uber.org/zap"
"mtg/conntypes"
"mtg/mtproto"
"mtg/mtproto/rpc"
"mtg/protocol"
"github.com/9seconds/mtg/conntypes"
"github.com/9seconds/mtg/mtproto"
"github.com/9seconds/mtg/mtproto/rpc"
"github.com/9seconds/mtg/protocol"
)
type connection struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"sort"
"mtg/config"
"github.com/9seconds/mtg/config"
)
type connectionList struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"sync"
"mtg/protocol"
"github.com/9seconds/mtg/protocol"
)
type hub struct {
+1 -1
View File
@@ -1,6 +1,6 @@
package hub
import "mtg/protocol"
import "github.com/9seconds/mtg/protocol"
type Interface interface {
Register(*protocol.TelegramRequest) (*ProxyConn, error)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"time"
"mtg/conntypes"
"mtg/protocol"
"github.com/9seconds/mtg/conntypes"
"github.com/9seconds/mtg/protocol"
)
const muxGCEvery = time.Minute
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"sync"
"time"
"mtg/conntypes"
"mtg/mtproto/rpc"
"mtg/protocol"
"github.com/9seconds/mtg/conntypes"
"github.com/9seconds/mtg/mtproto/rpc"
"github.com/9seconds/mtg/protocol"
)
const (