wm/src/handler/domains/lambda.go

17 lines
246 B
Go
Raw Normal View History

2023-06-11 14:56:54 +00:00
package domains
import (
"tuxpa.in/t/wm/src/bsp"
"tuxpa.in/t/wm/src/sock"
)
type Lambda struct {
Fn func(x *bsp.XWM, msg *sock.Msg) ([]byte, error)
inject
}
func (n *Lambda) Run(msg *sock.Msg) ([]byte, error) {
return n.Fn(n.XWM, msg)
}