server

package
v0.7.260410 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: MIT Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL