Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
小七de尾巴
Abc-imp
提交
2e268539
A
Abc-imp
项目概览
小七de尾巴
/
Abc-imp
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
Abc-imp
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2e268539
编写于
9月 09, 2018
作者:
U
utsavoza
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add flag to support ssl connections
上级
3b70b1ab
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
8 addition
and
7 deletion
+8
-7
cmd/abc/appbase_import.go
cmd/abc/appbase_import.go
+8
-7
未找到文件。
cmd/abc/appbase_import.go
浏览文件 @
2e268539
...
@@ -54,6 +54,7 @@ func runImport(args []string) error {
...
@@ -54,6 +54,7 @@ func runImport(args []string) error {
test
:=
flagset
.
Bool
(
"test"
,
false
,
`if set to true, only pipeline is created and sync is not started.
test
:=
flagset
.
Bool
(
"test"
,
false
,
`if set to true, only pipeline is created and sync is not started.
Useful for checking your configuration`
)
Useful for checking your configuration`
)
sacPath
:=
flagset
.
String
(
"sac_path"
,
"./ServiceAccountKey.json"
,
"Path to firebase service account credentials file"
)
sacPath
:=
flagset
.
String
(
"sac_path"
,
"./ServiceAccountKey.json"
,
"Path to firebase service account credentials file"
)
ssl
:=
flagset
.
Bool
(
"ssl"
,
false
,
"Enable SSL connection to the source."
)
requestSize
:=
flagset
.
Int64
(
"request_size"
,
2
<<
19
,
"Http request size in bytes, specifically for bulk requests to ES."
)
requestSize
:=
flagset
.
Int64
(
"request_size"
,
2
<<
19
,
"Http request size in bytes, specifically for bulk requests to ES."
)
bulkRequests
:=
flagset
.
Int
(
"bulk_requests"
,
1000
,
"Number of bulk requests to send during a network request to ES."
)
bulkRequests
:=
flagset
.
Int
(
"bulk_requests"
,
1000
,
"Number of bulk requests to send during a network request to ES."
)
...
@@ -93,16 +94,16 @@ func runImport(args []string) error {
...
@@ -93,16 +94,16 @@ func runImport(args []string) error {
"tail"
:
*
tail
,
"tail"
:
*
tail
,
"typeName"
:
*
typeName
,
"typeName"
:
*
typeName
,
"replication_slot"
:
*
replicationSlot
,
"replication_slot"
:
*
replicationSlot
,
// "timeout": *timeout
,
"srcRegex"
:
*
srcRegex
,
"s
rcRegex"
:
*
srcRegex
,
"s
acPath"
:
*
sacPath
,
"s
acPath"
:
*
sacPath
,
"s
sl"
:
*
ssl
,
"_transform_"
:
*
transformFile
,
"_transform_"
:
*
transformFile
,
}
}
var
destConfig
=
map
[
string
]
interface
{}{
var
destConfig
=
map
[
string
]
interface
{}{
"uri"
:
destURL
,
"uri"
:
destURL
,
"_name_"
:
"elasticsearch"
,
"_name_"
:
"elasticsearch"
,
"request_size"
:
*
requestSize
,
"request_size"
:
*
requestSize
,
"bulk_requests"
:
*
bulkRequests
,
"bulk_requests"
:
*
bulkRequests
,
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录