Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
logtransfer
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
谢宇轩
logtransfer
Commits
470eedd7
Commit
470eedd7
authored
Jan 30, 2023
by
李世星
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(新增jenkinsfile文件): 202301301128
parent
e7279e39
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
274 additions
and
3 deletions
+274
-3
.gitignore
.gitignore
+1
-2
Jenkinsfile
Jenkinsfile
+244
-0
logtransfer-dev.conf
logtransfer-dev.conf
+12
-0
logtransfer-main.conf
logtransfer-main.conf
+12
-0
topic.go
source/topic.go
+5
-1
No files found.
.gitignore
View file @
470eedd7
/.idea
*.exe
/log
logtransfer
*.conf
\ No newline at end of file
logtransfer.conf
\ No newline at end of file
Jenkinsfile
0 → 100644
View file @
470eedd7
This diff is collapsed.
Click to expand it.
logtransfer-dev.conf
0 → 100644
View file @
470eedd7
# Kafka配置
[
kafka
]
address
=
http
://
120
.
25
.
235
.
220
:
9092
#Etcd配置
[
etcd
]
address
=
etcd0
:
23790
,
etcd1
:
23791
#Es配置
[
es
]
address
=
http
://
47
.
106
.
69
.
239
:
9320
bulk_size
=
2
\ No newline at end of file
logtransfer-main.conf
0 → 100644
View file @
470eedd7
# Kafka配置
[
kafka
]
address
=
http
://
120
.
25
.
235
.
220
:
9092
#Etcd配置
[
etcd
]
address
=
192
.
168
.
2
.
129
:
23790
,
192
.
168
.
2
.
129
:
23791
#Es配置
[
es
]
address
=
http
://
47
.
106
.
69
.
239
:
9320
bulk_size
=
2
\ No newline at end of file
source/topic.go
View file @
470eedd7
...
...
@@ -17,7 +17,11 @@ func generateTopic(config TopicConfig) *Topic {
// log.Println("get config", currentTopic.PipelineConfig)
for
_
,
v
:=
range
config
.
PipelineConfig
{
currentPlugin
:=
plugin
.
RegistedPlugins
[
v
.
Name
]
currentPlugin
,
ok
:=
plugin
.
RegistedPlugins
[
v
.
Name
]
if
!
ok
{
log
.
Printf
(
"get RegistedPlugins error:%s "
,
v
.
Name
)
continue
}
err
:=
currentPlugin
.
SetParams
(
v
.
Params
)
if
err
!=
nil
{
log
.
Panicln
(
"plugin encode params error:"
,
err
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment