Documentation
¶
Overview ¶
Package bootstrap 构造应用基础层:数据库连接、共享依赖(appkit.Deps)与 托管 grpcapi Server 的 lynx.Service。模块经 Deps 消费这一切。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIService ¶
type APIService struct {
// contains filtered or unexported fields
}
APIService 把 grpcapi Server 托管进 lynx 生命周期:Start 阻塞运行 gRPC+HTTP 双面,Stop 触发优雅关停。
func NewAPIService ¶
func NewAPIService(srv *grpcapiserver.Server, logger *slog.Logger) *APIService
NewAPIService 构造 APIService。
Click to show internal directories.
Click to hide internal directories.