Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
// contains filtered or unexported fields
}
CLI Elasticsearch 交互式命令行客户端
func NewCLIWithConfig ¶ added in v0.1.1
NewCLIWithConfig 使用配置创建 Elasticsearch CLI 实例
type Config ¶ added in v0.1.1
type Config struct {
Host string
Port int
Username string
Password string
Scheme string // http, https
APIKey string // API Key 认证
CertFingerprint string // 证书指纹
DisableRetry bool // 禁用重试
MaxRetries int // 最大重试次数
EnableDebugLogger bool // 启用调试日志
CompressRequestBody bool // 压缩请求体
DiscoverNodesOnStart bool // 启动时发现节点
// 其他参数
Params map[string]string
}
Config Elasticsearch 连接配置
type ReadWriteCloser ¶ added in v0.1.1
type ReadWriteCloser struct {
io.ReadWriter
}
ReadWriteCloser wraps io.ReadWriter to add a no-op Close method
func (*ReadWriteCloser) Close ¶ added in v0.1.1
func (rwc *ReadWriteCloser) Close() error
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader 从终端读取输入(使用 readline 以支持SSH session)
type ServerInfo ¶
ServerInfo Elasticsearch 服务器信息
Click to show internal directories.
Click to hide internal directories.