Documentation
¶
Overview ¶
Package server 提供 HTTP 服务器命令。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "server", Usage: "启动 HTTP 服务器", Action: action, Commands: []*cli.Command{version.Command}, Flags: []cli.Flag{ &cli.StringFlag{ Name: "addr", Aliases: []string{"a"}, Value: dc.Server.Addr, Usage: "服务器监听地址", }, &cli.StringFlag{ Name: "docs", Value: dc.Server.Docs, Usage: "VitePress 文档目录路径", }, &cli.DurationFlag{ Name: "timeout", Value: dc.Server.Timeout, Usage: "HTTP 读写超时", }, &cli.DurationFlag{ Name: "idletime", Value: dc.Server.Idletime, Usage: "HTTP 空闲超时", }, }, }
Command 服务器命令
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.