1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
shaoying 2020-11-02 22:13:03 +08:00
parent d83e0dfdb5
commit f9faaa4d9a
5 changed files with 6 additions and 2 deletions

View File

@ -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(ice.MSG_OUTPUT, "")
msg.Option(ice.MSG_METHOD, r.Method)

View File

@ -111,6 +111,7 @@ func init() {
"log", "true", "err", "true",
"md", "true", "conf", "true", "toml", "true",
"ini", "true",
),
"plug", kit.Dict(
"s", kit.Dict(

View File

@ -152,6 +152,7 @@ func Run(arg ...string) string {
Index.server = frame
Pulse.root = Pulse
Pulse.Option("name", "")
Pulse.Option("cache.limit", "30")
Pulse.Option("begin_time", Pulse.Time())
switch kit.Select("", arg, 0) {

View File

@ -31,6 +31,7 @@ func init() {
Commands: map[string]*ice.Command{
SESS: {Name: "sess hash auto prunes", Help: "会话流", Action: map[string]*ice.Action{
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")
}},
}, Hand: func(m *ice.Message, c *ice.Context, cmd string, arg ...string) {

View File

@ -10,7 +10,9 @@ import (
"strings"
)
const SHELL = "shell"
const (
SHELL = "shell"
)
const SYNC = "sync"
func init() {