mirror of
https://shylinux.com/x/icebergs
synced 2025-04-25 17:18:05 +08:00
opt some
This commit is contained in:
parent
8fdddfb34d
commit
11e83d2d69
7
misc.go
7
misc.go
@ -319,6 +319,9 @@ func (m *Message) Status(arg ...interface{}) {
|
||||
func (m *Message) StatusTimeCount(arg ...interface{}) {
|
||||
m.Status(kit.MDB_TIME, m.Time(), kit.MDB_COUNT, m.FormatSize(), arg)
|
||||
}
|
||||
func (m *Message) StatusTimeCountTotal(arg ...interface{}) {
|
||||
m.Status(kit.MDB_TIME, m.Time(), kit.MDB_COUNT, m.FormatSize(), "total", arg)
|
||||
}
|
||||
|
||||
func (m *Message) Process(action string, arg ...interface{}) {
|
||||
m.Option(MSG_PROCESS, action)
|
||||
@ -379,3 +382,7 @@ func (m *Message) Capi(key string, val ...interface{}) int {
|
||||
}
|
||||
return kit.Int(m.Cap(key))
|
||||
}
|
||||
func (m *Message) Cut(fields ...string) *Message {
|
||||
m.meta[MSG_APPEND] = strings.Split(strings.Join(fields, ","), ",")
|
||||
return m
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user