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

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

@ -3,9 +3,9 @@ package core
import ( import (
"errors" "errors"
"fmt" "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/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/scheduler"
"git.noahlan.cn/northlan/nnet/session" "git.noahlan.cn/northlan/nnet/session"
"net" "net"

@ -2,9 +2,9 @@ package core
import ( import (
"errors" "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/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/scheduler"
"git.noahlan.cn/northlan/nnet/serialize" "git.noahlan.cn/northlan/nnet/serialize"
"git.noahlan.cn/northlan/nnet/session" "git.noahlan.cn/northlan/nnet/session"

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

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

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

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

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

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

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

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

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

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

Loading…
Cancel
Save