Initial commit (code only without large binaries)
This commit is contained in:
12
EdgeNode/internal/js/library_interface.go
Normal file
12
EdgeNode/internal/js/library_interface.go
Normal file
@@ -0,0 +1,12 @@
|
||||
// Copyright 2021 Liuxiangchao iwind.liu@gmail.com. All rights reserved.
|
||||
//go:build script
|
||||
|
||||
package js
|
||||
|
||||
type LibraryInterface interface {
|
||||
JSNamespace() string // 命名空间
|
||||
JSPrototype() string // 原型代码
|
||||
JSInit(ctx *Context) // 初始化时调用
|
||||
JSDone(ctx *Context) // 单个调用结束时调用
|
||||
JSDispose(ctx *Context) // 回收Context时调用
|
||||
}
|
||||
Reference in New Issue
Block a user