1
0
mirror of https://github.com/astaxie/beego.git synced 2024-11-19 04:20:54 +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 ( import (
"fmt" "fmt"
"github.com/astaxie/beego/toolbox"
"net/http" "net/http"
"time" "time"
"github.com/astaxie/beego/toolbox"
) )
var BeeAdminApp *AdminApp var BeeAdminApp *AdminApp

3
app.go
View File

@ -2,11 +2,12 @@ package beego
import ( import (
"fmt" "fmt"
"github.com/astaxie/beego/context"
"net" "net"
"net/http" "net/http"
"net/http/fcgi" "net/http/fcgi"
"time" "time"
"github.com/astaxie/beego/context"
) )
type FilterFunc func(*context.Context) type FilterFunc func(*context.Context)

1
cache/memcache.go vendored
View File

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

1
cache/redis.go vendored
View File

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

View File

@ -26,7 +26,6 @@ var (
HttpKeyFile string HttpKeyFile string
RecoverPanic bool RecoverPanic bool
AutoRender bool AutoRender bool
PprofOn bool
ViewsPath string ViewsPath string
RunMode string //"dev" or "prod" RunMode string //"dev" or "prod"
AppConfig config.ConfigContainer AppConfig config.ConfigContainer
@ -71,7 +70,6 @@ func InitConfig() {
RunMode = "dev" //default runmod RunMode = "dev" //default runmod
AutoRender = true AutoRender = true
RecoverPanic = true RecoverPanic = true
PprofOn = false
ViewsPath = "views" ViewsPath = "views"
SessionOn = false SessionOn = false
SessionProvider = "memory" SessionProvider = "memory"

View File

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

View File

@ -4,11 +4,12 @@ import (
"bytes" "bytes"
"encoding/json" "encoding/json"
"errors" "errors"
"github.com/beego/goyaml2"
"io/ioutil" "io/ioutil"
"log" "log"
"os" "os"
"sync" "sync"
"github.com/beego/goyaml2"
) )
type YAMLConfig struct { type YAMLConfig struct {

View File

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

View File

@ -2,11 +2,12 @@ package context
import ( import (
"bytes" "bytes"
"github.com/astaxie/beego/session"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
"strconv" "strconv"
"strings" "strings"
"github.com/astaxie/beego/session"
) )
type BeegoInput struct { type BeegoInput struct {

View File

@ -7,8 +7,6 @@ import (
"encoding/base64" "encoding/base64"
"errors" "errors"
"fmt" "fmt"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/session"
"html/template" "html/template"
"io" "io"
"io/ioutil" "io/ioutil"
@ -20,6 +18,9 @@ import (
"strconv" "strconv"
"strings" "strings"
"time" "time"
"github.com/astaxie/beego/context"
"github.com/astaxie/beego/session"
) )
type Controller struct { type Controller struct {

View File

@ -1,10 +1,11 @@
package beego package beego
import ( import (
"github.com/astaxie/beego/context"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/astaxie/beego/context"
) )
var FilterUser = func(ctx *context.Context) { var FilterUser = func(ctx *context.Context) {

View File

@ -2,9 +2,6 @@ package beego
import ( import (
"fmt" "fmt"
beecontext "github.com/astaxie/beego/context"
"github.com/astaxie/beego/middleware"
"github.com/astaxie/beego/toolbox"
"net/http" "net/http"
"net/url" "net/url"
"os" "os"
@ -14,6 +11,10 @@ import (
"strconv" "strconv"
"strings" "strings"
"time" "time"
beecontext "github.com/astaxie/beego/context"
"github.com/astaxie/beego/middleware"
"github.com/astaxie/beego/toolbox"
) )
const ( const (

View File

@ -9,9 +9,10 @@ package session
import ( import (
"database/sql" "database/sql"
_ "github.com/go-sql-driver/mysql"
"sync" "sync"
"time" "time"
_ "github.com/go-sql-driver/mysql"
) )
var mysqlpder = &MysqlProvider{} var mysqlpder = &MysqlProvider{}

View File

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