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 里的公共默认实现,只保留接口定义。
14 lines
298 B
Go
14 lines
298 B
Go
package contracts
|
||
|
||
type GoBridgeService interface {
|
||
Start() error
|
||
Shutdown() error
|
||
Restart() error
|
||
}
|
||
|
||
// GoBridge 继承 Controller,可通过 gobridge.WithHandlers 绑定到 Pool,
|
||
// 所有公开方法自动暴露给 Python 通过 call_go() 调用。
|
||
type GoBridge interface {
|
||
Controller
|
||
}
|