Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张磊
/
FileStorageBeego
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3c91360d
authored
2013-12-03 21:37:39 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
dictinct system pkg and third pkg
1 parent
983f2064
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
27 additions
and
16 deletions
admin.go
app.go
cache/memcache.go
cache/redis.go
config.go
config/xml.go
config/yaml.go
context/context.go
context/input.go
controller.go
fiter_test.go
router.go
session/sess_mysql.go
session/sess_redis.go
admin.go
View file @
3c91360
...
...
@@ -2,9 +2,10 @@ package beego
import
(
"fmt"
"github.com/astaxie/beego/toolbox"
"net/http"
"time"
"github.com/astaxie/beego/toolbox"
)
var
BeeAdminApp
*
AdminApp
...
...
app.go
View file @
3c91360
...
...
@@ -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
)
...
...
cache/memcache.go
View file @
3c91360
...
...
@@ -3,6 +3,7 @@ package cache
import
(
"encoding/json"
"errors"
"github.com/beego/memcache"
)
...
...
cache/redis.go
View file @
3c91360
...
...
@@ -3,6 +3,7 @@ package cache
import
(
"encoding/json"
"errors"
"github.com/beego/redigo/redis"
)
...
...
config.go
View file @
3c91360
...
...
@@ -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"
...
...
config/xml.go
View file @
3c91360
...
...
@@ -4,11 +4,12 @@ package config
import
(
"errors"
"github.com/beego/x2j"
"io/ioutil"
"os"
"strconv"
"sync"
"github.com/beego/x2j"
)
type
XMLConfig
struct
{
...
...
config/yaml.go
View file @
3c91360
...
...
@@ -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
{
...
...
context/context.go
View file @
3c91360
package
context
import
(
"github.com/astaxie/beego/middleware"
"net/http"
"github.com/astaxie/beego/middleware"
)
type
Context
struct
{
...
...
context/input.go
View file @
3c91360
...
...
@@ -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
{
...
...
controller.go
View file @
3c91360
...
...
@@ -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
{
...
...
fiter_test.go
View file @
3c91360
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
)
{
...
...
router.go
View file @
3c91360
...
...
@@ -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
(
...
...
session/sess_mysql.go
View file @
3c91360
...
...
@@ -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
{}
...
...
session/sess_redis.go
View file @
3c91360
package
session
import
(
"github.com/beego/redigo/redis"
"strconv"
"strings"
"sync"
"github.com/beego/redigo/redis"
)
var
redispder
=
&
RedisProvider
{}
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment