edge/pkg/app/server_module.go
William Petit ba9ae6e391
All checks were successful
arcad/edge/pipeline/head This commit looks good
fix(app): use event loop runtime for every operations
2023-04-24 12:16:30 +02:00

18 lines
259 B
Go

package app
import (
"github.com/dop251/goja"
)
type ServerModuleFactory func(*Server) ServerModule
type ServerModule interface {
Name() string
Export(*goja.Object)
}
type InitializableModule interface {
ServerModule
OnInit(rt *goja.Runtime) error
}