mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
opt some
This commit is contained in:
parent
d83e0dfdb5
commit
f9faaa4d9a
@ -136,7 +136,6 @@ func _serve_handle(key string, cmd *ice.Command, msg *ice.Message, w http.Respon
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 用户请求
|
// 用户请求
|
||||||
msg.Option("name", "")
|
|
||||||
msg.Option(mdb.CACHE_LIMIT, "10")
|
msg.Option(mdb.CACHE_LIMIT, "10")
|
||||||
msg.Option(ice.MSG_OUTPUT, "")
|
msg.Option(ice.MSG_OUTPUT, "")
|
||||||
msg.Option(ice.MSG_METHOD, r.Method)
|
msg.Option(ice.MSG_METHOD, r.Method)
|
||||||
|
@ -111,6 +111,7 @@ func init() {
|
|||||||
"log", "true", "err", "true",
|
"log", "true", "err", "true",
|
||||||
|
|
||||||
"md", "true", "conf", "true", "toml", "true",
|
"md", "true", "conf", "true", "toml", "true",
|
||||||
|
"ini", "true",
|
||||||
),
|
),
|
||||||
"plug", kit.Dict(
|
"plug", kit.Dict(
|
||||||
"s", kit.Dict(
|
"s", kit.Dict(
|
||||||
|
1
init.go
1
init.go
@ -152,6 +152,7 @@ func Run(arg ...string) string {
|
|||||||
Index.server = frame
|
Index.server = frame
|
||||||
|
|
||||||
Pulse.root = Pulse
|
Pulse.root = Pulse
|
||||||
|
Pulse.Option("name", "")
|
||||||
Pulse.Option("cache.limit", "30")
|
Pulse.Option("cache.limit", "30")
|
||||||
Pulse.Option("begin_time", Pulse.Time())
|
Pulse.Option("begin_time", Pulse.Time())
|
||||||
switch kit.Select("", arg, 0) {
|
switch kit.Select("", arg, 0) {
|
||||||
|
@ -31,6 +31,7 @@ func init() {
|
|||||||
Commands: map[string]*ice.Command{
|
Commands: map[string]*ice.Command{
|
||||||
SESS: {Name: "sess hash auto prunes", Help: "会话流", Action: map[string]*ice.Action{
|
SESS: {Name: "sess hash auto prunes", Help: "会话流", Action: map[string]*ice.Action{
|
||||||
mdb.PRUNES: {Name: "prunes", Help: "清理", Hand: func(m *ice.Message, arg ...string) {
|
mdb.PRUNES: {Name: "prunes", Help: "清理", Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
m.Option(mdb.FIELDS, m.Conf(m.Prefix(SESS), kit.META_FIELD))
|
||||||
m.Cmdy(mdb.PRUNES, m.Prefix(SESS), "", mdb.HASH, kit.MDB_STATUS, "logout")
|
m.Cmdy(mdb.PRUNES, m.Prefix(SESS), "", mdb.HASH, kit.MDB_STATUS, "logout")
|
||||||
}},
|
}},
|
||||||
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {
|
||||||
|
@ -10,7 +10,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
const SHELL = "shell"
|
const (
|
||||||
|
SHELL = "shell"
|
||||||
|
)
|
||||||
const SYNC = "sync"
|
const SYNC = "sync"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user