Documentation
¶
Index ¶
- type MapItem
- type RuntimeManager
- func (rtm *RuntimeManager) Add(id string) bool
- func (rtm *RuntimeManager) Destroy(id string)
- func (rtm *RuntimeManager) GetByID(id string) (*WasiRuntime, *sync.Cond)
- func (rtm *RuntimeManager) InitRT(id string, context context.Context, withSharedCache bool, logEnabled bool)
- func (rtm *RuntimeManager) SetRTParams(id string, cacheDirPath string, compiledWasiPath string)
- func (rtm *RuntimeManager) SetRTcbFunc(id string, nodeType string, cbFunc WasiCallbackFunction)
- type WasiCallbackFunction
- type WasiRuntime
- func (wr *WasiRuntime) Init(context context.Context, withSharedCache bool, logEnabled bool)
- func (wr *WasiRuntime) IsReady() bool
- func (wr *WasiRuntime) Run(inputJSON string, messageJSON string, flags uint64) string
- func (wr *WasiRuntime) SetCBFunction(nodeType string, cbFunc WasiCallbackFunction)
- func (wr *WasiRuntime) SetUsedNodeType(nodeType string)
- func (wr *WasiRuntime) SetWasiParams(cacheDirPath string, compiledWasiPath string)
- func (wr *WasiRuntime) Shutdown()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RuntimeManager ¶
type RuntimeManager struct {
// contains filtered or unexported fields
}
func GetRTManager ¶
func GetRTManager() *RuntimeManager
func (*RuntimeManager) Add ¶
func (rtm *RuntimeManager) Add(id string) bool
func (*RuntimeManager) Destroy ¶
func (rtm *RuntimeManager) Destroy(id string)
func (*RuntimeManager) GetByID ¶
func (rtm *RuntimeManager) GetByID(id string) (*WasiRuntime, *sync.Cond)
func (*RuntimeManager) SetRTParams ¶
func (rtm *RuntimeManager) SetRTParams(id string, cacheDirPath string, compiledWasiPath string)
func (*RuntimeManager) SetRTcbFunc ¶
func (rtm *RuntimeManager) SetRTcbFunc(id string, nodeType string, cbFunc WasiCallbackFunction)
type WasiCallbackFunction ¶
type WasiRuntime ¶
type WasiRuntime struct {
// contains filtered or unexported fields
}
func NewWasiRuntime ¶
func NewWasiRuntime() *WasiRuntime
func (*WasiRuntime) Init ¶
func (wr *WasiRuntime) Init(context context.Context, withSharedCache bool, logEnabled bool)
func (*WasiRuntime) IsReady ¶
func (wr *WasiRuntime) IsReady() bool
func (*WasiRuntime) Run ¶
func (wr *WasiRuntime) Run(inputJSON string, messageJSON string, flags uint64) string
func (*WasiRuntime) SetCBFunction ¶
func (wr *WasiRuntime) SetCBFunction(nodeType string, cbFunc WasiCallbackFunction)
func (*WasiRuntime) SetUsedNodeType ¶
func (wr *WasiRuntime) SetUsedNodeType(nodeType string)
func (*WasiRuntime) SetWasiParams ¶
func (wr *WasiRuntime) SetWasiParams(cacheDirPath string, compiledWasiPath string)
func (*WasiRuntime) Shutdown ¶
func (wr *WasiRuntime) Shutdown()
Click to show internal directories.
Click to hide internal directories.