Files
contracts/app.go
T
what 8b122816a1 重构: 各类型 Controller 接口精简,配合 framework-v2 internal/handler 收拢公共实现
app.go/condflow.go/cron.go/event_stream.go/executor.go/gobridge.go/grpc.go/job.go/mcp.go/mqtt.go/res_virtual_table.go/ws.go/controller.go/support/service.go 精简掉搬到 framework-v2 internal/handler 里的公共默认实现,只保留接口定义。
2026-07-22 09:14:57 +08:00

25 lines
902 B
Go

package contracts
type App interface {
LoadGoPlugin(file string) error
RegControllers(items map[string]Controller) error
RegResWatchers(items map[string]ResWatcher) error
RegGRpcs(items map[string]GRpc) error
RegJobs(items map[string]Job) error
RegCrons(items map[string]Cron) error
RegMqtts(items map[string]Mqtt) error
RegFlowDecisions(items map[string]FlowDecision) error
RegGoBridges(items map[string]GoBridge) error
RegResVirtualTables(items map[string]ResVirtualTable) error
GetResWatcher(code string) (ResWatcher, bool)
GetAppController(code string) (Controller, bool)
GetAppGRpc(code string) (GRpc, bool)
GetAppJob(code string) (Job, bool)
GetAppCron(code string) (Cron, bool)
GetAppMqtt(code string) (Mqtt, bool)
GetAppFlowDecision(code string) (FlowDecision, bool)
GetAppGoBridge(code string) (GoBridge, bool)
GetAppResVirtualTable(code string) (ResVirtualTable, bool)
}