1
0
mirror of https://github.com/astaxie/beego.git synced 2025-06-14 18:10:39 +00:00

rename infrastructure to core

This commit is contained in:
Ming Deng
2020-10-05 18:13:26 +08:00
parent ff7a8b966b
commit 48e98482f7
190 changed files with 129 additions and 130 deletions

View File

@ -20,7 +20,7 @@ import (
"reflect"
"time"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/core/logs"
)
// BeeAdminApp is the default adminApp used by admin module.

View File

@ -24,7 +24,7 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/astaxie/beego/pkg/infrastructure/governor"
"github.com/astaxie/beego/pkg/core/governor"
)
type adminController struct {

View File

@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/astaxie/beego/pkg/infrastructure/governor"
"github.com/astaxie/beego/pkg/core/governor"
)
type SampleDatabaseCheck struct {

View File

@ -67,9 +67,9 @@ import (
"strings"
"time"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/core/logs"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
"github.com/astaxie/beego/pkg/server/web"
"github.com/astaxie/beego/pkg/server/web/context"
)

View File

@ -17,7 +17,7 @@ package captcha
import (
"testing"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
)
type byteCounter struct {

View File

@ -25,11 +25,11 @@ import (
"strings"
"github.com/astaxie/beego/pkg"
"github.com/astaxie/beego/pkg/infrastructure/config"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/infrastructure/session"
"github.com/astaxie/beego/pkg/core/config"
"github.com/astaxie/beego/pkg/core/logs"
"github.com/astaxie/beego/pkg/core/session"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
"github.com/astaxie/beego/pkg/server/web/context"
)

View File

@ -19,7 +19,7 @@ import (
"reflect"
"testing"
beeJson "github.com/astaxie/beego/pkg/infrastructure/config/json"
beeJson "github.com/astaxie/beego/pkg/core/config/json"
)
func TestDefaults(t *testing.T) {

View File

@ -35,7 +35,7 @@ import (
"strings"
"time"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
)
// Commonly used mime-types

View File

@ -29,7 +29,7 @@ import (
"strings"
"sync"
"github.com/astaxie/beego/pkg/infrastructure/session"
"github.com/astaxie/beego/pkg/core/session"
)
// Regexes for checking the accept headers

View File

@ -4,7 +4,7 @@ import (
"fmt"
"reflect"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/core/logs"
beecontext "github.com/astaxie/beego/pkg/server/web/context"
)

View File

@ -28,7 +28,7 @@ import (
"strconv"
"strings"
"github.com/astaxie/beego/pkg/infrastructure/session"
"github.com/astaxie/beego/pkg/core/session"
"github.com/astaxie/beego/pkg/server/web/context"
"github.com/astaxie/beego/pkg/server/web/context/param"

View File

@ -24,7 +24,7 @@ import (
"strings"
"github.com/astaxie/beego/pkg"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
"github.com/astaxie/beego/pkg/server/web/context"
)

View File

@ -7,8 +7,8 @@ import (
"net/http"
"path/filepath"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/infrastructure/session"
"github.com/astaxie/beego/pkg/core/logs"
"github.com/astaxie/beego/pkg/core/session"
"github.com/astaxie/beego/pkg/server/web/context"
)

View File

@ -15,7 +15,7 @@
package pagination
import (
"github.com/astaxie/beego/pkg/infrastructure/utils/pagination"
"github.com/astaxie/beego/pkg/core/utils/pagination"
"github.com/astaxie/beego/pkg/server/web/context"
)

View File

@ -31,9 +31,9 @@ import (
"golang.org/x/tools/go/packages"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/core/logs"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
"github.com/astaxie/beego/pkg/server/web/context/param"
)

View File

@ -25,9 +25,9 @@ import (
"sync"
"time"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/core/logs"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
beecontext "github.com/astaxie/beego/pkg/server/web/context"
"github.com/astaxie/beego/pkg/server/web/context/param"
)

View File

@ -21,7 +21,7 @@ import (
"strings"
"testing"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/core/logs"
"github.com/astaxie/beego/pkg/server/web/context"
)

View File

@ -31,10 +31,10 @@ import (
"golang.org/x/crypto/acme/autocert"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/core/logs"
beecontext "github.com/astaxie/beego/pkg/server/web/context"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
"github.com/astaxie/beego/pkg/server/web/grace"
)

View File

@ -26,7 +26,7 @@ import (
"sync"
"time"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/core/logs"
lru "github.com/hashicorp/golang-lru"
"github.com/astaxie/beego/pkg/server/web/context"

View File

@ -19,7 +19,7 @@ import (
"sync"
"time"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
)
// Statistics struct

View File

@ -27,8 +27,8 @@ import (
"strings"
"sync"
"github.com/astaxie/beego/pkg/infrastructure/logs"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/logs"
"github.com/astaxie/beego/pkg/core/utils"
)
var (

View File

@ -19,7 +19,7 @@ import (
"regexp"
"strings"
"github.com/astaxie/beego/pkg/infrastructure/utils"
"github.com/astaxie/beego/pkg/core/utils"
"github.com/astaxie/beego/pkg/server/web/context"
)