2024-04-01 09:42:29 +08:00
|
|
|
package workers
|
|
|
|
|
2024-07-05 22:33:55 +08:00
|
|
|
func init() {
|
|
|
|
RegisterWorkerFactory("ping", func(parms []string, uid, gid, role, mid, rawMsg string) Worker {
|
|
|
|
return &Ping{
|
|
|
|
StdAns: NewStdAns(parms, uid, gid, role, mid, rawMsg),
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
2024-04-01 09:42:29 +08:00
|
|
|
type Ping struct {
|
|
|
|
*StdAns
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *Ping) GetMsg() string {
|
|
|
|
return "Pong!"
|
|
|
|
}
|