Documentation
¶
Overview ¶
Package dawn 将后台服务接入应用容器与生命周期。
Index ¶
Constants ¶
View Source
const Version = "0.1.2"
Version 是当前 Dawn 服务端版本。
Variables ¶
This section is empty.
Functions ¶
func HandleCommand ¶
func HandleCommand(ctx context.Context, app *foundation.Application, argv []string) error
HandleCommand 使用 Dawn 命令行展示,命令执行与资源释放由应用统一管理。
func RegisterRoutes ¶
func RegisterRoutes(app *foundation.Application, engine *gin.Engine) error
RegisterRoutes mounts the module in the application's official HTTP pipeline.
Types ¶
type ServiceProvider ¶
type ServiceProvider struct {
Configure func(*admin.Options)
// Schema customizes the complete target without resolving the admin runtime.
Schema func(*schema.Definition)
}
ServiceProvider installs admin services and SQL drivers.
func (ServiceProvider) Boot ¶
func (p ServiceProvider) Boot(app pc.Application) error
Boot 注册数据库驱动与后台命令。
func (ServiceProvider) Register ¶
func (p ServiceProvider) Register(app pc.Application) error
Register declares lazy bindings without resolving infrastructure.
Directories
¶
| Path | Synopsis |
|---|---|
|
app
|
|
|
Package constants 集中描述 Key 模板, 系统和业务使用相同定义类型.
|
Package constants 集中描述 Key 模板, 系统和业务使用相同定义类型. |
|
database
|
|
|
schema
Package schema compares a complete application schema with its database.
|
Package schema compares a complete application schema with its database. |
|
Package realtime 提供共享身份入口和基于 Redis Stream 的跨实例恢复.
|
Package realtime 提供共享身份入口和基于 Redis Stream 的跨实例恢复. |
|
support
|
|
|
authsession
Package authsession为Bearer认证复用PrismGo Session存储、编码、加密和锁。
|
Package authsession为Bearer认证复用PrismGo Session存储、编码、加密和锁。 |
|
codegen
Package codegen generates the same CRUD source for the admin UI and CLI.
|
Package codegen generates the same CRUD source for the admin UI and CLI. |
|
customer
Package customer 提供网站和Telegram共用的客服应用、身份、接待和AI执行能力。
|
Package customer 提供网站和Telegram共用的客服应用、身份、接待和AI执行能力。 |
|
geoip
Package geoip 提供容器管理的离线IP查询、数据库状态、原子更新和自定义解析器。
|
Package geoip 提供容器管理的离线IP查询、数据库状态、原子更新和自定义解析器。 |
|
identity
Package identity 提供安装时固定的可逆用户编号,不作为认证凭证。
|
Package identity 提供安装时固定的可逆用户编号,不作为认证凭证。 |
|
settings
Package settings 为公开与内部配置共用分组Hash缓存。
|
Package settings 为公开与内部配置共用分组Hash缓存。 |
|
supervisor
Package supervisor 管理本项目的服务进程、控制通道和监听资源。
|
Package supervisor 管理本项目的服务进程、控制通道和监听资源。 |
|
tests
|
|
|
tools
|
|
|
embedding
Package embedding 随扩展分发向量服务脚本,运行环境和权重保存在使用方项目。
|
Package embedding 随扩展分发向量服务脚本,运行环境和权重保存在使用方项目。 |
Click to show internal directories.
Click to hide internal directories.