command
Version:
v0.1.3
Opens a new window with list of versions in this module.
Published: Nov 6, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
宿主嵌入示例
演示业务宿主如何内嵌 Flowtide:复用宿主连接池、挂载 HTTP 处理器、由宿主驱动到期作业。
内存模式
go run ./examples/host-embedding
- 引擎入口:
http://127.0.0.1:8099/flowtide/(路径前缀由宿主提供,需带 X-Actor 头)
- 宿主自有路由:
GET /host/deployed?key={流程定义Key},演示 Go 门面调用
MySQL 模式
go run ./examples/host-embedding \
-dsn 'user:pass@tcp(127.0.0.1:3306)/flowtide?parseTime=true' \
-database flowtide -tenant oa
首次接入空库时加 -init-schema 初始化引擎与 workflow 结构;之后去掉该参数,只做只读校验。
相关文档
Documentation
¶
Command host-embedding 演示业务宿主内嵌 Flowtide 引擎与 workflow 门面。
内存模式无需数据库,直接启动即可观察 Handler、门面调用与到期作业驱动:
go run ./examples/host-embedding
生产模式复用宿主连接池,连接已完成迁移的 MySQL 库:
go run ./examples/host-embedding \
-dsn 'user:pass@tcp(127.0.0.1:3306)/flowtide?parseTime=true' \
-database flowtide -tenant oa
Source Files
¶
Click to show internal directories.
Click to hide internal directories.