edge/pkg/app/server_module.go

18 lines
259 B
Go
Raw Normal View History

2023-02-09 12:16:36 +01:00
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
2023-02-09 12:16:36 +01:00
}