1
0
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:
astaxie 2013-12-03 21:37:39 +08:00
parent 983f20642c
commit 3c91360d72
14 changed files with 27 additions and 16 deletions

View File

@ -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
View File

@ -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
View File

@ -3,6 +3,7 @@ package cache
import (
"encoding/json"
"errors"
"github.com/beego/memcache"
)

1
cache/redis.go vendored
View File

@ -3,6 +3,7 @@ package cache
import (
"encoding/json"
"errors"
"github.com/beego/redigo/redis"
)

View File

@ -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"

View File

@ -4,11 +4,12 @@ package config
import (
"errors"
"github.com/beego/x2j"
"io/ioutil"
"os"
"strconv"
"sync"
"github.com/beego/x2j"
)
type XMLConfig struct {

View File

@ -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 {

View File

@ -1,8 +1,9 @@
package context
import (
"github.com/astaxie/beego/middleware"
"net/http"
"github.com/astaxie/beego/middleware"
)
type Context struct {

View File

@ -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 {

View File

@ -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 {

View File

@ -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) {

View File

@ -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 (

View File

@ -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{}

View File

@ -1,10 +1,11 @@
package session
import (
"github.com/beego/redigo/redis"
"strconv"
"strings"
"sync"
"github.com/beego/redigo/redis"
)
var redispder = &RedisProvider{}