fix: 将外部需要使用的packer和log移出来

main v0.1.1
NorthLan 2 years ago
parent dfbc5cbd63
commit b7f7d79ce4

@ -3,9 +3,9 @@ package core
import (
"errors"
"fmt"
"git.noahlan.cn/northlan/nnet/internal/log"
"git.noahlan.cn/northlan/nnet/internal/packet"
"git.noahlan.cn/northlan/nnet/internal/pool"
"git.noahlan.cn/northlan/nnet/log"
"git.noahlan.cn/northlan/nnet/packet"
"git.noahlan.cn/northlan/nnet/scheduler"
"git.noahlan.cn/northlan/nnet/session"
"net"

@ -2,9 +2,9 @@ package core
import (
"errors"
"git.noahlan.cn/northlan/nnet/internal/log"
"git.noahlan.cn/northlan/nnet/internal/packet"
"git.noahlan.cn/northlan/nnet/internal/pool"
"git.noahlan.cn/northlan/nnet/log"
"git.noahlan.cn/northlan/nnet/packet"
"git.noahlan.cn/northlan/nnet/scheduler"
"git.noahlan.cn/northlan/nnet/serialize"
"git.noahlan.cn/northlan/nnet/session"

@ -2,8 +2,8 @@ package core
import (
"errors"
"git.noahlan.cn/northlan/nnet/internal/log"
"git.noahlan.cn/northlan/nnet/internal/packet"
"git.noahlan.cn/northlan/nnet/log"
"git.noahlan.cn/northlan/nnet/packet"
)
type nNetRouter struct {

@ -1,6 +1,6 @@
package core
import "git.noahlan.cn/northlan/nnet/internal/packet"
import "git.noahlan.cn/northlan/nnet/packet"
type (
Processor interface {

@ -4,8 +4,8 @@ import (
"encoding/json"
"errors"
"fmt"
"git.noahlan.cn/northlan/nnet/internal/log"
"git.noahlan.cn/northlan/nnet/internal/packet"
"git.noahlan.cn/northlan/nnet/log"
"git.noahlan.cn/northlan/nnet/packet"
"time"
)

@ -2,8 +2,8 @@ package core
import (
"git.noahlan.cn/northlan/nnet/internal/env"
"git.noahlan.cn/northlan/nnet/internal/log"
"git.noahlan.cn/northlan/nnet/internal/packet"
"git.noahlan.cn/northlan/nnet/log"
"git.noahlan.cn/northlan/nnet/packet"
"git.noahlan.cn/northlan/nnet/serialize"
"net/http"
"time"

@ -2,8 +2,8 @@ package core
import (
"fmt"
"git.noahlan.cn/northlan/nnet/internal/log"
"git.noahlan.cn/northlan/nnet/internal/packet"
"git.noahlan.cn/northlan/nnet/log"
"git.noahlan.cn/northlan/nnet/packet"
"testing"
"time"
)

@ -1,6 +1,6 @@
package core
import "git.noahlan.cn/northlan/nnet/internal/packet"
import "git.noahlan.cn/northlan/nnet/packet"
type (
Handler interface {

@ -2,7 +2,7 @@ package scheduler
import (
"git.noahlan.cn/northlan/nnet/internal/env"
"git.noahlan.cn/northlan/nnet/internal/log"
"git.noahlan.cn/northlan/nnet/log"
"runtime/debug"
"sync/atomic"
"time"

@ -1,7 +1,7 @@
package scheduler
import (
"git.noahlan.cn/northlan/nnet/internal/log"
"git.noahlan.cn/northlan/nnet/log"
"math"
"runtime/debug"
"sync"

@ -2,7 +2,7 @@ package json
import (
"encoding/json"
"git.noahlan.cn/northlan/nnet/core/serialize"
"git.noahlan.cn/northlan/nnet/serialize"
)
type Serializer struct{}

@ -2,7 +2,7 @@ package protobuf
import (
"errors"
"git.noahlan.cn/northlan/nnet/core/serialize"
"git.noahlan.cn/northlan/nnet/serialize"
"google.golang.org/protobuf/proto"
)

Loading…
Cancel
Save