Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultListenAddr = ":12345"
默认监听地址
View Source
const PoweredBy = "tora/" + Version
X-Powered-By响应头
View Source
const Version = "1.1"
当前版本号
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileOptions ¶
type FileOptions = file.ModuleFile
type Options ¶
type Options struct { Log *logrus.Logger // 日志输出实例 Addr string // 监听地址,格式:指定端口=:12345 指定地址和端口=127.0.0.1:12345 监听unix-socket=/path/to/sock Enable []string // 开启的模块,可选:file, shell, log FileOptions file.ModuleFile // 文件服务配置,如果开启了file模块,需要设置此项 ShellOptions shell.ModuleShell // 执行命令服务配置,如果开启了shell模块,需要设置此项 Auth Auth // 授权信息 }
type ShellOptions ¶ added in v1.1.0
type ShellOptions = shell.ModuleShell
Click to show internal directories.
Click to hide internal directories.