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:
@ -17,7 +17,7 @@ package adapter
|
||||
import (
|
||||
"time"
|
||||
|
||||
_ "github.com/astaxie/beego/pkg/infrastructure/governor"
|
||||
_ "github.com/astaxie/beego/pkg/core/governor"
|
||||
"github.com/astaxie/beego/pkg/server/web"
|
||||
)
|
||||
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
context2 "context"
|
||||
|
||||
"github.com/astaxie/beego/pkg/adapter/session"
|
||||
newCfg "github.com/astaxie/beego/pkg/infrastructure/config"
|
||||
newCfg "github.com/astaxie/beego/pkg/core/config"
|
||||
"github.com/astaxie/beego/pkg/server/web"
|
||||
)
|
||||
|
||||
|
@ -19,7 +19,7 @@ import (
|
||||
|
||||
"github.com/pkg/errors"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/config"
|
||||
"github.com/astaxie/beego/pkg/core/config"
|
||||
)
|
||||
|
||||
type newToOldConfigerAdapter struct {
|
||||
|
@ -41,7 +41,7 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/config"
|
||||
"github.com/astaxie/beego/pkg/core/config"
|
||||
)
|
||||
|
||||
// Configer defines how to get and set value from configuration raw data.
|
||||
|
2
pkg/adapter/config/env/env.go
vendored
2
pkg/adapter/config/env/env.go
vendored
@ -17,7 +17,7 @@
|
||||
package env
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/config/env"
|
||||
"github.com/astaxie/beego/pkg/core/config/env"
|
||||
)
|
||||
|
||||
// Get returns a value by key.
|
||||
|
@ -15,7 +15,7 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/config"
|
||||
"github.com/astaxie/beego/pkg/core/config"
|
||||
)
|
||||
|
||||
// NewFakeConfig return a fake Configer
|
||||
|
@ -15,5 +15,5 @@
|
||||
package config
|
||||
|
||||
import (
|
||||
_ "github.com/astaxie/beego/pkg/infrastructure/config/json"
|
||||
_ "github.com/astaxie/beego/pkg/core/config/json"
|
||||
)
|
||||
|
@ -30,5 +30,5 @@
|
||||
package xml
|
||||
|
||||
import (
|
||||
_ "github.com/astaxie/beego/pkg/infrastructure/config/xml"
|
||||
_ "github.com/astaxie/beego/pkg/core/config/xml"
|
||||
)
|
||||
|
@ -30,5 +30,5 @@
|
||||
package yaml
|
||||
|
||||
import (
|
||||
_ "github.com/astaxie/beego/pkg/infrastructure/config/yaml"
|
||||
_ "github.com/astaxie/beego/pkg/core/config/yaml"
|
||||
)
|
||||
|
@ -17,9 +17,9 @@ package adapter
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/logs"
|
||||
"github.com/astaxie/beego/pkg/core/logs"
|
||||
|
||||
webLog "github.com/astaxie/beego/pkg/infrastructure/logs"
|
||||
webLog "github.com/astaxie/beego/pkg/core/logs"
|
||||
)
|
||||
|
||||
// Log levels to control the logging output.
|
||||
|
@ -24,7 +24,7 @@ import (
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
|
||||
"github.com/astaxie/beego/pkg"
|
||||
"github.com/astaxie/beego/pkg/infrastructure/logs"
|
||||
"github.com/astaxie/beego/pkg/core/logs"
|
||||
"github.com/astaxie/beego/pkg/server/web"
|
||||
)
|
||||
|
||||
|
@ -60,7 +60,7 @@ import (
|
||||
|
||||
"github.com/astaxie/beego/pkg/client/orm"
|
||||
"github.com/astaxie/beego/pkg/client/orm/hints"
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils"
|
||||
"github.com/astaxie/beego/pkg/core/utils"
|
||||
)
|
||||
|
||||
// DebugQueries define the debug
|
||||
|
@ -37,7 +37,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/pkg/adapter/session"
|
||||
beecb "github.com/astaxie/beego/pkg/infrastructure/session/couchbase"
|
||||
beecb "github.com/astaxie/beego/pkg/core/session/couchbase"
|
||||
)
|
||||
|
||||
// SessionStore store each session
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/pkg/adapter/session"
|
||||
beeLedis "github.com/astaxie/beego/pkg/infrastructure/session/ledis"
|
||||
beeLedis "github.com/astaxie/beego/pkg/core/session/ledis"
|
||||
)
|
||||
|
||||
// SessionStore ledis session store
|
||||
|
@ -38,7 +38,7 @@ import (
|
||||
|
||||
"github.com/astaxie/beego/pkg/adapter/session"
|
||||
|
||||
beemem "github.com/astaxie/beego/pkg/infrastructure/session/memcache"
|
||||
beemem "github.com/astaxie/beego/pkg/core/session/memcache"
|
||||
)
|
||||
|
||||
// SessionStore memcache session store
|
||||
|
@ -45,7 +45,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/pkg/adapter/session"
|
||||
"github.com/astaxie/beego/pkg/infrastructure/session/mysql"
|
||||
"github.com/astaxie/beego/pkg/core/session/mysql"
|
||||
|
||||
// import mysql driver
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
|
@ -58,7 +58,7 @@ import (
|
||||
// import postgresql Driver
|
||||
_ "github.com/lib/pq"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/session/postgres"
|
||||
"github.com/astaxie/beego/pkg/core/session/postgres"
|
||||
)
|
||||
|
||||
// SessionStore postgresql session store
|
||||
|
@ -17,7 +17,7 @@ package session
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/session"
|
||||
"github.com/astaxie/beego/pkg/core/session"
|
||||
)
|
||||
|
||||
type oldToNewProviderAdapter struct {
|
||||
|
@ -38,7 +38,7 @@ import (
|
||||
|
||||
"github.com/astaxie/beego/pkg/adapter/session"
|
||||
|
||||
beeRedis "github.com/astaxie/beego/pkg/infrastructure/session/redis"
|
||||
beeRedis "github.com/astaxie/beego/pkg/core/session/redis"
|
||||
)
|
||||
|
||||
// MaxPoolSize redis max pool size
|
||||
|
@ -37,7 +37,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/pkg/adapter/session"
|
||||
cluster "github.com/astaxie/beego/pkg/infrastructure/session/redis_cluster"
|
||||
cluster "github.com/astaxie/beego/pkg/core/session/redis_cluster"
|
||||
)
|
||||
|
||||
// MaxPoolSize redis_cluster max pool size
|
||||
|
@ -38,7 +38,7 @@ import (
|
||||
|
||||
"github.com/astaxie/beego/pkg/adapter/session"
|
||||
|
||||
sentinel "github.com/astaxie/beego/pkg/infrastructure/session/redis_sentinel"
|
||||
sentinel "github.com/astaxie/beego/pkg/core/session/redis_sentinel"
|
||||
)
|
||||
|
||||
// DefaultPoolSize redis_sentinel default pool size
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/session"
|
||||
"github.com/astaxie/beego/pkg/core/session"
|
||||
)
|
||||
|
||||
// CookieSessionStore Cookie SessionStore
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/session"
|
||||
"github.com/astaxie/beego/pkg/core/session"
|
||||
)
|
||||
|
||||
// FileSessionStore File session store
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/session"
|
||||
"github.com/astaxie/beego/pkg/core/session"
|
||||
)
|
||||
|
||||
// MemSessionStore memory session store.
|
||||
|
@ -15,7 +15,7 @@
|
||||
package session
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/session"
|
||||
"github.com/astaxie/beego/pkg/core/session"
|
||||
)
|
||||
|
||||
// EncodeGob encode the obj to gob
|
||||
|
@ -32,7 +32,7 @@ import (
|
||||
"net/http"
|
||||
"os"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/session"
|
||||
"github.com/astaxie/beego/pkg/core/session"
|
||||
)
|
||||
|
||||
// Store contains all data for one session process with specific id.
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
|
||||
"github.com/astaxie/beego/pkg/adapter/session"
|
||||
|
||||
beeSsdb "github.com/astaxie/beego/pkg/infrastructure/session/ssdb"
|
||||
beeSsdb "github.com/astaxie/beego/pkg/core/session/ssdb"
|
||||
)
|
||||
|
||||
// Provider holds ssdb client and configs
|
||||
|
@ -18,7 +18,7 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/session"
|
||||
"github.com/astaxie/beego/pkg/core/session"
|
||||
)
|
||||
|
||||
type NewToOldStoreAdapter struct {
|
||||
|
@ -31,7 +31,7 @@
|
||||
package toolbox
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/governor"
|
||||
"github.com/astaxie/beego/pkg/core/governor"
|
||||
)
|
||||
|
||||
// AdminCheckList holds health checker map
|
||||
|
@ -19,7 +19,7 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/governor"
|
||||
"github.com/astaxie/beego/pkg/core/governor"
|
||||
)
|
||||
|
||||
var startTime = time.Now()
|
||||
|
@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils"
|
||||
"github.com/astaxie/beego/pkg/core/utils"
|
||||
)
|
||||
|
||||
// GetFuncName get function name
|
||||
|
@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils"
|
||||
"github.com/astaxie/beego/pkg/core/utils"
|
||||
)
|
||||
|
||||
// Display print the data in console
|
||||
|
@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils"
|
||||
"github.com/astaxie/beego/pkg/core/utils"
|
||||
)
|
||||
|
||||
// SelfPath gets compiled executable file absolute path
|
||||
|
@ -17,7 +17,7 @@ package utils
|
||||
import (
|
||||
"io"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils"
|
||||
"github.com/astaxie/beego/pkg/core/utils"
|
||||
)
|
||||
|
||||
// Email is the type used for email messages
|
||||
|
@ -17,7 +17,7 @@ package pagination
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils/pagination"
|
||||
"github.com/astaxie/beego/pkg/core/utils/pagination"
|
||||
)
|
||||
|
||||
// Paginator within the state of a http request.
|
||||
|
@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils"
|
||||
"github.com/astaxie/beego/pkg/core/utils"
|
||||
)
|
||||
|
||||
// RandomCreateBytes generate random []byte by specify chars.
|
||||
|
@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils"
|
||||
"github.com/astaxie/beego/pkg/core/utils"
|
||||
)
|
||||
|
||||
// BeeMap is a map with lock
|
||||
|
@ -15,7 +15,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils"
|
||||
"github.com/astaxie/beego/pkg/core/utils"
|
||||
)
|
||||
|
||||
type reducetype func(interface{}) interface{}
|
||||
|
@ -1,7 +1,7 @@
|
||||
package utils
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/pkg/infrastructure/utils"
|
||||
"github.com/astaxie/beego/pkg/core/utils"
|
||||
)
|
||||
|
||||
// GetGOPATHs returns all paths in GOPATH variable.
|
||||
|
@ -17,7 +17,7 @@ package validation
|
||||
import (
|
||||
"reflect"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/validation"
|
||||
"github.com/astaxie/beego/pkg/core/validation"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -50,7 +50,7 @@ import (
|
||||
"fmt"
|
||||
"regexp"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/validation"
|
||||
"github.com/astaxie/beego/pkg/core/validation"
|
||||
)
|
||||
|
||||
// ValidFormer valid interface
|
||||
|
@ -17,7 +17,7 @@ package validation
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"github.com/astaxie/beego/pkg/infrastructure/validation"
|
||||
"github.com/astaxie/beego/pkg/core/validation"
|
||||
)
|
||||
|
||||
// CanSkipFuncs will skip valid if RequiredFirst is true and the struct field's value is empty
|
||||
|
Reference in New Issue
Block a user