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 里的公共默认实现,只保留接口定义。
19 lines
250 B
Go
19 lines
250 B
Go
package contracts
|
|
|
|
import (
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type GRpcService interface {
|
|
Start() error
|
|
Stop() error
|
|
Restart() error
|
|
}
|
|
|
|
type GRpc interface {
|
|
Controller
|
|
// 获取 gRPC 服务的描述信息
|
|
GetGRpcServiceDesc() *grpc.ServiceDesc
|
|
}
|
|
|