Documentation
¶
Overview ¶
Package preset 提供官方推荐的 HTTP server 默认装配。
该包只负责组合 httpserver core 与官方中间件,不重复实现底层能力。
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDevelopmentServer ¶
func NewDevelopmentServer(config *httpserver.Config, opts ...httpserver.Option) *httpserver.Server
NewDevelopmentServer 创建适合开发环境的默认服务器。
func NewProductionServer ¶
func NewProductionServer(config *httpserver.Config, opts ...httpserver.Option) *httpserver.Server
NewProductionServer 创建带官方生产默认链路的服务器。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.