Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Listen string // 服务端口,可选,默认 ":8310" Title string Intro string Timeout int // 超时时间,单位秒,默认 30s Charset string // 默认字符集,可选 Charsets []string // 可选字符集,可选 Commands map[string]*cmdConfig LogPath string CacheDir string TmpDir string // 运行临时数据目录,可选,默认是和配置文件平行的 tmp 目录 Users map[string]string // 账号和密码,如 user:psw,可选 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.