moved internal/protocol -> cnet/protocol

This commit is contained in:
CPunch 2023-12-01 19:56:23 -06:00
parent b07e9ddbcb
commit 557117f093
20 changed files with 16 additions and 16 deletions

View File

@ -9,7 +9,7 @@ import (
"net" "net"
"sync/atomic" "sync/atomic"
"github.com/CPunch/gopenfusion/internal/protocol" "github.com/CPunch/gopenfusion/cnet/protocol"
) )
const ( const (

View File

@ -4,7 +4,7 @@ import (
"bytes" "bytes"
"testing" "testing"
"github.com/CPunch/gopenfusion/internal/protocol" "github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/matryer/is" "github.com/matryer/is"
) )

View File

@ -10,8 +10,8 @@ import (
"strconv" "strconv"
"sync" "sync"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/config" "github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/protocol"
) )
type PacketHandler func(peer *Peer, pkt protocol.Packet) error type PacketHandler func(peer *Peer, pkt protocol.Packet) error

View File

@ -11,7 +11,7 @@ import (
"time" "time"
"github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol" "github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/matryer/is" "github.com/matryer/is"
) )

View File

@ -6,7 +6,7 @@ import (
"golang.org/x/crypto/bcrypt" "golang.org/x/crypto/bcrypt"
"github.com/CPunch/gopenfusion/internal/protocol" "github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/georgysavva/scany/v2/sqlscan" "github.com/georgysavva/scany/v2/sqlscan"
) )

View File

@ -8,8 +8,8 @@ import (
"github.com/matryer/is" "github.com/matryer/is"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/internal/db" "github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/bitcomplete/sqltestutil" "github.com/bitcomplete/sqltestutil"
) )

View File

@ -3,7 +3,7 @@ package db
import ( import (
"database/sql" "database/sql"
"github.com/CPunch/gopenfusion/internal/protocol" "github.com/CPunch/gopenfusion/cnet/protocol"
) )
type Inventory struct { type Inventory struct {

View File

@ -3,8 +3,8 @@ package db
import ( import (
"database/sql" "database/sql"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/config" "github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/blockloop/scan" "github.com/blockloop/scan"
) )

View File

@ -8,9 +8,9 @@ import (
"math/rand" "math/rand"
"github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/config" "github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/db" "github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/internal/redis" "github.com/CPunch/gopenfusion/internal/redis"
"github.com/CPunch/gopenfusion/util" "github.com/CPunch/gopenfusion/util"
) )

View File

@ -4,8 +4,8 @@ import (
"context" "context"
"github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/internal/db" "github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/internal/redis" "github.com/CPunch/gopenfusion/internal/redis"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol" "github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/shard/entity" "github.com/CPunch/gopenfusion/shard/entity"
) )

View File

@ -4,7 +4,7 @@ import (
"sync/atomic" "sync/atomic"
"github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol" "github.com/CPunch/gopenfusion/cnet/protocol"
) )
type NPC struct { type NPC struct {

View File

@ -2,8 +2,8 @@ package entity
import ( import (
"github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/internal/db" "github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
) )
type Player struct { type Player struct {

View File

@ -5,7 +5,7 @@ import (
"log" "log"
"github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol" "github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/internal/redis" "github.com/CPunch/gopenfusion/internal/redis"
"github.com/CPunch/gopenfusion/shard/entity" "github.com/CPunch/gopenfusion/shard/entity"
"github.com/CPunch/gopenfusion/util" "github.com/CPunch/gopenfusion/util"

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/internal/protocol" "github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/shard/entity" "github.com/CPunch/gopenfusion/shard/entity"
"github.com/CPunch/gopenfusion/util" "github.com/CPunch/gopenfusion/util"
) )

View File

@ -4,9 +4,9 @@ import (
"context" "context"
"github.com/CPunch/gopenfusion/cnet" "github.com/CPunch/gopenfusion/cnet"
"github.com/CPunch/gopenfusion/cnet/protocol"
"github.com/CPunch/gopenfusion/config" "github.com/CPunch/gopenfusion/config"
"github.com/CPunch/gopenfusion/internal/db" "github.com/CPunch/gopenfusion/internal/db"
"github.com/CPunch/gopenfusion/internal/protocol"
"github.com/CPunch/gopenfusion/internal/redis" "github.com/CPunch/gopenfusion/internal/redis"
"github.com/CPunch/gopenfusion/shard/entity" "github.com/CPunch/gopenfusion/shard/entity"
) )