Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHttpServer ¶
func NewHttpServer(opt *HttpServerOptions, services []contract.Service, logger *slog.Logger) (*http.Server, error)
NewHttpServer 创建http服务
Types ¶
type HttpServerOptions ¶
type HttpServerOptions struct {
Addr string `flag:"addr" default:":10890" usage:"http服务监听地址"`
}
HttpServerOptions http服务配置
Click to show internal directories.
Click to hide internal directories.