mirror of
https://github.com/astaxie/beego.git
synced 2024-12-19 05:40:51 +00:00
dictinct system pkg and third pkg
This commit is contained in:
parent
983f20642c
commit
3c91360d72
3
admin.go
3
admin.go
@ -2,9 +2,10 @@ package beego
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/astaxie/beego/toolbox"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/astaxie/beego/toolbox"
|
||||
)
|
||||
|
||||
var BeeAdminApp *AdminApp
|
||||
|
3
app.go
3
app.go
@ -2,11 +2,12 @@ package beego
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/astaxie/beego/context"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/http/fcgi"
|
||||
"time"
|
||||
|
||||
"github.com/astaxie/beego/context"
|
||||
)
|
||||
|
||||
type FilterFunc func(*context.Context)
|
||||
|
1
cache/memcache.go
vendored
1
cache/memcache.go
vendored
@ -3,6 +3,7 @@ package cache
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
|
||||
"github.com/beego/memcache"
|
||||
)
|
||||
|
||||
|
1
cache/redis.go
vendored
1
cache/redis.go
vendored
@ -3,6 +3,7 @@ package cache
|
||||
import (
|
||||
"encoding/json"
|
||||
"errors"
|
||||
|
||||
"github.com/beego/redigo/redis"
|
||||
)
|
||||
|
||||
|
@ -26,7 +26,6 @@ var (
|
||||
HttpKeyFile string
|
||||
RecoverPanic bool
|
||||
AutoRender bool
|
||||
PprofOn bool
|
||||
ViewsPath string
|
||||
RunMode string //"dev" or "prod"
|
||||
AppConfig config.ConfigContainer
|
||||
@ -71,7 +70,6 @@ func InitConfig() {
|
||||
RunMode = "dev" //default runmod
|
||||
AutoRender = true
|
||||
RecoverPanic = true
|
||||
PprofOn = false
|
||||
ViewsPath = "views"
|
||||
SessionOn = false
|
||||
SessionProvider = "memory"
|
||||
|
@ -4,11 +4,12 @@ package config
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"github.com/beego/x2j"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strconv"
|
||||
"sync"
|
||||
|
||||
"github.com/beego/x2j"
|
||||
)
|
||||
|
||||
type XMLConfig struct {
|
||||
|
@ -4,11 +4,12 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"errors"
|
||||
"github.com/beego/goyaml2"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/beego/goyaml2"
|
||||
)
|
||||
|
||||
type YAMLConfig struct {
|
||||
|
@ -1,8 +1,9 @@
|
||||
package context
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/middleware"
|
||||
"net/http"
|
||||
|
||||
"github.com/astaxie/beego/middleware"
|
||||
)
|
||||
|
||||
type Context struct {
|
||||
|
@ -2,11 +2,12 @@ package context
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"github.com/astaxie/beego/session"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/astaxie/beego/session"
|
||||
)
|
||||
|
||||
type BeegoInput struct {
|
||||
|
@ -7,8 +7,6 @@ import (
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
"fmt"
|
||||
"github.com/astaxie/beego/context"
|
||||
"github.com/astaxie/beego/session"
|
||||
"html/template"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
@ -20,6 +18,9 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/astaxie/beego/context"
|
||||
"github.com/astaxie/beego/session"
|
||||
)
|
||||
|
||||
type Controller struct {
|
||||
|
@ -1,10 +1,11 @@
|
||||
package beego
|
||||
|
||||
import (
|
||||
"github.com/astaxie/beego/context"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"testing"
|
||||
|
||||
"github.com/astaxie/beego/context"
|
||||
)
|
||||
|
||||
var FilterUser = func(ctx *context.Context) {
|
||||
|
@ -2,9 +2,6 @@ package beego
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
beecontext "github.com/astaxie/beego/context"
|
||||
"github.com/astaxie/beego/middleware"
|
||||
"github.com/astaxie/beego/toolbox"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"os"
|
||||
@ -14,6 +11,10 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
beecontext "github.com/astaxie/beego/context"
|
||||
"github.com/astaxie/beego/middleware"
|
||||
"github.com/astaxie/beego/toolbox"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -9,9 +9,10 @@ package session
|
||||
|
||||
import (
|
||||
"database/sql"
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
_ "github.com/go-sql-driver/mysql"
|
||||
)
|
||||
|
||||
var mysqlpder = &MysqlProvider{}
|
||||
|
@ -1,10 +1,11 @@
|
||||
package session
|
||||
|
||||
import (
|
||||
"github.com/beego/redigo/redis"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/beego/redigo/redis"
|
||||
)
|
||||
|
||||
var redispder = &RedisProvider{}
|
||||
|
Loading…
Reference in New Issue
Block a user