forked from x/icebergs
add some
This commit is contained in:
parent
8d9b4c7840
commit
ee1ef94a72
@ -124,7 +124,8 @@ func _space_domain(m *ice.Message) (link string) {
|
|||||||
return ""
|
return ""
|
||||||
},
|
},
|
||||||
func() string { return tcp.PublishLocalhost(m, m.Option(ice.MSG_USERWEB)) },
|
func() string { return tcp.PublishLocalhost(m, m.Option(ice.MSG_USERWEB)) },
|
||||||
func() string { return Domain(m.Cmdv(tcp.HOST, aaa.IP), m.Cmdv(SERVE, tcp.PORT)) })
|
func() string { return Domain(m.Cmdv(tcp.HOST, aaa.IP), m.Cmdv(SERVE, tcp.PORT)) },
|
||||||
|
)
|
||||||
}
|
}
|
||||||
func _space_exec(m *ice.Message, source, target []string, c *websocket.Conn) {
|
func _space_exec(m *ice.Message, source, target []string, c *websocket.Conn) {
|
||||||
switch kit.Select(cli.PWD, m.Detailv(), 0) {
|
switch kit.Select(cli.PWD, m.Detailv(), 0) {
|
||||||
|
@ -149,7 +149,9 @@ func (s relay) Stats(m *ice.Message) {
|
|||||||
res := kit.UnMarshal(value[ice.RES])
|
res := kit.UnMarshal(value[ice.RES])
|
||||||
data := kit.Value(res, cli.MAKE)
|
data := kit.Value(res, cli.MAKE)
|
||||||
s.Modify(m, kit.Simple(MACHINE, value[MACHINE], kit.Dict(
|
s.Modify(m, kit.Simple(MACHINE, value[MACHINE], kit.Dict(
|
||||||
nfs.MODULE, kit.Value(data, nfs.MODULE), nfs.VERSION, kit.Join(kit.TrimArg(kit.Simple(kit.Value(data, nfs.VERSION), kit.Value(data, "forword"))...), "-"),
|
nfs.MODULE, kit.Value(data, nfs.MODULE), nfs.VERSION, kit.Join(kit.TrimArg(kit.Simple(
|
||||||
|
kit.Value(data, nfs.VERSION), kit.Value(data, "forword"), kit.Cut(kit.Format(kit.Value(data, mdb.HASH)), 6),
|
||||||
|
)...), "-"),
|
||||||
nfs.COMMIT, kit.Value(data, "when"), code.COMPILE, kit.Value(data, mdb.TIME),
|
nfs.COMMIT, kit.Value(data, "when"), code.COMPILE, kit.Value(data, mdb.TIME),
|
||||||
SHELL, kit.Value(res, "conf.SHELL"), KERNEL, kit.Value(res, "host.GOOS"), ARCH, kit.Value(res, "host.GOARCH"),
|
SHELL, kit.Value(res, "conf.SHELL"), KERNEL, kit.Value(res, "host.GOOS"), ARCH, kit.Value(res, "host.GOARCH"),
|
||||||
))...)
|
))...)
|
||||||
|
@ -80,8 +80,8 @@ func (m *Message) Status(arg ...Any) *Message {
|
|||||||
}
|
}
|
||||||
func (m *Message) StatusTime(arg ...Any) *Message {
|
func (m *Message) StatusTime(arg ...Any) *Message {
|
||||||
args := []string{}
|
args := []string{}
|
||||||
kit.If(m.Option(MSG_USERPOD), func(p string) { args = append(args, SPACE, p) })
|
|
||||||
kit.If(m.Option(MSG_DEBUG) == TRUE, func() { args = append(args, m.OptionSimple(LOG_TRACEID)...) })
|
kit.If(m.Option(MSG_DEBUG) == TRUE, func() { args = append(args, m.OptionSimple(LOG_TRACEID)...) })
|
||||||
|
kit.If(m.Option(MSG_USERPOD), func(p string) { args = append(args, SPACE, p) })
|
||||||
return m.Status(TIME, m.Time(), arg, kit.MDB_COST, m.FormatCost(), args)
|
return m.Status(TIME, m.Time(), arg, kit.MDB_COST, m.FormatCost(), args)
|
||||||
}
|
}
|
||||||
func (m *Message) StatusTimeCount(arg ...Any) *Message {
|
func (m *Message) StatusTimeCount(arg ...Any) *Message {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user