mirror of
https://2025-dev.shylinux.com/x/20250211-service
synced 2025-04-25 12:48:05 +08:00
Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
9a4f2b0e0f | |||
a5625321fe | |||
e4874e1535 | |||
4640171153 | |||
076fac1389 | |||
d930ab2d21 |
6
go.mod
6
go.mod
@ -2,10 +2,10 @@ module 2025-dev.shylinux.com/x/20250211-service
|
||||
|
||||
go 1.13
|
||||
|
||||
require 2025-dev.shylinux.com/x/20250215-cluster v0.0.5
|
||||
require 2025-dev.shylinux.com/x/20250215-cluster v0.0.7
|
||||
|
||||
require (
|
||||
shylinux.com/x/ice v1.5.71
|
||||
shylinux.com/x/icebergs v1.9.72
|
||||
shylinux.com/x/ice v1.5.73
|
||||
shylinux.com/x/icebergs v1.9.75
|
||||
shylinux.com/x/toolkits v1.0.19
|
||||
)
|
||||
|
12
go.sum
12
go.sum
@ -1,13 +1,13 @@
|
||||
2025-dev.shylinux.com/x/20250215-cluster v0.0.5 h1:vZDKGh+RFMRDWNuPkRvIsO2iTvEa5lM5IDq0Tp+Nt4k=
|
||||
2025-dev.shylinux.com/x/20250215-cluster v0.0.5/go.mod h1:a/cnjm6D6vkzZ2rvK8uvU3lSsWUs/NWOWl1uBb+LXLM=
|
||||
2025-dev.shylinux.com/x/20250215-cluster v0.0.7 h1:GhQImaF6RbliJ6467gdeB4AVzCNyz5LwmA9AeCphEvo=
|
||||
2025-dev.shylinux.com/x/20250215-cluster v0.0.7/go.mod h1:rhNacwQogLrmiNkmoptqpKY9ieRXAhVHenHwZRcdBB8=
|
||||
shylinux.com/x/go-git/v5 v5.6.7 h1:WD5QSco7m3QooPCgdvQ6/GyGIFPun8C+hex5N41LYlk=
|
||||
shylinux.com/x/go-git/v5 v5.6.7/go.mod h1:Qb0lA+uIrofZg8NQerhYcJHgGWixFqvS6p3aJ/L5Nlk=
|
||||
shylinux.com/x/go-qrcode v0.0.3 h1:RMo+Vidbgq3HatLBj7DDXcTbTLFUwzis5K7TqBkD38U=
|
||||
shylinux.com/x/go-qrcode v0.0.3/go.mod h1:KAbtU+KwiiABMZ/CJ0zh9PI2AX82Uf9rRYcQ4ODm4po=
|
||||
shylinux.com/x/ice v1.5.71 h1:5yrs+9uj3xNjsQuuLed/3lfF10syjbHhUT8LJAJqClo=
|
||||
shylinux.com/x/ice v1.5.71/go.mod h1:2KKKi+Jridkkg+NWUrSX9S7Pe5zuwihBaVJ0nNY/FmY=
|
||||
shylinux.com/x/icebergs v1.9.72 h1:y3oVuMZtsI6hX0HLdfgzeDZNSbyoLrVSWl81JQcV+fA=
|
||||
shylinux.com/x/icebergs v1.9.72/go.mod h1:3Bdp3tjzw+hUKJF+kR8pfsrbjAf72DVZmCaE8/MPFtk=
|
||||
shylinux.com/x/ice v1.5.73 h1:wp+KeQ14hLOdxxSou/Y0zHi48Jm4nLx1rFOwGz8ix04=
|
||||
shylinux.com/x/ice v1.5.73/go.mod h1:uGI73gYkk+FiJt5qmy/aYhoKRJ4wobcJk3WrPGh8Waw=
|
||||
shylinux.com/x/icebergs v1.9.75 h1:9zAm0ppwUWl0As/vqfQG/QR/vwXa5zmfdIGE/gmvErQ=
|
||||
shylinux.com/x/icebergs v1.9.75/go.mod h1:3Bdp3tjzw+hUKJF+kR8pfsrbjAf72DVZmCaE8/MPFtk=
|
||||
shylinux.com/x/toolkits v0.7.10/go.mod h1:CHDJarGlDkg60kVsvMLYL/a5hAnRLEOShiEsMOuEp0Q=
|
||||
shylinux.com/x/toolkits v1.0.19 h1:Nrx0xYRc5ph1WS66EZ1hJUCe+2FdSWQ4QP6tBlguikQ=
|
||||
shylinux.com/x/toolkits v1.0.19/go.mod h1:CHDJarGlDkg60kVsvMLYL/a5hAnRLEOShiEsMOuEp0Q=
|
||||
|
11
src/document/index.shy
Normal file
11
src/document/index.shy
Normal file
@ -0,0 +1,11 @@
|
||||
navmenu `
|
||||
"{{ .Title }}" /
|
||||
_
|
||||
"下 载" download/
|
||||
"文 档" started/
|
||||
"开 发" development/
|
||||
_
|
||||
"应 用" "https://web.shylinux.com/s/20240903-operation/c/web.team.operation.portal"
|
||||
"源 码" "https://git.shylinux.com/dev/service"
|
||||
"社 区" "https://bbs.shylinux.com"
|
||||
`
|
@ -2,6 +2,7 @@ package gateway
|
||||
|
||||
import (
|
||||
"shylinux.com/x/ice"
|
||||
"shylinux.com/x/icebergs/base/aaa"
|
||||
"shylinux.com/x/icebergs/base/cli"
|
||||
"shylinux.com/x/icebergs/base/mdb"
|
||||
"shylinux.com/x/icebergs/base/nfs"
|
||||
@ -43,10 +44,7 @@ func (s Gateway) Script(m *ice.Message, arg ...string) {
|
||||
func (s Gateway) List(m *ice.Message, arg ...string) {
|
||||
if len(arg) == 0 {
|
||||
info := web.Info
|
||||
stat := map[string]int{}
|
||||
m.Cmd(web.DREAM).Table(func(value ice.Maps) { stat[value[mdb.TYPE]]++ })
|
||||
m.PushRecord(stat)
|
||||
m.PushRecord(task.Info())
|
||||
kit.For(task.Info(), func(key string, value string) { m.Push(key, value) })
|
||||
m.Push("main", info.ServeMainCount)
|
||||
m.Push("get", info.ServeGetCount)
|
||||
m.Push("put", info.ServePutCount)
|
||||
@ -57,10 +55,11 @@ func (s Gateway) List(m *ice.Message, arg ...string) {
|
||||
m.Push("read", kit.FmtSize(info.SpaceReadByte))
|
||||
m.Push("send", info.SpaceWriteCount)
|
||||
m.Push("write", kit.FmtSize(info.SpaceWriteByte))
|
||||
m.Push(aaa.IP, m.Cmd(tcp.HOST).Append(aaa.IP))
|
||||
m.Push(tcp.HOSTNAME, ice.Info.NodeName)
|
||||
m.Push(nfs.VERSION, ice.Info.Make.Version)
|
||||
m.Push(mdb.TIME, ice.Info.Make.Time)
|
||||
m.Action(s.Foreach, s.Script)
|
||||
m.Cmdy("", s.Script)
|
||||
} else {
|
||||
m.Cmdy(web.SPACE, arg[0], m.PrefixKey())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user