Documentation
¶
Index ¶
- type Engine
- func (e *Engine) EmitActionEvent(opts *xtypes.ActionEventOptions) error
- func (e *Engine) EmitHttpEvent(opts *xtypes.HttpEventOptions) error
- func (e *Engine) GetCapabilityDefinitions() []caphub.CapabilityDefination
- func (e *Engine) GetCapabilityHub() any
- func (e *Engine) GetDebugData() map[string]any
- func (e *Engine) GetRepoHub() *repohub.RepoHub
- func (e *Engine) LoadRoutingIndex()
- func (e *Engine) LoadRoutingIndexForPackages(installedId int64)
- func (e *Engine) PluginApi(ctx *gin.Context)
- func (e *Engine) PublishEvent(opts *xtypes.EventOptions) error
- func (e *Engine) RefreshEventIndex()
- func (e *Engine) ServeCapability(ctx *gin.Context)
- func (e *Engine) ServeCapabilityRoot(ctx *gin.Context)
- func (e *Engine) ServePluginFile(ctx *gin.Context)
- func (e *Engine) ServeSpaceFile(ctx *gin.Context)
- func (e *Engine) SpaceApi(ctx *gin.Context)
- func (e *Engine) SpaceInfo(nsKey string, hostName string) (*SpaceInfo, error)
- func (e *Engine) Start(app xtypes.App) error
- type EngineOption
- type PluginRouteIndexItem
- type RunningExec
- type Runtime
- func (r *Runtime) ClearExecs(spaceIds ...int64)
- func (r *Runtime) ExecAction(opts *xtypes.ActionEventOptions) error
- func (r *Runtime) ExecActionQ(spaceId int64, req xtypes.ActionRequest, etype, actionName string) error
- func (r *Runtime) ExecHttp(opts *xtypes.HttpEventOptions) error
- func (r *Runtime) ExecHttpQ(installedId, packageVersionId, spaceId int64, ctx *gin.Context) error
- func (r *Runtime) GetDebugData() map[int64]any
- func (r *Runtime) GetExec(spaceid int64) (*RunningExec, error)
- type SpaceInfo
- type SpaceRouteIndexItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
RoutingIndex map[string]*SpaceRouteIndexItem
// contains filtered or unexported fields
}
func NewEngine ¶
func NewEngine(opt EngineOption) *Engine
func (*Engine) EmitActionEvent ¶
func (e *Engine) EmitActionEvent(opts *xtypes.ActionEventOptions) error
func (*Engine) EmitHttpEvent ¶
func (e *Engine) EmitHttpEvent(opts *xtypes.HttpEventOptions) error
func (*Engine) GetCapabilityDefinitions ¶
func (e *Engine) GetCapabilityDefinitions() []caphub.CapabilityDefination
func (*Engine) GetCapabilityHub ¶
func (*Engine) GetDebugData ¶
func (*Engine) GetRepoHub ¶
func (*Engine) LoadRoutingIndex ¶
func (e *Engine) LoadRoutingIndex()
func (*Engine) LoadRoutingIndexForPackages ¶
func (*Engine) PublishEvent ¶
func (e *Engine) PublishEvent(opts *xtypes.EventOptions) error
func (*Engine) RefreshEventIndex ¶
func (e *Engine) RefreshEventIndex()
func (*Engine) ServeCapability ¶
func (*Engine) ServeCapabilityRoot ¶
func (*Engine) ServePluginFile ¶
func (*Engine) ServeSpaceFile ¶
type EngineOption ¶
type PluginRouteIndexItem ¶
type PluginRouteIndexItem struct {
// contains filtered or unexported fields
}
type RunningExec ¶
type Runtime ¶
type Runtime struct {
// contains filtered or unexported fields
}
func (*Runtime) ClearExecs ¶
func (*Runtime) ExecAction ¶
func (r *Runtime) ExecAction(opts *xtypes.ActionEventOptions) error
func (*Runtime) ExecActionQ ¶
func (*Runtime) GetDebugData ¶
type SpaceRouteIndexItem ¶
type SpaceRouteIndexItem struct {
// contains filtered or unexported fields
}
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
luaz/lua-bench
command
|
|
|
luaz/lua_bench2
command
|
|
|
hubs
|
|
|
eventhub/run
command
|
|
Click to show internal directories.
Click to hide internal directories.