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
849dbddc
authored
2013-12-15 21:44:58 +0800
by
astaxie
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
filterfunc name
1 parent
d24fbe84
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
admin.go
admin.go
View file @
849dbdd
...
...
@@ -6,6 +6,7 @@ import (
"time"
"github.com/astaxie/beego/toolbox"
"github.com/astaxie/beego/utils"
)
var
BeeAdminApp
*
AdminApp
...
...
@@ -132,31 +133,31 @@ func ListConf(rw http.ResponseWriter, r *http.Request) {
fmt
.
Fprintln
(
rw
,
"BeforeRouter:"
)
if
bf
,
ok
:=
BeeApp
.
Handlers
.
filters
[
BeforeRouter
];
ok
{
for
_
,
f
:=
range
bf
{
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
f
.
filterFunc
)
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
utils
.
GetFuncName
(
f
.
filterFunc
)
)
}
}
fmt
.
Fprintln
(
rw
,
"AfterStatic:"
)
if
bf
,
ok
:=
BeeApp
.
Handlers
.
filters
[
AfterStatic
];
ok
{
for
_
,
f
:=
range
bf
{
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
f
.
filterFunc
)
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
utils
.
GetFuncName
(
f
.
filterFunc
)
)
}
}
fmt
.
Fprintln
(
rw
,
"BeforeExec:"
)
if
bf
,
ok
:=
BeeApp
.
Handlers
.
filters
[
BeforeExec
];
ok
{
for
_
,
f
:=
range
bf
{
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
f
.
filterFunc
)
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
utils
.
GetFuncName
(
f
.
filterFunc
)
)
}
}
fmt
.
Fprintln
(
rw
,
"AfterExec:"
)
if
bf
,
ok
:=
BeeApp
.
Handlers
.
filters
[
AfterExec
];
ok
{
for
_
,
f
:=
range
bf
{
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
f
.
filterFunc
)
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
utils
.
GetFuncName
(
f
.
filterFunc
)
)
}
}
fmt
.
Fprintln
(
rw
,
"FinishRouter:"
)
if
bf
,
ok
:=
BeeApp
.
Handlers
.
filters
[
FinishRouter
];
ok
{
for
_
,
f
:=
range
bf
{
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
f
.
filterFunc
)
fmt
.
Fprintln
(
rw
,
f
.
pattern
,
utils
.
GetFuncName
(
f
.
filterFunc
)
)
}
}
}
...
...
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