Documentation
¶
Overview ¶
Package dawn 将后台服务接入应用容器与生命周期。
Index ¶
Constants ¶
View Source
const Version = "0.1.0"
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 ¶
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
|
|
|
Package realtime 提供共享身份入口和基于 Redis Stream 的跨实例恢复.
|
Package realtime 提供共享身份入口和基于 Redis Stream 的跨实例恢复. |
|
support
|
|
|
geoip
Package geoip 提供本地IP地理查询及原子更新。
|
Package geoip 提供本地IP地理查询及原子更新。 |
|
supervisor
Package supervisor 管理本项目的服务进程、控制通道和监听资源。
|
Package supervisor 管理本项目的服务进程、控制通道和监听资源。 |
Click to show internal directories.
Click to hide internal directories.